diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 75c3406fac..f48c1df9c3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,22 +31,170 @@ docs/AvailablePrefix.md docs/AvailableVLAN.md docs/Bookmark.md docs/BookmarkRequest.md +docs/BriefCable.md +docs/BriefCableRequest.md +docs/BriefCircuit.md +docs/BriefCircuitGroup.md +docs/BriefCircuitGroupAssignmentSerializer.md +docs/BriefCircuitGroupAssignmentSerializerPriority.md +docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md +docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md +docs/BriefCircuitGroupAssignmentSerializerRequest.md +docs/BriefCircuitGroupRequest.md +docs/BriefCircuitRequest.md +docs/BriefCircuitType.md +docs/BriefCircuitTypeRequest.md +docs/BriefCluster.md +docs/BriefClusterGroup.md +docs/BriefClusterGroupRequest.md +docs/BriefClusterRequest.md +docs/BriefClusterType.md +docs/BriefClusterTypeRequest.md +docs/BriefConfigTemplate.md +docs/BriefConfigTemplateRequest.md +docs/BriefContact.md +docs/BriefContactGroup.md +docs/BriefContactGroupRequest.md +docs/BriefContactRequest.md +docs/BriefContactRole.md +docs/BriefContactRoleRequest.md +docs/BriefCustomFieldChoiceSet.md +docs/BriefCustomFieldChoiceSetRequest.md +docs/BriefDataFile.md +docs/BriefDataSource.md +docs/BriefDataSourceRequest.md +docs/BriefDevice.md +docs/BriefDeviceRequest.md +docs/BriefDeviceRole.md +docs/BriefDeviceRoleRequest.md +docs/BriefDeviceType.md +docs/BriefDeviceTypeRequest.md +docs/BriefFHRPGroup.md +docs/BriefFHRPGroupProtocol.md +docs/BriefFHRPGroupRequest.md +docs/BriefIKEPolicy.md +docs/BriefIKEPolicyRequest.md +docs/BriefIPAddress.md +docs/BriefIPAddressRequest.md +docs/BriefIPSecPolicy.md +docs/BriefIPSecPolicyRequest.md +docs/BriefIPSecProfile.md +docs/BriefIPSecProfileRequest.md +docs/BriefInterface.md +docs/BriefInterfaceRequest.md +docs/BriefInventoryItemRole.md +docs/BriefInventoryItemRoleRequest.md +docs/BriefJob.md +docs/BriefJobRequest.md +docs/BriefJobStatus.md +docs/BriefJobStatusLabel.md +docs/BriefJobStatusValue.md +docs/BriefL2VPN.md +docs/BriefL2VPNRequest.md +docs/BriefL2VPNTermination.md +docs/BriefL2VPNTerminationRequest.md +docs/BriefL2VPNType.md +docs/BriefL2VPNTypeLabel.md +docs/BriefL2VPNTypeValue.md +docs/BriefLocation.md +docs/BriefLocationRequest.md +docs/BriefManufacturer.md +docs/BriefManufacturerRequest.md +docs/BriefModule.md +docs/BriefModuleRequest.md +docs/BriefModuleType.md +docs/BriefModuleTypeRequest.md +docs/BriefPlatform.md +docs/BriefPlatformRequest.md +docs/BriefPowerPanel.md +docs/BriefPowerPanelRequest.md +docs/BriefPowerPort.md +docs/BriefPowerPortRequest.md +docs/BriefPowerPortTemplate.md +docs/BriefPowerPortTemplateRequest.md +docs/BriefProvider.md +docs/BriefProviderAccount.md +docs/BriefProviderAccountRequest.md +docs/BriefProviderNetwork.md +docs/BriefProviderNetworkRequest.md +docs/BriefProviderRequest.md +docs/BriefRIR.md +docs/BriefRIRRequest.md +docs/BriefRack.md +docs/BriefRackRequest.md +docs/BriefRackRole.md +docs/BriefRackRoleRequest.md +docs/BriefRackType.md +docs/BriefRackTypeRequest.md +docs/BriefRearPortTemplate.md +docs/BriefRearPortTemplateRequest.md +docs/BriefRegion.md +docs/BriefRegionRequest.md +docs/BriefRole.md +docs/BriefRoleRequest.md +docs/BriefSite.md +docs/BriefSiteGroup.md +docs/BriefSiteGroupRequest.md +docs/BriefSiteRequest.md +docs/BriefTenant.md +docs/BriefTenantGroup.md +docs/BriefTenantGroupRequest.md +docs/BriefTenantRequest.md +docs/BriefTunnel.md +docs/BriefTunnelGroup.md +docs/BriefTunnelGroupRequest.md +docs/BriefTunnelRequest.md +docs/BriefUser.md +docs/BriefUserRequest.md +docs/BriefVLAN.md +docs/BriefVLANGroup.md +docs/BriefVLANGroupRequest.md +docs/BriefVLANRequest.md +docs/BriefVRF.md +docs/BriefVRFRequest.md +docs/BriefVirtualChassis.md +docs/BriefVirtualChassisRequest.md +docs/BriefVirtualMachine.md +docs/BriefVirtualMachineRequest.md +docs/BriefWirelessLANGroup.md +docs/BriefWirelessLANGroupRequest.md docs/Cable.md +docs/CableLengthUnit.md +docs/CableLengthUnitLabel.md +docs/CableLengthUnitValue.md docs/CableRequest.md +docs/CableRequestLengthUnit.md +docs/CableStatus.md +docs/CableStatusLabel.md +docs/CableStatusValue.md docs/CableTermination.md docs/CableTerminationRequest.md +docs/CableType.md docs/Circuit.md +docs/CircuitCircuitTermination.md +docs/CircuitCircuitTerminationRequest.md +docs/CircuitGroup.md +docs/CircuitGroupAssignment.md +docs/CircuitGroupAssignmentRequest.md +docs/CircuitGroupRequest.md docs/CircuitRequest.md +docs/CircuitStatus.md +docs/CircuitStatusLabel.md +docs/CircuitStatusValue.md docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md docs/CircuitsAPI.md +docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md docs/CircuitsCircuitTerminationsListCableEndParameter.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md docs/ClusterRequest.md +docs/ClusterStatus.md +docs/ClusterStatusLabel.md +docs/ClusterStatusValue.md docs/ClusterType.md docs/ClusterTypeRequest.md docs/ConfigContext.md @@ -70,9 +218,6 @@ docs/ConsoleServerPortTemplate.md docs/ConsoleServerPortTemplateRequest.md docs/Contact.md docs/ContactAssignment.md -docs/ContactAssignmentPriority.md -docs/ContactAssignmentPriorityLabel.md -docs/ContactAssignmentPriorityValue.md docs/ContactAssignmentRequest.md docs/ContactGroup.md docs/ContactGroupRequest.md @@ -80,6 +225,7 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/CoreAPI.md +docs/CoreObjectChangesListActionParameter.md docs/CustomField.md docs/CustomFieldChoiceSet.md docs/CustomFieldChoiceSetBaseChoices.md @@ -107,7 +253,12 @@ docs/DashboardRequest.md docs/DataFile.md docs/DataSource.md docs/DataSourceRequest.md -docs/DataSourceRequestType.md +docs/DataSourceStatus.md +docs/DataSourceStatusLabel.md +docs/DataSourceStatusValue.md +docs/DataSourceType.md +docs/DataSourceTypeLabel.md +docs/DataSourceTypeValue.md docs/DcimAPI.md docs/DcimCablesListLengthUnitParameter.md docs/DcimConsolePortTemplatesListTypeParameter.md @@ -116,14 +267,16 @@ docs/DcimDeviceTypesListAirflowParameter.md docs/DcimDeviceTypesListWeightUnitParameter.md docs/DcimDevicesRenderConfigCreateFormatParameter.md docs/DcimInterfacesListModeParameter.md +docs/DcimModuleTypesListAirflowParameter.md docs/DcimPowerFeedsListPhaseParameter.md docs/DcimPowerFeedsListSupplyParameter.md docs/DcimPowerFeedsListTypeParameter.md docs/DcimPowerOutletTemplatesListTypeParameter.md docs/DcimPowerPortTemplatesListTypeParameter.md +docs/DcimRackTypesListOuterUnitParameter.md docs/DcimRacksElevationRetrieveFaceParameter.md docs/DcimRacksElevationRetrieveRenderParameter.md -docs/DcimRacksListOuterUnitParameter.md +docs/DcimRacksListAirflowParameter.md docs/Device.md docs/DeviceAirflow.md docs/DeviceAirflowLabel.md @@ -135,23 +288,34 @@ docs/DeviceBayTemplateRequest.md docs/DeviceFace.md docs/DeviceFaceLabel.md docs/DeviceFaceValue.md -docs/DeviceRequest.md docs/DeviceRole.md docs/DeviceRoleRequest.md docs/DeviceStatus.md docs/DeviceStatusLabel.md docs/DeviceStatusValue.md docs/DeviceType.md +docs/DeviceTypeAirflow.md docs/DeviceTypeRequest.md +docs/DeviceTypeRequestAirflow.md +docs/DeviceTypeRequestSubdeviceRole.md +docs/DeviceTypeRequestWeightUnit.md +docs/DeviceTypeSubdeviceRole.md +docs/DeviceTypeSubdeviceRoleLabel.md +docs/DeviceTypeSubdeviceRoleValue.md +docs/DeviceTypeWeightUnit.md +docs/DeviceTypeWeightUnitLabel.md +docs/DeviceTypeWeightUnitValue.md docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/Encryption.md docs/End.md docs/End1.md +docs/Event.md docs/EventRule.md docs/EventRuleActionType.md docs/EventRuleActionTypeLabel.md docs/EventRuleActionTypeValue.md +docs/EventRuleEventTypesInner.md docs/EventRuleRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md @@ -161,11 +325,9 @@ docs/ExtrasCustomFieldsListFilterLogicParameter.md docs/ExtrasCustomFieldsListUiEditableParameter.md docs/ExtrasCustomFieldsListUiVisibleParameter.md docs/ExtrasCustomLinksListButtonClassParameter.md -docs/ExtrasObjectChangesListActionParameter.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md -docs/FHRPGroupProtocol.md docs/FHRPGroupRequest.md docs/FrontPort.md docs/FrontPortRearPort.md @@ -176,6 +338,7 @@ docs/FrontPortTemplateRequest.md docs/FrontPortType.md docs/FrontPortTypeLabel.md docs/FrontPortTypeValue.md +docs/GenericObject.md docs/GenericObjectRequest.md docs/Group.md docs/GroupRequest.md @@ -203,6 +366,12 @@ docs/IKEProposalGroupValue.md docs/IKEProposalRequest.md docs/IPAddress.md docs/IPAddressRequest.md +docs/IPAddressRole.md +docs/IPAddressRoleLabel.md +docs/IPAddressRoleValue.md +docs/IPAddressStatus.md +docs/IPAddressStatusLabel.md +docs/IPAddressStatusValue.md docs/IPRange.md docs/IPRangeRequest.md docs/IPRangeStatus.md @@ -260,10 +429,6 @@ docs/InventoryItemTemplateRequest.md docs/IpamAPI.md docs/IpamServiceTemplatesListProtocolParameter.md docs/Job.md -docs/JobRequest.md -docs/JobStatus.md -docs/JobStatusLabel.md -docs/JobStatusValue.md docs/JournalEntry.md docs/JournalEntryKind.md docs/JournalEntryKindLabel.md @@ -273,34 +438,44 @@ docs/L2VPN.md docs/L2VPNRequest.md docs/L2VPNTermination.md docs/L2VPNTerminationRequest.md -docs/L2VPNType.md -docs/L2VPNTypeLabel.md -docs/L2VPNTypeValue.md docs/Location.md docs/LocationRequest.md +docs/LocationStatus.md +docs/LocationStatusLabel.md +docs/LocationStatusValue.md docs/Manufacturer.md docs/ManufacturerRequest.md docs/Module.md docs/ModuleBay.md -docs/ModuleBayNestedModule.md -docs/ModuleBayNestedModuleRequest.md docs/ModuleBayRequest.md docs/ModuleBayTemplate.md docs/ModuleBayTemplateRequest.md docs/ModuleRequest.md +docs/ModuleStatus.md +docs/ModuleStatusLabel.md +docs/ModuleStatusValue.md docs/ModuleType.md +docs/ModuleTypeAirflow.md +docs/ModuleTypeAirflowLabel.md +docs/ModuleTypeAirflowValue.md docs/ModuleTypeRequest.md +docs/ModuleTypeRequestAirflow.md docs/NestedContactGroup.md docs/NestedContactGroupRequest.md docs/NestedDevice.md docs/NestedDeviceRequest.md docs/NestedGroup.md +docs/NestedIPAddress.md +docs/NestedIPAddressRequest.md docs/NestedInterface.md docs/NestedInterfaceRequest.md docs/NestedInterfaceTemplate.md docs/NestedInterfaceTemplateRequest.md +docs/NestedLocation.md +docs/NestedLocationRequest.md docs/NestedModuleBay.md docs/NestedModuleBayRequest.md +docs/NestedProviderAccount.md docs/NestedRegion.md docs/NestedRegionRequest.md docs/NestedSiteGroup.md @@ -314,9 +489,14 @@ docs/NestedVMInterface.md docs/NestedVMInterfaceRequest.md docs/NestedVirtualMachine.md docs/NestedVirtualMachineRequest.md +docs/NestedWirelessLANGroup.md docs/NestedWirelessLANGroupRequest.md docs/NestedWirelessLink.md docs/NestedWirelessLinkRequest.md +docs/Notification.md +docs/NotificationGroup.md +docs/NotificationGroupRequest.md +docs/NotificationRequest.md docs/ObjectChange.md docs/ObjectChangeAction.md docs/ObjectChangeActionLabel.md @@ -330,6 +510,8 @@ docs/PaginatedAggregateList.md docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md +docs/PaginatedCircuitGroupAssignmentList.md +docs/PaginatedCircuitGroupList.md docs/PaginatedCircuitList.md docs/PaginatedCircuitTerminationList.md docs/PaginatedCircuitTypeList.md @@ -386,6 +568,8 @@ docs/PaginatedModuleBayList.md docs/PaginatedModuleBayTemplateList.md docs/PaginatedModuleList.md docs/PaginatedModuleTypeList.md +docs/PaginatedNotificationGroupList.md +docs/PaginatedNotificationList.md docs/PaginatedObjectChangeList.md docs/PaginatedObjectPermissionList.md docs/PaginatedObjectTypeList.md @@ -404,6 +588,7 @@ docs/PaginatedRIRList.md docs/PaginatedRackList.md docs/PaginatedRackReservationList.md docs/PaginatedRackRoleList.md +docs/PaginatedRackTypeList.md docs/PaginatedRackUnitList.md docs/PaginatedRearPortList.md docs/PaginatedRearPortTemplateList.md @@ -416,6 +601,7 @@ docs/PaginatedServiceList.md docs/PaginatedServiceTemplateList.md docs/PaginatedSiteGroupList.md docs/PaginatedSiteList.md +docs/PaginatedSubscriptionList.md docs/PaginatedTagList.md docs/PaginatedTenantGroupList.md docs/PaginatedTenantList.md @@ -442,6 +628,7 @@ docs/PatchedASNRangeRequest.md docs/PatchedASNRequest.md docs/PatchedBookmarkRequest.md docs/PatchedCableTerminationRequest.md +docs/PatchedCircuitGroupRequest.md docs/PatchedCircuitTerminationRequest.md docs/PatchedCircuitTypeRequest.md docs/PatchedClusterGroupRequest.md @@ -467,6 +654,8 @@ docs/PatchedL2VPNTerminationRequest.md docs/PatchedManufacturerRequest.md docs/PatchedModuleBayRequest.md docs/PatchedModuleBayTemplateRequest.md +docs/PatchedNotificationGroupRequest.md +docs/PatchedNotificationRequest.md docs/PatchedObjectPermissionRequest.md docs/PatchedPlatformRequest.md docs/PatchedPowerPanelRequest.md @@ -479,6 +668,8 @@ docs/PatchedRackRoleRequest.md docs/PatchedRoleRequest.md docs/PatchedRouteTargetRequest.md docs/PatchedSavedFilterRequest.md +docs/PatchedScriptInputRequest.md +docs/PatchedSubscriptionRequest.md docs/PatchedTagRequest.md docs/PatchedTenantRequest.md docs/PatchedTokenRequest.md @@ -491,13 +682,9 @@ docs/PatchedWebhookRequest.md docs/PatchedWebhookRequestHttpMethod.md docs/PatchedWritableAggregateRequest.md docs/PatchedWritableCableRequest.md -docs/PatchedWritableCableRequestLengthUnit.md -docs/PatchedWritableCableRequestStatus.md -docs/PatchedWritableCableRequestType.md +docs/PatchedWritableCircuitGroupAssignmentRequest.md docs/PatchedWritableCircuitRequest.md -docs/PatchedWritableCircuitRequestStatus.md docs/PatchedWritableClusterRequest.md -docs/PatchedWritableClusterRequestStatus.md docs/PatchedWritableConsolePortRequest.md docs/PatchedWritableConsolePortRequestSpeed.md docs/PatchedWritableConsolePortRequestType.md @@ -515,7 +702,6 @@ docs/PatchedWritableCustomFieldRequestUiEditable.md docs/PatchedWritableCustomFieldRequestUiVisible.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceTypeRequest.md -docs/PatchedWritableDeviceTypeRequestWeightUnit.md docs/PatchedWritableDeviceWithConfigContextRequest.md docs/PatchedWritableEventRuleRequest.md docs/PatchedWritableFrontPortRequest.md @@ -541,9 +727,7 @@ docs/PatchedWritableInterfaceTemplateRequest.md docs/PatchedWritableJournalEntryRequest.md docs/PatchedWritableL2VPNRequest.md docs/PatchedWritableLocationRequest.md -docs/PatchedWritableLocationRequestStatus.md docs/PatchedWritableModuleRequest.md -docs/PatchedWritableModuleRequestStatus.md docs/PatchedWritableModuleTypeRequest.md docs/PatchedWritablePowerFeedRequest.md docs/PatchedWritablePowerFeedRequestPhase.md @@ -562,10 +746,13 @@ docs/PatchedWritablePowerPortTemplateRequestType.md docs/PatchedWritablePrefixRequest.md docs/PatchedWritablePrefixRequestStatus.md docs/PatchedWritableRackRequest.md +docs/PatchedWritableRackRequestAirflow.md +docs/PatchedWritableRackRequestFormFactor.md docs/PatchedWritableRackRequestOuterUnit.md docs/PatchedWritableRackRequestStatus.md -docs/PatchedWritableRackRequestType.md docs/PatchedWritableRackRequestWidth.md +docs/PatchedWritableRackTypeRequest.md +docs/PatchedWritableRackTypeRequestFormFactor.md docs/PatchedWritableRearPortRequest.md docs/PatchedWritableRearPortTemplateRequest.md docs/PatchedWritableRegionRequest.md @@ -591,6 +778,7 @@ docs/PatchedWritableWirelessLANGroupRequest.md docs/PatchedWritableWirelessLANRequest.md docs/PatchedWritableWirelessLANRequestStatus.md docs/PatchedWritableWirelessLinkRequest.md +docs/PatchedWritableWirelessLinkRequestDistanceUnit.md docs/Platform.md docs/PlatformRequest.md docs/PowerFeed.md @@ -618,8 +806,11 @@ docs/PowerPanel.md docs/PowerPanelRequest.md docs/PowerPort.md docs/PowerPortRequest.md +docs/PowerPortRequestType.md docs/PowerPortTemplate.md docs/PowerPortTemplateRequest.md +docs/PowerPortType.md +docs/PowerPortTypeLabel.md docs/Prefix.md docs/PrefixRequest.md docs/PrefixStatus.md @@ -634,16 +825,31 @@ docs/ProviderRequest.md docs/RIR.md docs/RIRRequest.md docs/Rack.md +docs/RackAirflow.md +docs/RackAirflowLabel.md docs/RackFace.md docs/RackFace1.md +docs/RackFormFactor.md +docs/RackFormFactorLabel.md +docs/RackOuterUnit.md +docs/RackOuterUnitLabel.md docs/RackRequest.md +docs/RackRequestFormFactor.md +docs/RackRequestOuterUnit.md docs/RackReservation.md docs/RackReservationRequest.md docs/RackRole.md docs/RackRoleRequest.md +docs/RackStatus.md +docs/RackStatusLabel.md +docs/RackType.md +docs/RackTypeRequest.md docs/RackUnit.md docs/RackUnitFace.md docs/RackUnitFaceValue.md +docs/RackWidth.md +docs/RackWidthLabel.md +docs/RackWidthValue.md docs/RearPort.md docs/RearPortRequest.md docs/RearPortTemplate.md @@ -660,6 +866,7 @@ docs/SchemaAPI.md docs/SchemaRetrieveFormatParameter.md docs/SchemaRetrieveLangParameter.md docs/Script.md +docs/ScriptInputRequest.md docs/Service.md docs/ServiceProtocol.md docs/ServiceProtocolLabel.md @@ -671,10 +878,11 @@ docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md docs/StatusAPI.md +docs/Subscription.md +docs/SubscriptionRequest.md docs/Tag.md docs/TagRequest.md docs/TenancyAPI.md -docs/TenancyContactAssignmentsListPriorityParameter.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md @@ -686,9 +894,13 @@ docs/TokenProvision.md docs/TokenProvisionRequest.md docs/TokenRequest.md docs/Tunnel.md +docs/TunnelEncapsulation.md +docs/TunnelEncapsulationLabel.md docs/TunnelGroup.md docs/TunnelGroupRequest.md docs/TunnelRequest.md +docs/TunnelStatus.md +docs/TunnelStatusLabel.md docs/TunnelTermination.md docs/TunnelTerminationRequest.md docs/TunnelTerminationRole.md @@ -712,12 +924,8 @@ docs/VirtualDeviceContextStatus.md docs/VirtualDeviceContextStatusLabel.md docs/VirtualDisk.md docs/VirtualDiskRequest.md -docs/VirtualMachine.md -docs/VirtualMachineRequest.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md -docs/VirtualMachineWithConfigContextStatus.md -docs/VirtualMachineWithConfigContextStatusLabel.md docs/VirtualizationAPI.md docs/VpnAPI.md docs/Webhook.md @@ -738,12 +946,15 @@ docs/WirelessLANStatus.md docs/WirelessLANStatusLabel.md docs/WirelessLANStatusValue.md docs/WirelessLink.md +docs/WirelessLinkDistanceUnit.md +docs/WirelessLinkDistanceUnitLabel.md docs/WirelessLinkRequest.md -docs/WirelessLinkStatus.md -docs/WirelessLinkStatusLabel.md +docs/WirelessLinkRequestDistanceUnit.md docs/WirelessRole.md +docs/WirelessWirelessLinksListDistanceUnitParameter.md docs/WritableAggregateRequest.md docs/WritableCableRequest.md +docs/WritableCircuitGroupAssignmentRequest.md docs/WritableCircuitRequest.md docs/WritableClusterRequest.md docs/WritableConsolePortRequest.md @@ -781,6 +992,7 @@ docs/WritablePowerPortRequest.md docs/WritablePowerPortTemplateRequest.md docs/WritablePrefixRequest.md docs/WritableRackRequest.md +docs/WritableRackTypeRequest.md docs/WritableRearPortRequest.md docs/WritableRearPortTemplateRequest.md docs/WritableRegionRequest.md @@ -820,21 +1032,169 @@ model_available_prefix.go model_available_vlan.go model_bookmark.go model_bookmark_request.go +model_brief_cable.go +model_brief_cable_request.go +model_brief_circuit.go +model_brief_circuit_group.go +model_brief_circuit_group_assignment_serializer_.go +model_brief_circuit_group_assignment_serializer__priority.go +model_brief_circuit_group_assignment_serializer__priority_label.go +model_brief_circuit_group_assignment_serializer__priority_value.go +model_brief_circuit_group_assignment_serializer_request.go +model_brief_circuit_group_request.go +model_brief_circuit_request.go +model_brief_circuit_type.go +model_brief_circuit_type_request.go +model_brief_cluster.go +model_brief_cluster_group.go +model_brief_cluster_group_request.go +model_brief_cluster_request.go +model_brief_cluster_type.go +model_brief_cluster_type_request.go +model_brief_config_template.go +model_brief_config_template_request.go +model_brief_contact.go +model_brief_contact_group.go +model_brief_contact_group_request.go +model_brief_contact_request.go +model_brief_contact_role.go +model_brief_contact_role_request.go +model_brief_custom_field_choice_set.go +model_brief_custom_field_choice_set_request.go +model_brief_data_file.go +model_brief_data_source.go +model_brief_data_source_request.go +model_brief_device.go +model_brief_device_request.go +model_brief_device_role.go +model_brief_device_role_request.go +model_brief_device_type.go +model_brief_device_type_request.go +model_brief_fhrp_group.go +model_brief_fhrp_group_protocol.go +model_brief_fhrp_group_request.go +model_brief_ike_policy.go +model_brief_ike_policy_request.go +model_brief_interface.go +model_brief_interface_request.go +model_brief_inventory_item_role.go +model_brief_inventory_item_role_request.go +model_brief_ip_address.go +model_brief_ip_address_request.go +model_brief_ip_sec_policy.go +model_brief_ip_sec_policy_request.go +model_brief_ip_sec_profile.go +model_brief_ip_sec_profile_request.go +model_brief_job.go +model_brief_job_request.go +model_brief_job_status.go +model_brief_job_status_label.go +model_brief_job_status_value.go +model_brief_l2_vpn.go +model_brief_l2_vpn_request.go +model_brief_l2_vpn_termination.go +model_brief_l2_vpn_termination_request.go +model_brief_l2_vpn_type.go +model_brief_l2_vpn_type_label.go +model_brief_l2_vpn_type_value.go +model_brief_location.go +model_brief_location_request.go +model_brief_manufacturer.go +model_brief_manufacturer_request.go +model_brief_module.go +model_brief_module_request.go +model_brief_module_type.go +model_brief_module_type_request.go +model_brief_platform.go +model_brief_platform_request.go +model_brief_power_panel.go +model_brief_power_panel_request.go +model_brief_power_port.go +model_brief_power_port_request.go +model_brief_power_port_template.go +model_brief_power_port_template_request.go +model_brief_provider.go +model_brief_provider_account.go +model_brief_provider_account_request.go +model_brief_provider_network.go +model_brief_provider_network_request.go +model_brief_provider_request.go +model_brief_rack.go +model_brief_rack_request.go +model_brief_rack_role.go +model_brief_rack_role_request.go +model_brief_rack_type.go +model_brief_rack_type_request.go +model_brief_rear_port_template.go +model_brief_rear_port_template_request.go +model_brief_region.go +model_brief_region_request.go +model_brief_rir.go +model_brief_rir_request.go +model_brief_role.go +model_brief_role_request.go +model_brief_site.go +model_brief_site_group.go +model_brief_site_group_request.go +model_brief_site_request.go +model_brief_tenant.go +model_brief_tenant_group.go +model_brief_tenant_group_request.go +model_brief_tenant_request.go +model_brief_tunnel.go +model_brief_tunnel_group.go +model_brief_tunnel_group_request.go +model_brief_tunnel_request.go +model_brief_user.go +model_brief_user_request.go +model_brief_virtual_chassis.go +model_brief_virtual_chassis_request.go +model_brief_virtual_machine.go +model_brief_virtual_machine_request.go +model_brief_vlan.go +model_brief_vlan_group.go +model_brief_vlan_group_request.go +model_brief_vlan_request.go +model_brief_vrf.go +model_brief_vrf_request.go +model_brief_wireless_lan_group.go +model_brief_wireless_lan_group_request.go model_cable.go +model_cable_length_unit.go +model_cable_length_unit_label.go +model_cable_length_unit_value.go model_cable_request.go +model_cable_request_length_unit.go +model_cable_status.go +model_cable_status_label.go +model_cable_status_value.go model_cable_termination.go model_cable_termination_request.go +model_cable_type.go model_circuit.go +model_circuit_circuit_termination.go +model_circuit_circuit_termination_request.go +model_circuit_group.go +model_circuit_group_assignment.go +model_circuit_group_assignment_request.go +model_circuit_group_request.go model_circuit_request.go +model_circuit_status.go +model_circuit_status_label.go +model_circuit_status_value.go model_circuit_termination.go model_circuit_termination_request.go model_circuit_type.go model_circuit_type_request.go +model_circuits_circuit_group_assignments_list_priority_parameter.go model_circuits_circuit_terminations_list_cable_end_parameter.go model_cluster.go model_cluster_group.go model_cluster_group_request.go model_cluster_request.go +model_cluster_status.go +model_cluster_status_label.go +model_cluster_status_value.go model_cluster_type.go model_cluster_type_request.go model_config_context.go @@ -858,15 +1218,13 @@ model_console_server_port_template.go model_console_server_port_template_request.go model_contact.go model_contact_assignment.go -model_contact_assignment_priority.go -model_contact_assignment_priority_label.go -model_contact_assignment_priority_value.go model_contact_assignment_request.go model_contact_group.go model_contact_group_request.go model_contact_request.go model_contact_role.go model_contact_role_request.go +model_core_object_changes_list_action_parameter.go model_custom_field.go model_custom_field_choice_set.go model_custom_field_choice_set_base_choices.go @@ -894,7 +1252,12 @@ model_dashboard_request.go model_data_file.go model_data_source.go model_data_source_request.go -model_data_source_request_type.go +model_data_source_status.go +model_data_source_status_label.go +model_data_source_status_value.go +model_data_source_type.go +model_data_source_type_label.go +model_data_source_type_value.go model_dcim_cables_list_length_unit_parameter.go model_dcim_console_port_templates_list_type_parameter.go model_dcim_console_ports_list_speed_parameter.go @@ -902,14 +1265,16 @@ model_dcim_device_types_list_airflow_parameter.go model_dcim_device_types_list_weight_unit_parameter.go model_dcim_devices_render_config_create_format_parameter.go model_dcim_interfaces_list_mode_parameter.go +model_dcim_module_types_list_airflow_parameter.go model_dcim_power_feeds_list_phase_parameter.go model_dcim_power_feeds_list_supply_parameter.go model_dcim_power_feeds_list_type_parameter.go model_dcim_power_outlet_templates_list_type_parameter.go model_dcim_power_port_templates_list_type_parameter.go +model_dcim_rack_types_list_outer_unit_parameter.go model_dcim_racks_elevation_retrieve_face_parameter.go model_dcim_racks_elevation_retrieve_render_parameter.go -model_dcim_racks_list_outer_unit_parameter.go +model_dcim_racks_list_airflow_parameter.go model_device.go model_device_airflow.go model_device_airflow_label.go @@ -921,23 +1286,34 @@ model_device_bay_template_request.go model_device_face.go model_device_face_label.go model_device_face_value.go -model_device_request.go model_device_role.go model_device_role_request.go model_device_status.go model_device_status_label.go model_device_status_value.go model_device_type.go +model_device_type_airflow.go model_device_type_request.go +model_device_type_request_airflow.go +model_device_type_request_subdevice_role.go +model_device_type_request_weight_unit.go +model_device_type_subdevice_role.go +model_device_type_subdevice_role_label.go +model_device_type_subdevice_role_value.go +model_device_type_weight_unit.go +model_device_type_weight_unit_label.go +model_device_type_weight_unit_value.go model_device_with_config_context.go model_device_with_config_context_request.go model_encryption.go model_end.go model_end_1.go +model_event.go model_event_rule.go model_event_rule_action_type.go model_event_rule_action_type_label.go model_event_rule_action_type_value.go +model_event_rule_event_types_inner.go model_event_rule_request.go model_export_template.go model_export_template_request.go @@ -946,11 +1322,9 @@ model_extras_custom_fields_list_filter_logic_parameter.go model_extras_custom_fields_list_ui_editable_parameter.go model_extras_custom_fields_list_ui_visible_parameter.go model_extras_custom_links_list_button_class_parameter.go -model_extras_object_changes_list_action_parameter.go model_fhrp_group.go model_fhrp_group_assignment.go model_fhrp_group_assignment_request.go -model_fhrp_group_protocol.go model_fhrp_group_request.go model_front_port.go model_front_port_rear_port.go @@ -961,6 +1335,7 @@ model_front_port_template_request.go model_front_port_type.go model_front_port_type_label.go model_front_port_type_value.go +model_generic_object.go model_generic_object_request.go model_group.go model_group_request.go @@ -1028,6 +1403,12 @@ model_inventory_item_template.go model_inventory_item_template_request.go model_ip_address.go model_ip_address_request.go +model_ip_address_role.go +model_ip_address_role_label.go +model_ip_address_role_value.go +model_ip_address_status.go +model_ip_address_status_label.go +model_ip_address_status_value.go model_ip_range.go model_ip_range_request.go model_ip_range_status.go @@ -1044,10 +1425,6 @@ model_ip_sec_proposal.go model_ip_sec_proposal_request.go model_ipam_service_templates_list_protocol_parameter.go model_job.go -model_job_request.go -model_job_status.go -model_job_status_label.go -model_job_status_value.go model_journal_entry.go model_journal_entry_kind.go model_journal_entry_kind_label.go @@ -1057,23 +1434,28 @@ model_l2_vpn.go model_l2_vpn_request.go model_l2_vpn_termination.go model_l2_vpn_termination_request.go -model_l2_vpn_type.go -model_l2_vpn_type_label.go -model_l2_vpn_type_value.go model_location.go model_location_request.go +model_location_status.go +model_location_status_label.go +model_location_status_value.go model_manufacturer.go model_manufacturer_request.go model_module.go model_module_bay.go -model_module_bay_nested_module.go -model_module_bay_nested_module_request.go model_module_bay_request.go model_module_bay_template.go model_module_bay_template_request.go model_module_request.go +model_module_status.go +model_module_status_label.go +model_module_status_value.go model_module_type.go +model_module_type_airflow.go +model_module_type_airflow_label.go +model_module_type_airflow_value.go model_module_type_request.go +model_module_type_request_airflow.go model_nested_contact_group.go model_nested_contact_group_request.go model_nested_device.go @@ -1083,8 +1465,13 @@ model_nested_interface.go model_nested_interface_request.go model_nested_interface_template.go model_nested_interface_template_request.go +model_nested_ip_address.go +model_nested_ip_address_request.go +model_nested_location.go +model_nested_location_request.go model_nested_module_bay.go model_nested_module_bay_request.go +model_nested_provider_account.go model_nested_region.go model_nested_region_request.go model_nested_site_group.go @@ -1098,9 +1485,14 @@ model_nested_virtual_machine.go model_nested_virtual_machine_request.go model_nested_vm_interface.go model_nested_vm_interface_request.go +model_nested_wireless_lan_group.go model_nested_wireless_lan_group_request.go model_nested_wireless_link.go model_nested_wireless_link_request.go +model_notification.go +model_notification_group.go +model_notification_group_request.go +model_notification_request.go model_object_change.go model_object_change_action.go model_object_change_action_label.go @@ -1114,6 +1506,8 @@ model_paginated_asn_range_list.go model_paginated_bookmark_list.go model_paginated_cable_list.go model_paginated_cable_termination_list.go +model_paginated_circuit_group_assignment_list.go +model_paginated_circuit_group_list.go model_paginated_circuit_list.go model_paginated_circuit_termination_list.go model_paginated_circuit_type_list.go @@ -1170,6 +1564,8 @@ model_paginated_module_bay_list.go model_paginated_module_bay_template_list.go model_paginated_module_list.go model_paginated_module_type_list.go +model_paginated_notification_group_list.go +model_paginated_notification_list.go model_paginated_object_change_list.go model_paginated_object_permission_list.go model_paginated_object_type_list.go @@ -1187,6 +1583,7 @@ model_paginated_provider_network_list.go model_paginated_rack_list.go model_paginated_rack_reservation_list.go model_paginated_rack_role_list.go +model_paginated_rack_type_list.go model_paginated_rack_unit_list.go model_paginated_rear_port_list.go model_paginated_rear_port_template_list.go @@ -1200,6 +1597,7 @@ model_paginated_service_list.go model_paginated_service_template_list.go model_paginated_site_group_list.go model_paginated_site_list.go +model_paginated_subscription_list.go model_paginated_tag_list.go model_paginated_tenant_group_list.go model_paginated_tenant_list.go @@ -1226,6 +1624,7 @@ model_patched_asn_range_request.go model_patched_asn_request.go model_patched_bookmark_request.go model_patched_cable_termination_request.go +model_patched_circuit_group_request.go model_patched_circuit_termination_request.go model_patched_circuit_type_request.go model_patched_cluster_group_request.go @@ -1251,6 +1650,8 @@ model_patched_l2_vpn_termination_request.go model_patched_manufacturer_request.go model_patched_module_bay_request.go model_patched_module_bay_template_request.go +model_patched_notification_group_request.go +model_patched_notification_request.go model_patched_object_permission_request.go model_patched_platform_request.go model_patched_power_panel_request.go @@ -1263,6 +1664,8 @@ model_patched_rir_request.go model_patched_role_request.go model_patched_route_target_request.go model_patched_saved_filter_request.go +model_patched_script_input_request.go +model_patched_subscription_request.go model_patched_tag_request.go model_patched_tenant_request.go model_patched_token_request.go @@ -1275,13 +1678,9 @@ model_patched_webhook_request.go model_patched_webhook_request_http_method.go model_patched_writable_aggregate_request.go model_patched_writable_cable_request.go -model_patched_writable_cable_request_length_unit.go -model_patched_writable_cable_request_status.go -model_patched_writable_cable_request_type.go +model_patched_writable_circuit_group_assignment_request.go model_patched_writable_circuit_request.go -model_patched_writable_circuit_request_status.go model_patched_writable_cluster_request.go -model_patched_writable_cluster_request_status.go model_patched_writable_console_port_request.go model_patched_writable_console_port_request_speed.go model_patched_writable_console_port_request_type.go @@ -1299,7 +1698,6 @@ model_patched_writable_custom_field_request_ui_editable.go model_patched_writable_custom_field_request_ui_visible.go model_patched_writable_data_source_request.go model_patched_writable_device_type_request.go -model_patched_writable_device_type_request_weight_unit.go model_patched_writable_device_with_config_context_request.go model_patched_writable_event_rule_request.go model_patched_writable_front_port_request.go @@ -1325,9 +1723,7 @@ model_patched_writable_ip_sec_proposal_request.go model_patched_writable_journal_entry_request.go model_patched_writable_l2_vpn_request.go model_patched_writable_location_request.go -model_patched_writable_location_request_status.go model_patched_writable_module_request.go -model_patched_writable_module_request_status.go model_patched_writable_module_type_request.go model_patched_writable_power_feed_request.go model_patched_writable_power_feed_request_phase.go @@ -1346,10 +1742,13 @@ model_patched_writable_power_port_template_request_type.go model_patched_writable_prefix_request.go model_patched_writable_prefix_request_status.go model_patched_writable_rack_request.go +model_patched_writable_rack_request_airflow.go +model_patched_writable_rack_request_form_factor.go model_patched_writable_rack_request_outer_unit.go model_patched_writable_rack_request_status.go -model_patched_writable_rack_request_type.go model_patched_writable_rack_request_width.go +model_patched_writable_rack_type_request.go +model_patched_writable_rack_type_request_form_factor.go model_patched_writable_rear_port_request.go model_patched_writable_rear_port_template_request.go model_patched_writable_region_request.go @@ -1375,6 +1774,7 @@ model_patched_writable_wireless_lan_group_request.go model_patched_writable_wireless_lan_request.go model_patched_writable_wireless_lan_request_status.go model_patched_writable_wireless_link_request.go +model_patched_writable_wireless_link_request_distance_unit.go model_platform.go model_platform_request.go model_power_feed.go @@ -1402,8 +1802,11 @@ model_power_panel.go model_power_panel_request.go model_power_port.go model_power_port_request.go +model_power_port_request_type.go model_power_port_template.go model_power_port_template_request.go +model_power_port_type.go +model_power_port_type_label.go model_prefix.go model_prefix_request.go model_prefix_status.go @@ -1416,16 +1819,31 @@ model_provider_network.go model_provider_network_request.go model_provider_request.go model_rack.go +model_rack_airflow.go +model_rack_airflow_label.go model_rack_face.go model_rack_face_1.go +model_rack_form_factor.go +model_rack_form_factor_label.go +model_rack_outer_unit.go +model_rack_outer_unit_label.go model_rack_request.go +model_rack_request_form_factor.go +model_rack_request_outer_unit.go model_rack_reservation.go model_rack_reservation_request.go model_rack_role.go model_rack_role_request.go +model_rack_status.go +model_rack_status_label.go +model_rack_type.go +model_rack_type_request.go model_rack_unit.go model_rack_unit_face.go model_rack_unit_face_value.go +model_rack_width.go +model_rack_width_label.go +model_rack_width_value.go model_rear_port.go model_rear_port_request.go model_rear_port_template.go @@ -1443,6 +1861,7 @@ model_saved_filter_request.go model_schema_retrieve_format_parameter.go model_schema_retrieve_lang_parameter.go model_script.go +model_script_input_request.go model_service.go model_service_protocol.go model_service_protocol_label.go @@ -1453,9 +1872,10 @@ model_site.go model_site_group.go model_site_group_request.go model_site_request.go +model_subscription.go +model_subscription_request.go model_tag.go model_tag_request.go -model_tenancy_contact_assignments_list_priority_parameter.go model_tenant.go model_tenant_group.go model_tenant_group_request.go @@ -1467,9 +1887,13 @@ model_token_provision.go model_token_provision_request.go model_token_request.go model_tunnel.go +model_tunnel_encapsulation.go +model_tunnel_encapsulation_label.go model_tunnel_group.go model_tunnel_group_request.go model_tunnel_request.go +model_tunnel_status.go +model_tunnel_status_label.go model_tunnel_termination.go model_tunnel_termination_request.go model_tunnel_termination_role.go @@ -1484,12 +1908,8 @@ model_virtual_device_context_status.go model_virtual_device_context_status_label.go model_virtual_disk.go model_virtual_disk_request.go -model_virtual_machine.go -model_virtual_machine_request.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go -model_virtual_machine_with_config_context_status.go -model_virtual_machine_with_config_context_status_label.go model_vlan.go model_vlan_group.go model_vlan_group_request.go @@ -1515,12 +1935,15 @@ model_wireless_lan_status.go model_wireless_lan_status_label.go model_wireless_lan_status_value.go model_wireless_link.go +model_wireless_link_distance_unit.go +model_wireless_link_distance_unit_label.go model_wireless_link_request.go -model_wireless_link_status.go -model_wireless_link_status_label.go +model_wireless_link_request_distance_unit.go model_wireless_role.go +model_wireless_wireless_links_list_distance_unit_parameter.go model_writable_aggregate_request.go model_writable_cable_request.go +model_writable_circuit_group_assignment_request.go model_writable_circuit_request.go model_writable_cluster_request.go model_writable_console_port_request.go @@ -1558,6 +1981,7 @@ model_writable_power_port_request.go model_writable_power_port_template_request.go model_writable_prefix_request.go model_writable_rack_request.go +model_writable_rack_type_request.go model_writable_rear_port_request.go model_writable_rear_port_template_request.go model_writable_region_request.go diff --git a/api/netbox_docker_version b/api/netbox_docker_version index dedcc7d433..cb2b00e4f7 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.9.1 +3.0.1 diff --git a/api/netbox_version b/api/netbox_version index c4e41f9459..627a3f43a6 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -4.0.3 +4.1.1 diff --git a/api/openapi.yaml b/api/openapi.yaml index 75765d6508..591c50b2e4 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,68 +1,42 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 4.0.3 (4.0) + version: 4.1.1 (4.1) license: name: Apache v2 License paths: - /api/circuits/circuit-terminations/: + /api/circuits/circuit-group-assignments/: get: - operationId: circuits_circuit_terminations_list - description: Get a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_list + description: Get a list of Circuit group assignment objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: circuit schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - in: query - name: cable_id__n + name: circuit__n schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - - in: query - name: cabled - schema: - type: boolean - in: query name: circuit_id schema: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -71,7 +45,7 @@ paths: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -143,87 +117,39 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: group schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query @@ -353,19 +279,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -379,147 +297,39 @@ paths: schema: type: string - in: query - name: port_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__empty - schema: - type: boolean - - in: query - name: port_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: pp_info - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__empty - schema: - type: boolean - - in: query - name: pp_info__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__niew + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: pp_info__nisw + name: priority__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: provider schema: @@ -556,69 +366,11 @@ paths: description: Provider (ID) explode: true style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -635,177 +387,11 @@ paths: type: string explode: true style: form - - in: query - name: term_side - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: term_side__n - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: upstream_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__empty - schema: - type: boolean - - in: query - name: upstream_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: xconnect_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__empty - schema: - type: boolean - - in: query - name: xconnect_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - circuits security: @@ -816,21 +402,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' + $ref: '#/components/schemas/PaginatedCircuitGroupAssignmentList' description: '' post: - operationId: circuits_circuit_terminations_create - description: Post a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_create + description: Post a list of Circuit group assignment objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -840,11 +426,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_bulk_update - description: Put a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_update + description: Put a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -853,12 +439,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -870,11 +456,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: Patch a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_partial_update + description: Patch a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -883,12 +469,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -900,11 +486,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: Delete a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_destroy + description: Delete a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -913,12 +499,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -926,16 +512,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/: + /api/circuits/circuit-group-assignments/{id}/: get: - operationId: circuits_circuit_terminations_retrieve - description: Get a circuit termination object. + operationId: circuits_circuit_group_assignments_retrieve + description: Get a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -947,17 +533,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_update - description: Put a circuit termination object. + operationId: circuits_circuit_group_assignments_update + description: Put a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -965,10 +551,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -978,17 +564,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_partial_update - description: Patch a circuit termination object. + operationId: circuits_circuit_group_assignments_partial_update + description: Patch a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -996,10 +582,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1008,17 +594,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_destroy - description: Delete a circuit termination object. + operationId: circuits_circuit_group_assignments_destroy + description: Delete a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -1028,118 +614,11 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/paths/: - get: - operationId: circuits_circuit_terminations_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /api/circuits/circuit-types/: + /api/circuits/circuit-groups/: get: - operationId: circuits_circuit_types_list - description: Get a list of circuit type objects. + operationId: circuits_circuit_groups_list + description: Get a list of circuit group objects. parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -1625,6 +1104,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -1640,21 +1189,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' + $ref: '#/components/schemas/PaginatedCircuitGroupList' description: '' post: - operationId: circuits_circuit_types_create - description: Post a list of circuit type objects. + operationId: circuits_circuit_groups_create + description: Post a list of circuit group objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1664,11 +1213,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_bulk_update - description: Put a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_update + description: Put a list of circuit group objects. tags: - circuits requestBody: @@ -1677,12 +1226,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1694,11 +1243,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_bulk_partial_update - description: Patch a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_partial_update + description: Patch a list of circuit group objects. tags: - circuits requestBody: @@ -1707,12 +1256,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1724,11 +1273,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_bulk_destroy - description: Delete a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_destroy + description: Delete a list of circuit group objects. tags: - circuits requestBody: @@ -1737,12 +1286,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1750,16 +1299,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-types/{id}/: + /api/circuits/circuit-groups/{id}/: get: - operationId: circuits_circuit_types_retrieve - description: Get a circuit type object. + operationId: circuits_circuit_groups_retrieve + description: Get a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1771,17 +1320,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_update - description: Put a circuit type object. + operationId: circuits_circuit_groups_update + description: Put a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1789,10 +1338,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1802,17 +1351,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_partial_update - description: Patch a circuit type object. + operationId: circuits_circuit_groups_partial_update + description: Patch a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1820,10 +1369,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1832,17 +1381,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_destroy - description: Delete a circuit type object. + operationId: circuits_circuit_groups_destroy + description: Delete a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1852,205 +1401,73 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/: + /api/circuits/circuit-terminations/: get: - operationId: circuits_circuits_list - description: Get a list of circuit objects. + operationId: circuits_circuit_terminations_list + description: Get a list of circuit termination objects. parameters: - in: query - name: cid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__empty - schema: - type: boolean - - in: query - name: cid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: commit_rate - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__empty - schema: - type: boolean - - in: query - name: commit_rate__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__n + name: cable_end schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact + name: cable_end__n schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact__n + name: cable_id schema: type: array items: type: integer - description: Contact + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cabled schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: boolean - in: query - name: contact_role + name: circuit_id schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query - name: contact_role__n + name: circuit_id__n schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query @@ -2263,64 +1680,6 @@ paths: format: int32 explode: true style: form - - in: query - name: install_date - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__empty - schema: - type: boolean - - in: query - name: install_date__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: last_updated schema: @@ -2390,12 +1749,20 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - name: offset + - in: query + name: occupied + schema: + type: boolean + - name: offset required: false in: query description: The initial index from which to return the results. @@ -2408,457 +1775,433 @@ paths: schema: type: string - in: query - name: provider + name: port_speed schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider__n + name: port_speed__empty + schema: + type: boolean + - in: query + name: port_speed__gt schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account + name: port_speed__gte schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account__n + name: port_speed__lt schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account_id + name: port_speed__lte schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_account_id__n + name: port_speed__n schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_id + name: pp_info schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: pp_info__empty + schema: + type: boolean + - in: query + name: pp_info__ic schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_network_id + name: pp_info__ie schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: provider_network_id__n + name: pp_info__iew schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: pp_info__isw schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: pp_info__n schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: pp_info__nic schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: pp_info__nie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: pp_info__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: pp_info__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: provider schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group__n + name: provider__n schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group_id + name: provider_id schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_group_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_id + name: provider_network_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: site_id__n + name: provider_network_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: status + name: q + schema: + type: string + description: Search + - in: query + name: site schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: status__n + name: site__n schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: tag + name: site_id schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tag__n + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tenant + name: tag schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tag__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: term_side schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query - name: tenant_group__n + name: term_side__n schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query - name: tenant_group_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: upstream_speed schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: upstream_speed__empty + schema: + type: boolean + - in: query + name: upstream_speed__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: upstream_speed__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: upstream_speed__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id + name: upstream_speed__lte schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id__n + name: upstream_speed__n schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_date + name: xconnect_id schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__empty + name: xconnect_id__empty schema: type: boolean - in: query - name: termination_date__gt + name: xconnect_id__ic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__gte + name: xconnect_id__ie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lt + name: xconnect_id__iew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lte + name: xconnect_id__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__n + name: xconnect_id__n schema: type: array items: type: string - format: date - explode: true - style: form - - in: query - name: termination_z_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_z_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) explode: true style: form - in: query - name: type + name: xconnect_id__nic schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type__n + name: xconnect_id__nie schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type_id + name: xconnect_id__niew schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - in: query - name: type_id__n + name: xconnect_id__nisw schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - circuits security: @@ -2869,21 +2212,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitList' + $ref: '#/components/schemas/PaginatedCircuitTerminationList' description: '' post: - operationId: circuits_circuits_create - description: Post a list of circuit objects. + operationId: circuits_circuit_terminations_create + description: Post a list of circuit termination objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2893,11 +2236,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_bulk_update - description: Put a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_update + description: Put a list of circuit termination objects. tags: - circuits requestBody: @@ -2906,12 +2249,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2923,11 +2266,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_bulk_partial_update - description: Patch a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_partial_update + description: Patch a list of circuit termination objects. tags: - circuits requestBody: @@ -2936,12 +2279,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2953,11 +2296,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_bulk_destroy - description: Delete a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_destroy + description: Delete a list of circuit termination objects. tags: - circuits requestBody: @@ -2966,12 +2309,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2979,16 +2322,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/{id}/: + /api/circuits/circuit-terminations/{id}/: get: - operationId: circuits_circuits_retrieve - description: Get a circuit object. + operationId: circuits_circuit_terminations_retrieve + description: Get a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3000,17 +2343,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_update - description: Put a circuit object. + operationId: circuits_circuit_terminations_update + description: Put a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3018,10 +2361,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -3031,17 +2374,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_partial_update - description: Patch a circuit object. + operationId: circuits_circuit_terminations_partial_update + description: Patch a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3049,10 +2392,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3061,17 +2404,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_destroy - description: Delete a circuit object. + operationId: circuits_circuit_terminations_destroy + description: Delete a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3081,13 +2424,36 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/: + /api/circuits/circuit-terminations/{id}/paths/: get: - operationId: circuits_provider_accounts_list - description: Get a list of provider account objects. + operationId: circuits_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CircuitTermination' + description: '' + /api/circuits/circuit-types/: + get: + operationId: circuits_circuit_types_list + description: Get a list of circuit type objects. parameters: - in: query - name: account + name: color schema: type: array items: @@ -3095,11 +2461,11 @@ paths: explode: true style: form - in: query - name: account__empty + name: color__empty schema: type: boolean - in: query - name: account__ic + name: color__ic schema: type: array items: @@ -3107,7 +2473,7 @@ paths: explode: true style: form - in: query - name: account__ie + name: color__ie schema: type: array items: @@ -3115,7 +2481,7 @@ paths: explode: true style: form - in: query - name: account__iew + name: color__iew schema: type: array items: @@ -3123,7 +2489,7 @@ paths: explode: true style: form - in: query - name: account__isw + name: color__isw schema: type: array items: @@ -3131,7 +2497,7 @@ paths: explode: true style: form - in: query - name: account__n + name: color__n schema: type: array items: @@ -3139,7 +2505,7 @@ paths: explode: true style: form - in: query - name: account__nic + name: color__nic schema: type: array items: @@ -3147,7 +2513,7 @@ paths: explode: true style: form - in: query - name: account__nie + name: color__nie schema: type: array items: @@ -3155,7 +2521,7 @@ paths: explode: true style: form - in: query - name: account__niew + name: color__niew schema: type: array items: @@ -3163,7 +2529,7 @@ paths: explode: true style: form - in: query - name: account__nisw + name: color__nisw schema: type: array items: @@ -3551,46 +2917,94 @@ paths: schema: type: string - in: query - name: provider + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: slug__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: slug__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -3622,21 +3036,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderAccountList' + $ref: '#/components/schemas/PaginatedCircuitTypeList' description: '' post: - operationId: circuits_provider_accounts_create - description: Post a list of provider account objects. + operationId: circuits_circuit_types_create + description: Post a list of circuit type objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3646,11 +3060,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_bulk_update - description: Put a list of provider account objects. + operationId: circuits_circuit_types_bulk_update + description: Put a list of circuit type objects. tags: - circuits requestBody: @@ -3659,12 +3073,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3676,11 +3090,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_bulk_partial_update - description: Patch a list of provider account objects. + operationId: circuits_circuit_types_bulk_partial_update + description: Patch a list of circuit type objects. tags: - circuits requestBody: @@ -3689,12 +3103,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3706,11 +3120,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_bulk_destroy - description: Delete a list of provider account objects. + operationId: circuits_circuit_types_bulk_destroy + description: Delete a list of circuit type objects. tags: - circuits requestBody: @@ -3719,12 +3133,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3732,16 +3146,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/{id}/: + /api/circuits/circuit-types/{id}/: get: - operationId: circuits_provider_accounts_retrieve - description: Get a provider account object. + operationId: circuits_circuit_types_retrieve + description: Get a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3753,17 +3167,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_update - description: Put a provider account object. + operationId: circuits_circuit_types_update + description: Put a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3771,10 +3185,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3784,17 +3198,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_partial_update - description: Patch a provider account object. + operationId: circuits_circuit_types_partial_update + description: Patch a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3802,10 +3216,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3814,17 +3228,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_destroy - description: Delete a provider account object. + operationId: circuits_circuit_types_destroy + description: Delete a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3834,11 +3248,205 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/: + /api/circuits/circuits/: get: - operationId: circuits_provider_networks_list - description: Get a list of provider network objects. + operationId: circuits_circuits_list + description: Get a list of circuit objects. parameters: + - in: query + name: cid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__empty + schema: + type: boolean + - in: query + name: cid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: commit_rate + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__empty + schema: + type: boolean + - in: query + name: commit_rate__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -4049,6 +3657,64 @@ paths: format: int32 explode: true style: form + - in: query + name: install_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__empty + schema: + type: boolean + - in: query + name: install_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form - in: query name: last_updated schema: @@ -4123,44 +3789,117 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__empty + name: provider__n schema: - type: boolean + type: array + items: + type: string + description: Provider (slug) + explode: true + style: form - in: query - name: name__ic + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__ie + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__iew + name: provider_account_id schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__isw + name: provider_account_id__n + schema: + type: array + items: + type: integer + description: Provider account (ID) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_network_id + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: provider_network_id__n + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -4168,7 +3907,7 @@ paths: explode: true style: form - in: query - name: name__n + name: region__n schema: type: array items: @@ -4176,7 +3915,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: region_id schema: type: array items: @@ -4184,7 +3923,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: region_id__n schema: type: array items: @@ -4192,88 +3931,101 @@ paths: explode: true style: form - in: query - name: name__niew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nisw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site_group schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: provider + name: site_group_id schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: site_group_id__n schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: site_id schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: provider_id__n + name: site_id__n schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: q + name: status schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: 63c838134a022200 + explode: true + style: form - in: query - name: service_id + name: status__n schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__empty + name: tag schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: service_id__ic + name: tag__n schema: type: array items: @@ -4281,23 +4033,25 @@ paths: explode: true style: form - in: query - name: service_id__ie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: service_id__iew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: service_id__isw + name: tenant_group schema: type: array items: @@ -4305,7 +4059,7 @@ paths: explode: true style: form - in: query - name: service_id__n + name: tenant_group__n schema: type: array items: @@ -4313,7 +4067,7 @@ paths: explode: true style: form - in: query - name: service_id__nic + name: tenant_group_id schema: type: array items: @@ -4321,7 +4075,7 @@ paths: explode: true style: form - in: query - name: service_id__nie + name: tenant_group_id__n schema: type: array items: @@ -4329,35 +4083,157 @@ paths: explode: true style: form - in: query - name: service_id__niew + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: termination_a_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_a_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_date schema: type: array items: type: string + format: date explode: true style: form - in: query - name: service_id__nisw + name: termination_date__empty + schema: + type: boolean + - in: query + name: termination_date__gt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: tag + name: termination_date__gte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: tag__n + name: termination_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_z_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_z_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type__n schema: type: array items: type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Circuit type (ID) explode: true style: form - in: query @@ -4375,21 +4251,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' + $ref: '#/components/schemas/PaginatedCircuitList' description: '' post: - operationId: circuits_provider_networks_create - description: Post a list of provider network objects. + operationId: circuits_circuits_create + description: Post a list of circuit objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4399,11 +4275,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_bulk_update - description: Put a list of provider network objects. + operationId: circuits_circuits_bulk_update + description: Put a list of circuit objects. tags: - circuits requestBody: @@ -4412,12 +4288,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4429,11 +4305,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_bulk_partial_update - description: Patch a list of provider network objects. + operationId: circuits_circuits_bulk_partial_update + description: Patch a list of circuit objects. tags: - circuits requestBody: @@ -4442,12 +4318,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4459,11 +4335,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_bulk_destroy - description: Delete a list of provider network objects. + operationId: circuits_circuits_bulk_destroy + description: Delete a list of circuit objects. tags: - circuits requestBody: @@ -4472,12 +4348,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4485,16 +4361,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/{id}/: + /api/circuits/circuits/{id}/: get: - operationId: circuits_provider_networks_retrieve - description: Get a provider network object. + operationId: circuits_circuits_retrieve + description: Get a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4506,17 +4382,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_update - description: Put a provider network object. + operationId: circuits_circuits_update + description: Put a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4524,10 +4400,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4537,17 +4413,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_partial_update - description: Patch a provider network object. + operationId: circuits_circuits_partial_update + description: Patch a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4555,10 +4431,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -4567,17 +4443,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_destroy - description: Delete a provider network object. + operationId: circuits_circuits_destroy + description: Delete a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4587,105 +4463,93 @@ paths: responses: '204': description: No response body - /api/circuits/providers/: + /api/circuits/provider-accounts/: get: - operationId: circuits_providers_list - description: Get a list of provider objects. + operationId: circuits_provider_accounts_list + description: Get a list of provider account objects. parameters: - in: query - name: asn + name: account schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn__n + name: account__empty + schema: + type: boolean + - in: query + name: account__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn_id + name: account__ie schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: account__iew schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: contact + name: account__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: account__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: account__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: account__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: account__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: account__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -5069,180 +4933,48 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site + name: provider schema: type: array items: type: string - description: Site (slug) + description: Provider (slug) explode: true style: form - in: query - name: site__n + name: provider__n schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) + description: Provider (slug) explode: true style: form - in: query - name: site_id + name: provider_id schema: type: array items: type: integer - description: Site + description: Provider (ID) explode: true style: form - in: query - name: site_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string + description: Provider (ID) explode: true style: form - in: query - name: slug__nic + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__nie + name: tag schema: type: array items: @@ -5250,7 +4982,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tag__n schema: type: array items: @@ -5258,31 +4990,7 @@ paths: explode: true style: form - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid @@ -5296,21 +5004,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderList' + $ref: '#/components/schemas/PaginatedProviderAccountList' description: '' post: - operationId: circuits_providers_create - description: Post a list of provider objects. + operationId: circuits_provider_accounts_create + description: Post a list of provider account objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5320,11 +5028,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_bulk_update - description: Put a list of provider objects. + operationId: circuits_provider_accounts_bulk_update + description: Put a list of provider account objects. tags: - circuits requestBody: @@ -5333,12 +5041,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5350,11 +5058,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_bulk_partial_update - description: Patch a list of provider objects. + operationId: circuits_provider_accounts_bulk_partial_update + description: Patch a list of provider account objects. tags: - circuits requestBody: @@ -5363,12 +5071,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5380,11 +5088,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_bulk_destroy - description: Delete a list of provider objects. + operationId: circuits_provider_accounts_bulk_destroy + description: Delete a list of provider account objects. tags: - circuits requestBody: @@ -5393,12 +5101,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5406,16 +5114,16 @@ paths: responses: '204': description: No response body - /api/circuits/providers/{id}/: + /api/circuits/provider-accounts/{id}/: get: - operationId: circuits_providers_retrieve - description: Get a provider object. + operationId: circuits_provider_accounts_retrieve + description: Get a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5427,17 +5135,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_update - description: Put a provider object. + operationId: circuits_provider_accounts_update + description: Put a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5445,10 +5153,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5458,17 +5166,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_partial_update - description: Patch a provider object. + operationId: circuits_provider_accounts_partial_update + description: Patch a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5476,10 +5184,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -5488,17 +5196,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_destroy - description: Delete a provider object. + operationId: circuits_provider_accounts_destroy + description: Delete a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5508,10 +5216,10 @@ paths: responses: '204': description: No response body - /api/core/data-files/: + /api/circuits/provider-networks/: get: - operationId: core_data_files_list - description: Get a list of data file objects. + operationId: circuits_provider_networks_list + description: Get a list of provider network objects. parameters: - in: query name: created @@ -5582,7 +5290,7 @@ paths: type: string format: uuid - in: query - name: hash + name: description schema: type: array items: @@ -5590,11 +5298,11 @@ paths: explode: true style: form - in: query - name: hash__empty + name: description__empty schema: type: boolean - in: query - name: hash__ic + name: description__ic schema: type: array items: @@ -5602,7 +5310,7 @@ paths: explode: true style: form - in: query - name: hash__ie + name: description__ie schema: type: array items: @@ -5610,7 +5318,7 @@ paths: explode: true style: form - in: query - name: hash__iew + name: description__iew schema: type: array items: @@ -5618,7 +5326,7 @@ paths: explode: true style: form - in: query - name: hash__isw + name: description__isw schema: type: array items: @@ -5626,7 +5334,7 @@ paths: explode: true style: form - in: query - name: hash__n + name: description__n schema: type: array items: @@ -5634,7 +5342,7 @@ paths: explode: true style: form - in: query - name: hash__nic + name: description__nic schema: type: array items: @@ -5642,7 +5350,7 @@ paths: explode: true style: form - in: query - name: hash__nie + name: description__nie schema: type: array items: @@ -5650,7 +5358,7 @@ paths: explode: true style: form - in: query - name: hash__niew + name: description__niew schema: type: array items: @@ -5658,7 +5366,7 @@ paths: explode: true style: form - in: query - name: hash__nisw + name: description__nisw schema: type: array items: @@ -5797,20 +5505,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: path + name: name__ic schema: type: array items: @@ -5818,11 +5526,15 @@ paths: explode: true style: form - in: query - name: path__empty + name: name__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: path__ic + name: name__iew schema: type: array items: @@ -5830,7 +5542,7 @@ paths: explode: true style: form - in: query - name: path__ie + name: name__isw schema: type: array items: @@ -5838,7 +5550,7 @@ paths: explode: true style: form - in: query - name: path__iew + name: name__n schema: type: array items: @@ -5846,7 +5558,7 @@ paths: explode: true style: form - in: query - name: path__isw + name: name__nic schema: type: array items: @@ -5854,7 +5566,7 @@ paths: explode: true style: form - in: query - name: path__n + name: name__nie schema: type: array items: @@ -5862,7 +5574,7 @@ paths: explode: true style: form - in: query - name: path__nic + name: name__niew schema: type: array items: @@ -5870,125 +5582,164 @@ paths: explode: true style: form - in: query - name: path__nie + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: path__niew + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: path__nisw + name: provider__n schema: type: array items: type: string + description: Provider (slug) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) explode: true style: form - in: query name: q schema: type: string + description: Search - in: query - name: size + name: service_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: service_id__empty schema: type: boolean - in: query - name: size__gt + name: service_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: service_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: service_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: service_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: service_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: source + name: service_id__nic schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source__n + name: service_id__nie schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source_id + name: service_id__niew schema: type: array items: - type: integer - description: Data source (ID) + type: string explode: true style: form - in: query - name: source_id__n + name: service_id__nisw schema: type: array items: - type: integer - description: Data source (ID) + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -5997,7 +5748,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6006,21 +5757,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataFileList' + $ref: '#/components/schemas/PaginatedProviderNetworkList' description: '' - /api/core/data-files/{id}/: + post: + operationId: circuits_provider_networks_create + description: Post a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + put: + operationId: circuits_provider_networks_bulk_update + description: Put a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_bulk_partial_update + description: Patch a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_bulk_destroy + description: Delete a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/provider-networks/{id}/: get: - operationId: core_data_files_retrieve - description: Get a data file object. + operationId: circuits_provider_networks_retrieve + description: Get a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data file. + description: A unique integer value identifying this provider network. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6029,13 +5888,186 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataFile' + $ref: '#/components/schemas/ProviderNetwork' description: '' - /api/core/data-sources/: + put: + operationId: circuits_provider_networks_update + description: Put a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_partial_update + description: Patch a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_destroy + description: Delete a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/providers/: get: - operationId: core_data_sources_list - description: Get a list of data source objects. + operationId: circuits_providers_list + description: Get a list of provider objects. parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn_id + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: asn_id__n + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -6188,10 +6220,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -6250,64 +6278,6 @@ paths: format: int32 explode: true style: form - - in: query - name: last_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__empty - schema: - type: boolean - - in: query - name: last_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query name: last_updated schema: @@ -6484,7 +6454,7 @@ paths: type: string description: Search - in: query - name: source_url + name: region schema: type: array items: @@ -6492,11 +6462,15 @@ paths: explode: true style: form - in: query - name: source_url__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: source_url__ic + name: region_id schema: type: array items: @@ -6504,7 +6478,7 @@ paths: explode: true style: form - in: query - name: source_url__ie + name: region_id__n schema: type: array items: @@ -6512,23 +6486,25 @@ paths: explode: true style: form - in: query - name: source_url__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__n + name: site_group schema: type: array items: @@ -6536,7 +6512,7 @@ paths: explode: true style: form - in: query - name: source_url__nic + name: site_group__n schema: type: array items: @@ -6544,7 +6520,7 @@ paths: explode: true style: form - in: query - name: source_url__nie + name: site_group_id schema: type: array items: @@ -6552,7 +6528,7 @@ paths: explode: true style: form - in: query - name: source_url__niew + name: site_group_id__n schema: type: array items: @@ -6560,7 +6536,25 @@ paths: explode: true style: form - in: query - name: source_url__nisw + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: slug schema: type: array items: @@ -6568,7 +6562,11 @@ paths: explode: true style: form - in: query - name: status + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -6576,7 +6574,7 @@ paths: explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: @@ -6584,7 +6582,7 @@ paths: explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -6592,7 +6590,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -6600,7 +6598,7 @@ paths: explode: true style: form - in: query - name: type + name: slug__n schema: type: array items: @@ -6608,7 +6606,47 @@ paths: explode: true style: form - in: query - name: type__n + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n schema: type: array items: @@ -6621,7 +6659,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6630,21 +6668,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataSourceList' + $ref: '#/components/schemas/PaginatedProviderList' description: '' post: - operationId: core_data_sources_create - description: Post a list of data source objects. + operationId: circuits_providers_create + description: Post a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6654,25 +6692,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_bulk_update - description: Put a list of data source objects. + operationId: circuits_providers_bulk_update + description: Put a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6684,25 +6722,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_bulk_partial_update - description: Patch a list of data source objects. + operationId: circuits_providers_bulk_partial_update + description: Patch a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6714,25 +6752,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_bulk_destroy - description: Delete a list of data source objects. + operationId: circuits_providers_bulk_destroy + description: Delete a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6740,19 +6778,19 @@ paths: responses: '204': description: No response body - /api/core/data-sources/{id}/: + /api/circuits/providers/{id}/: get: - operationId: core_data_sources_retrieve - description: Get a data source object. + operationId: circuits_providers_retrieve + description: Get a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6761,28 +6799,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_update - description: Put a data source object. + operationId: circuits_providers_update + description: Put a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6792,28 +6830,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_partial_update - description: Patch a data source object. + operationId: circuits_providers_partial_update + description: Patch a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -6822,222 +6860,137 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_destroy - description: Delete a data source object. + operationId: circuits_providers_destroy + description: Delete a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-sources/{id}/sync/: - post: - operationId: core_data_sources_sync_create - description: Enqueue a job to synchronize the DataSource. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this data source. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DataSource' - description: '' - /api/core/jobs/: + /api/core/data-files/: get: - operationId: core_jobs_list - description: Retrieve a list of job results + operationId: core_data_files_list + description: Get a list of data file objects. parameters: - - in: query - name: completed - schema: - type: string - format: date-time - - in: query - name: completed__after - schema: - type: string - format: date-time - - in: query - name: completed__before - schema: - type: string - format: date-time - in: query name: created - schema: - type: string - format: date-time - - in: query - name: created__after - schema: - type: string - format: date-time - - in: query - name: created__before - schema: - type: string - format: date-time - - in: query - name: id schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: interval__gt + name: hash schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__gte + name: hash__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: interval__lt + name: hash__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__lte + name: hash__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__n + name: hash__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: job_id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name + name: hash__isw schema: type: array items: @@ -7045,11 +6998,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: hash__n schema: type: array items: @@ -7057,7 +7006,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: hash__nic schema: type: array items: @@ -7065,7 +7014,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: hash__nie schema: type: array items: @@ -7073,7 +7022,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: hash__niew schema: type: array items: @@ -7081,7 +7030,7 @@ paths: explode: true style: form - in: query - name: name__n + name: hash__nisw schema: type: array items: @@ -7089,52 +7038,20 @@ paths: explode: true style: form - in: query - name: name__nic + name: id schema: type: array items: - type: string + type: integer + format: int32 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_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -7143,7 +7060,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: id__gte schema: type: array items: @@ -7152,7 +7069,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id__lt schema: type: array items: @@ -7161,7 +7078,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__lte schema: type: array items: @@ -7170,7 +7087,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__n schema: type: array items: @@ -7179,160 +7096,7 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: integer - - in: query - name: object_type__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: scheduled - schema: - type: string - format: date-time - - in: query - name: scheduled__after - schema: - type: string - format: date-time - - in: query - name: scheduled__before - schema: - type: string - format: date-time - - in: query - name: started - schema: - type: string - format: date-time - - in: query - name: started__after - schema: - type: string - format: date-time - - in: query - name: started__before - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: user - schema: - type: integer - - in: query - name: user__n - schema: - type: integer - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - /api/core/jobs/{id}/: - get: - operationId: core_jobs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this job. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Job' - description: '' - /api/dcim/cable-terminations/: - get: - operationId: dcim_cable_terminations_list - description: Get a list of cable termination objects. - parameters: - - in: query - name: cable - schema: - type: integer - - in: query - name: cable__n - schema: - type: integer - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: created + name: last_updated schema: type: array items: @@ -7341,7 +7105,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -7350,7 +7114,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -7359,7 +7123,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -7368,7 +7132,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -7377,7 +7141,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -7386,7 +7150,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -7394,157 +7158,150 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id + name: path schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: path__empty schema: type: boolean - in: query - name: id__gt + name: path__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: path__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: path__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: path__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: path__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: path__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: path__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: path__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: path__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: q + schema: + type: string + - in: query + name: size schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: size__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: termination_id + name: size__lt schema: type: array items: @@ -7553,11 +7310,7 @@ paths: explode: true style: form - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt + name: size__lte schema: type: array items: @@ -7566,7 +7319,7 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: size__n schema: type: array items: @@ -7575,129 +7328,48 @@ paths: explode: true style: form - in: query - name: termination_id__lt + name: source schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__lte + name: source__n schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__n + name: source_id schema: type: array items: type: integer - format: int32 + description: Data source (ID) explode: true style: form - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n + name: source_id__n schema: - type: string + type: array + items: + type: integer + description: Data source (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCableTerminationList' - description: '' - post: - operationId: dcim_cable_terminations_create - description: Post a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_bulk_update - description: Put a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_bulk_partial_update - description: Patch a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7706,108 +7378,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/PaginatedDataFileList' description: '' - delete: - operationId: dcim_cable_terminations_bulk_destroy - description: Delete a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cable-terminations/{id}/: + /api/core/data-files/{id}/: get: - operationId: dcim_cable_terminations_retrieve - description: Get a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_update - description: Put a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_partial_update - description: Patch a cable termination object. + operationId: core_data_files_retrieve + description: Get a data file object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this data file. required: true tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7816,74 +7401,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/DataFile' description: '' - delete: - operationId: dcim_cable_terminations_destroy - description: Delete a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cables/: + /api/core/data-sources/: get: - operationId: dcim_cables_list - description: Get a list of cable objects. + operationId: core_data_sources_list + description: Get a list of data source objects. parameters: - - in: query - name: circuittermination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: consoleport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: consoleserverport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: created schema: @@ -8037,31 +7561,9 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: frontport_id + name: enabled schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query name: id schema: @@ -8121,96 +7623,61 @@ paths: explode: true style: form - in: query - name: interface_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: label + name: last_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: last_synced__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 + name: last_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nie + name: last_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__niew + name: last_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nisw + name: last_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query @@ -8276,118 +7743,79 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: length + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__empty + name: name__empty schema: type: boolean - in: query - name: length__gt + name: name__ic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__gte + name: name__ie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lt + name: name__iew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lte + name: name__isw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__n + name: name__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length_unit - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - in: query - name: length_unit__n - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - name: limit - required: false - in: query - description: Number of results to return per page. + name: name__nic schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: location + name: name__nie schema: type: array items: @@ -8395,19 +7823,21 @@ paths: explode: true style: form - in: query - name: location_id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: modified_by_request + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -8420,40 +7850,13 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: powerfeed_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: poweroutlet_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: powerport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rack + name: source_url schema: type: array items: @@ -8461,25 +7864,11 @@ paths: explode: true style: form - in: query - name: rack_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rearport_id + name: source_url__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: site + name: source_url__ic schema: type: array items: @@ -8487,34 +7876,23 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: status + name: source_url__ie schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: source_url__iew schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: source_url__isw schema: type: array items: @@ -8522,7 +7900,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: source_url__n schema: type: array items: @@ -8530,120 +7908,75 @@ paths: explode: true style: form - in: query - name: tenant + name: source_url__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: source_url__nie schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group_id + name: source_url__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: source_url__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: status schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: status__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: termination_a_id + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_a_type - schema: - type: string - - in: query - name: termination_a_type__n - schema: - type: string - - in: query - name: termination_b_id + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: termination_b_type - schema: - type: string - - in: query - name: termination_b_type__n - schema: - type: string - in: query name: type schema: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query @@ -8652,21 +7985,15 @@ paths: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - - in: query - name: unterminated - schema: - type: boolean - description: Unterminated - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8675,21 +8002,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableList' + $ref: '#/components/schemas/PaginatedDataSourceList' description: '' post: - operationId: dcim_cables_create - description: Post a list of cable objects. + operationId: core_data_sources_create + description: Post a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8698,25 +8026,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_bulk_update - description: Put a list of cable objects. + operationId: core_data_sources_bulk_update + description: Put a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8728,25 +8056,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_bulk_partial_update - description: Patch a list of cable objects. + operationId: core_data_sources_bulk_partial_update + description: Patch a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8758,25 +8086,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_bulk_destroy - description: Delete a list of cable objects. + operationId: core_data_sources_bulk_destroy + description: Delete a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8784,19 +8112,19 @@ paths: responses: '204': description: No response body - /api/dcim/cables/{id}/: + /api/core/data-sources/{id}/: get: - operationId: dcim_cables_retrieve - description: Get a cable object. + operationId: core_data_sources_retrieve + description: Get a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8805,28 +8133,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_update - description: Put a cable object. + operationId: core_data_sources_update + description: Put a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8835,28 +8164,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_partial_update - description: Patch a cable object. + operationId: core_data_sources_partial_update + description: Patch a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -8865,57 +8194,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_destroy - description: Delete a cable object. + operationId: core_data_sources_destroy + description: Delete a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/connected-device/: - get: - operationId: dcim_connected_device_list - description: 'This endpoint allows a user to determine what device (if any) - is connected to a given peer device and peer - - interface. This is useful in a situation where a device boots with no configuration, - but can detect its neighbors - - via a protocol such as LLDP. Two query parameters must be included in the - request: - - - * `peer_device`: The name of the peer device - - * `peer_interface`: The name of the peer interface' + /api/core/data-sources/{id}/sync/: + post: + operationId: core_data_sources_sync_create + description: Enqueue a job to synchronize the DataSource. parameters: - - in: query - name: peer_device - schema: - type: string - description: The name of the peer device - required: true - - in: query - name: peer_interface + - in: path + name: id schema: - type: string - description: The name of the peer interface + type: integer + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8924,85 +8244,172 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/DataSource' description: '' - /api/dcim/console-port-templates/: + /api/core/jobs/: get: - operationId: dcim_console_port_templates_list - description: Get a list of console port template objects. + operationId: core_jobs_list + description: Retrieve a list of job results parameters: + - in: query + name: completed + schema: + type: string + format: date-time + - in: query + name: completed__after + schema: + type: string + format: date-time + - in: query + name: completed__before + schema: + type: string + format: date-time - in: query name: created + schema: + type: string + format: date-time + - in: query + name: created__after + schema: + type: string + format: date-time + - in: query + name: created__before + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: interval schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: interval__empty + schema: + type: boolean + - in: query + name: interval__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: job_id schema: type: string format: uuid + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description + name: name schema: type: array items: @@ -9010,11 +8417,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -9022,7 +8429,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -9030,7 +8437,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -9038,7 +8445,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -9046,7 +8453,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -9054,7 +8461,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -9062,7 +8469,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -9070,7 +8477,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -9078,7 +8485,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -9086,47 +8493,214 @@ paths: explode: true style: form - in: query - name: device_type_id + name: object_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: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 + explode: true + style: form + - in: query + name: object_id__gte + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query - name: devicetype_id + name: object_id__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: object_id__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 + explode: true + style: form + - in: query + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type + schema: + type: integer + - in: query + name: object_type__n + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: scheduled + schema: + type: string + format: date-time + - in: query + name: scheduled__after + schema: + type: string + format: date-time + - in: query + name: scheduled__before + schema: + type: string + format: date-time + - in: query + name: started + schema: + type: string + format: date-time + - in: query + name: started__after + schema: + type: string + format: date-time + - in: query + name: started__before + schema: + type: string + format: date-time + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query + name: user + schema: + type: integer + - in: query + name: user__n + schema: + type: integer + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJobList' + description: '' + /api/core/jobs/{id}/: + get: + operationId: core_jobs_retrieve + description: Retrieve a list of job results + parameters: + - in: path name: id + schema: + type: integer + description: A unique integer value identifying this job. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Job' + description: '' + /api/core/object-changes/: + get: + operationId: core_object_changes_list + description: Retrieve a list of recent changes. + parameters: + - in: query + name: action + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: action__n + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: changed_object_id schema: type: array items: @@ -9135,11 +8709,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: changed_object_id__empty schema: type: boolean - in: query - name: id__gt + name: changed_object_id__gt schema: type: array items: @@ -9148,7 +8722,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: changed_object_id__gte schema: type: array items: @@ -9157,7 +8731,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: changed_object_id__lt schema: type: array items: @@ -9166,7 +8740,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: changed_object_id__lte schema: type: array items: @@ -9175,7 +8749,7 @@ paths: explode: true style: form - in: query - name: id__n + name: changed_object_id__n schema: type: array items: @@ -9184,67 +8758,95 @@ paths: explode: true style: form - in: query - name: label + name: changed_object_type + schema: + type: string + - in: query + name: changed_object_type__n + schema: + type: string + - in: query + name: changed_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: label__empty + name: changed_object_type_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: label__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: object_repr schema: type: array items: @@ -9252,7 +8854,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: object_repr__empty + schema: + type: boolean + - in: query + name: object_repr__ic schema: type: array items: @@ -9260,7 +8866,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: object_repr__ie schema: type: array items: @@ -9268,165 +8874,199 @@ paths: explode: true style: form - in: query - name: last_updated + name: object_repr__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: object_repr__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: object_repr__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: object_repr__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: object_repr__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: object_repr__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: object_repr__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: module_type_id + name: related_object_id schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: related_object_id__empty + schema: + type: boolean + - in: query + name: related_object_id__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: related_object_id__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: related_object_id__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: related_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: related_object_id__n schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: related_object_type + schema: + type: integer + - in: query + name: related_object_type__n + schema: + type: integer + - in: query + name: request_id + schema: + type: string + format: uuid + - in: query + name: time_after + schema: + type: string + format: date-time + - in: query + name: time_before + schema: + type: string + format: date-time + - in: query + name: user schema: type: array items: type: string + description: User name explode: true style: form - in: query - name: name__ie + name: user__n schema: type: array items: type: string + description: User name explode: true style: form - in: query - name: name__iew + name: user_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__isw + name: user_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__n + name: user_name schema: type: array items: @@ -9434,7 +9074,11 @@ paths: explode: true style: form - in: query - name: name__nic + name: user_name__empty + schema: + type: boolean + - in: query + name: user_name__ic schema: type: array items: @@ -9442,7 +9086,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: user_name__ie schema: type: array items: @@ -9450,7 +9094,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: user_name__iew schema: type: array items: @@ -9458,157 +9102,55 @@ paths: explode: true style: form - in: query - name: name__nisw + name: user_name__isw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: user_name__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: user_name__nic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: type + name: user_name__nie schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form - in: query - name: type__n + name: user_name__niew schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form - in: query - name: updated_by_request + name: user_name__nisw schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' - description: '' - post: - operationId: dcim_console_port_templates_create - description: Post a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_bulk_update - description: Put a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: Patch a list of console port template objects. + type: array + items: + type: string + explode: true + style: form tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9617,78 +9159,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/PaginatedObjectChangeList' description: '' - delete: - operationId: dcim_console_port_templates_bulk_destroy - description: Delete a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-port-templates/{id}/: + /api/core/object-changes/{id}/: get: - operationId: dcim_console_port_templates_retrieve - description: Get a console port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_update - description: Put a console port template object. + operationId: core_object_changes_retrieve + description: Retrieve a list of recent changes. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this object change. required: true tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9697,66 +9182,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ObjectChange' description: '' - patch: - operationId: dcim_console_port_templates_partial_update - description: Patch a console port template object. + /api/dcim/cable-terminations/: + get: + operationId: dcim_cable_terminations_list + description: Get a list of cable termination objects. parameters: - - in: path - name: id + - in: query + name: cable schema: type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - delete: - operationId: dcim_console_port_templates_destroy - description: Delete a console port template object. - parameters: - - in: path - name: id + - in: query + name: cable__n schema: type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-ports/: - get: - operationId: dcim_console_ports_list - description: Get a list of console port objects. - parameters: - in: query name: cable_end schema: type: string x-spec-enum-id: 1db84f9b93b261c8 + title: End enum: - A - B @@ -9768,40 +9214,13 @@ paths: schema: type: string x-spec-enum-id: 1db84f9b93b261c8 + title: End 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: @@ -9871,165 +9290,200 @@ paths: type: string format: uuid - in: query - name: description + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__empty schema: type: boolean - in: query - name: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: last_updated__lt schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: last_updated__lte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device_id + name: last_updated__n schema: type: array items: - type: integer - description: Device (ID) + type: string + format: date-time explode: true style: form - - in: query - name: device_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array + 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: termination_id + schema: + type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: termination_id__gte schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: termination_id__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: termination_id__lte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: id + name: termination_id__n schema: type: array items: @@ -10038,11 +9492,247 @@ paths: explode: true style: form - in: query - name: id__empty + name: termination_type schema: - type: boolean + type: string - in: query - name: id__gt + name: termination_type__n + schema: + type: string + - 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/PaginatedCableTerminationList' + description: '' + post: + operationId: dcim_cable_terminations_create + description: Post a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + put: + operationId: dcim_cable_terminations_bulk_update + description: Put a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' + description: '' + patch: + operationId: dcim_cable_terminations_bulk_partial_update + description: Patch a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' + description: '' + delete: + operationId: dcim_cable_terminations_bulk_destroy + description: Delete a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/cable-terminations/{id}/: + get: + operationId: dcim_cable_terminations_retrieve + description: Get a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + put: + operationId: dcim_cable_terminations_update + description: Put a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + patch: + operationId: dcim_cable_terminations_partial_update + description: Patch a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedCableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedCableTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + delete: + operationId: dcim_cable_terminations_destroy + description: Delete a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/cables/: + get: + operationId: dcim_cables_list + description: Get a list of cable objects. + parameters: + - in: query + name: circuittermination_id schema: type: array items: @@ -10051,25 +9741,23 @@ paths: explode: true style: form - in: query - name: id__gte + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: consoleport_id schema: type: array items: @@ -10078,7 +9766,7 @@ paths: explode: true style: form - in: query - name: id__n + name: consoleserverport_id schema: type: array items: @@ -10087,59 +9775,75 @@ paths: explode: true style: form - in: query - name: label + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: label__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -10147,7 +9851,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -10155,7 +9863,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__ie schema: type: array items: @@ -10163,7 +9871,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__iew schema: type: array items: @@ -10171,141 +9879,148 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: device 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: device_id schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: location + name: frontport_id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: id__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected + name: id__lt schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: modified_by_request + name: id__lte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: module_id + name: id__n schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: interface_id schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: name + name: label schema: type: array items: @@ -10313,11 +10028,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -10325,7 +10040,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -10333,7 +10048,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -10341,7 +10056,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -10349,7 +10064,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -10357,7 +10072,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -10365,7 +10080,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -10373,7 +10088,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -10381,7 +10096,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: @@ -10389,186 +10104,276 @@ paths: explode: true style: form - in: query - name: occupied + name: last_updated schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: q + name: last_updated__gte schema: - type: string - description: Search + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: rack + name: last_updated__lt schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack__n + name: last_updated__lte schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack_id + name: last_updated__n schema: type: array items: - type: integer - description: Rack (ID) + type: string + format: date-time explode: true style: form - in: query - name: rack_id__n + name: length schema: type: array items: - type: integer - description: Rack (ID) + type: number + format: double explode: true style: form - in: query - name: region + name: length__empty + schema: + type: boolean + - in: query + name: length__gt schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region__n + name: length__gte schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region_id + name: length__lt schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: region_id__n + name: length__lte schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: role + name: length__n schema: type: array items: - type: string - description: Device role (slug) + type: number + format: double explode: true style: form - in: query - name: role__n + name: length_unit + schema: + type: string + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - in: query + name: length_unit__n + schema: + type: string + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: location schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: location_id schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: powerfeed_id schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: site + name: poweroutlet_id schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: powerport_id schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: rack_id schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: rearport_id schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: site schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -10577,84 +10382,27 @@ paths: type: array items: type: integer - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: status schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: speed - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - - in: query - name: speed__n + name: status__n schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form - in: query name: tag schema: @@ -10672,66 +10420,137 @@ paths: explode: true style: form - in: query - name: type + name: tenant schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + description: Tenant (slug) explode: true style: form - in: query - name: type__n + name: tenant__n schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + description: Tenant (slug) explode: true style: form - in: query - name: updated_by_request + name: tenant_group schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: tenant_group__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: tenant_group_id schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: termination_a_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_a_type + schema: + type: string + - in: query + name: termination_a_type__n + schema: + type: string + - in: query + name: termination_b_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_b_type + schema: + type: string + - in: query + name: termination_b_type__n + schema: + type: string + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef explode: true style: form + - in: query + name: unterminated + schema: + type: boolean + description: Unterminated + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -10742,22 +10561,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortList' + $ref: '#/components/schemas/PaginatedCableList' description: '' post: - operationId: dcim_console_ports_create - description: Post a list of console port objects. + operationId: dcim_cables_create + description: Post a list of cable objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10766,11 +10584,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_bulk_update - description: Put a list of console port objects. + operationId: dcim_cables_bulk_update + description: Put a list of cable objects. tags: - dcim requestBody: @@ -10779,12 +10597,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10796,11 +10614,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_bulk_partial_update - description: Patch a list of console port objects. + operationId: dcim_cables_bulk_partial_update + description: Patch a list of cable objects. tags: - dcim requestBody: @@ -10809,12 +10627,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10826,11 +10644,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_bulk_destroy - description: Delete a list of console port objects. + operationId: dcim_cables_bulk_destroy + description: Delete a list of cable objects. tags: - dcim requestBody: @@ -10839,12 +10657,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10852,16 +10670,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/: + /api/dcim/cables/{id}/: get: - operationId: dcim_console_ports_retrieve - description: Get a console port object. + operationId: dcim_cables_retrieve + description: Get a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10873,17 +10691,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_update - description: Put a console port object. + operationId: dcim_cables_update + description: Put a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10891,11 +10709,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10904,17 +10721,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_partial_update - description: Patch a console port object. + operationId: dcim_cables_partial_update + description: Patch a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10922,10 +10739,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10934,17 +10751,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_destroy - description: Delete a console port object. + operationId: dcim_cables_destroy + description: Delete a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10954,17 +10771,34 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/trace/: + /api/dcim/connected-device/: get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_connected_device_list + description: 'This endpoint allows a user to determine what device (if any) + is connected to a given peer device and peer + + interface. This is useful in a situation where a device boots with no configuration, + but can detect its neighbors + + via a protocol such as LLDP. Two query parameters must be included in the + request: + + + * `peer_device`: The name of the peer device + + * `peer_interface`: The name of the peer interface' parameters: - - in: path - name: id + - in: query + name: peer_device schema: - type: integer - description: A unique integer value identifying this console port. + type: string + description: The name of the peer device + required: true + - in: query + name: peer_interface + schema: + type: string + description: The name of the peer interface required: true tags: - dcim @@ -10976,12 +10810,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + type: array + items: + $ref: '#/components/schemas/Device' description: '' - /api/dcim/console-server-port-templates/: + /api/dcim/console-port-templates/: get: - operationId: dcim_console_server_port_templates_list - description: Get a list of console server port template objects. + operationId: dcim_console_port_templates_list + description: Get a list of console port template objects. parameters: - in: query name: created @@ -11155,26 +10991,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -11411,26 +11227,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -11585,21 +11381,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + $ref: '#/components/schemas/PaginatedConsolePortTemplateList' description: '' post: - operationId: dcim_console_server_port_templates_create - description: Post a list of console server port template objects. + operationId: dcim_console_port_templates_create + description: Post a list of console port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11609,11 +11405,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_bulk_update - description: Put a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_update + description: Put a list of console port template objects. tags: - dcim requestBody: @@ -11622,12 +11418,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11639,11 +11435,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: Patch a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_partial_update + description: Patch a list of console port template objects. tags: - dcim requestBody: @@ -11652,12 +11448,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11669,11 +11465,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: Delete a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_destroy + description: Delete a list of console port template objects. tags: - dcim requestBody: @@ -11682,12 +11478,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11695,16 +11491,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-port-templates/{id}/: + /api/dcim/console-port-templates/{id}/: get: - operationId: dcim_console_server_port_templates_retrieve - description: Get a console server port template object. + operationId: dcim_console_port_templates_retrieve + description: Get a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11716,17 +11512,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_update - description: Put a console server port template object. + operationId: dcim_console_port_templates_update + description: Put a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11734,10 +11530,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11747,17 +11543,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_partial_update - description: Patch a console server port template object. + operationId: dcim_console_port_templates_partial_update + description: Patch a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11765,10 +11561,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -11777,17 +11573,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_destroy - description: Delete a console server port template object. + operationId: dcim_console_port_templates_destroy + description: Delete a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11797,10 +11593,10 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/: + /api/dcim/console-ports/: get: - operationId: dcim_console_server_ports_list - description: Get a list of console server port objects. + operationId: dcim_console_ports_list + description: Get a list of console port objects. parameters: - in: query name: cable_end @@ -12042,6 +11838,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -12500,8 +12350,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -12509,62 +12358,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -12590,8 +12400,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12599,8 +12408,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12608,8 +12416,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12617,8 +12424,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12792,21 +12598,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' + $ref: '#/components/schemas/PaginatedConsolePortList' description: '' post: - operationId: dcim_console_server_ports_create - description: Post a list of console server port objects. + operationId: dcim_console_ports_create + description: Post a list of console port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12816,11 +12622,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_bulk_update - description: Put a list of console server port objects. + operationId: dcim_console_ports_bulk_update + description: Put a list of console port objects. tags: - dcim requestBody: @@ -12829,12 +12635,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12846,11 +12652,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: Patch a list of console server port objects. + operationId: dcim_console_ports_bulk_partial_update + description: Patch a list of console port objects. tags: - dcim requestBody: @@ -12859,12 +12665,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12876,11 +12682,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_bulk_destroy - description: Delete a list of console server port objects. + operationId: dcim_console_ports_bulk_destroy + description: Delete a list of console port objects. tags: - dcim requestBody: @@ -12889,12 +12695,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12902,16 +12708,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/: + /api/dcim/console-ports/{id}/: get: - operationId: dcim_console_server_ports_retrieve - description: Get a console server port object. + operationId: dcim_console_ports_retrieve + description: Get a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12923,17 +12729,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_update - description: Put a console server port object. + operationId: dcim_console_ports_update + description: Put a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12941,10 +12747,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12954,17 +12760,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_partial_update - description: Patch a console server port object. + operationId: dcim_console_ports_partial_update + description: Patch a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12972,10 +12778,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -12984,17 +12790,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_destroy - description: Delete a console server port object. + operationId: dcim_console_ports_destroy + description: Delete a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13004,9 +12810,9 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/trace/: + /api/dcim/console-ports/{id}/trace/: get: - operationId: dcim_console_server_ports_trace_retrieve + operationId: dcim_console_ports_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -13014,7 +12820,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13026,12 +12832,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' - /api/dcim/device-bay-templates/: + /api/dcim/console-server-port-templates/: get: - operationId: dcim_device_bay_templates_list - description: Get a list of device bay template objects. + operationId: dcim_console_server_port_templates_list + description: Get a list of console server port template objects. parameters: - in: query name: created @@ -13191,6 +12997,7 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13200,24 +13007,7 @@ paths: type: array items: type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13437,6 +13227,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -13538,6 +13348,44 @@ paths: schema: type: string description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -13553,21 +13401,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' description: '' post: - operationId: dcim_device_bay_templates_create - description: Post a list of device bay template objects. + operationId: dcim_console_server_port_templates_create + description: Post a list of console server port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13577,11 +13425,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_bulk_update - description: Put a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_update + description: Put a list of console server port template objects. tags: - dcim requestBody: @@ -13590,12 +13438,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13607,11 +13455,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: Patch a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_partial_update + description: Patch a list of console server port template objects. tags: - dcim requestBody: @@ -13620,12 +13468,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13637,11 +13485,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: Delete a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_destroy + description: Delete a list of console server port template objects. tags: - dcim requestBody: @@ -13650,12 +13498,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13663,16 +13511,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bay-templates/{id}/: + /api/dcim/console-server-port-templates/{id}/: get: - operationId: dcim_device_bay_templates_retrieve - description: Get a device bay template object. + operationId: dcim_console_server_port_templates_retrieve + description: Get a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13684,17 +13532,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_update - description: Put a device bay template object. + operationId: dcim_console_server_port_templates_update + description: Put a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13702,10 +13550,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13715,17 +13563,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_partial_update - description: Patch a device bay template object. + operationId: dcim_console_server_port_templates_partial_update + description: Patch a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13733,10 +13581,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13745,17 +13593,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_destroy - description: Delete a device bay template object. + operationId: dcim_console_server_port_templates_destroy + description: Delete a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13765,11 +13613,61 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/: + /api/dcim/console-server-ports/: get: - operationId: dcim_device_bays_list - description: Get a list of device bay objects. + operationId: dcim_console_server_ports_list + description: Get a list of console server port objects. parameters: + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -13960,6 +13858,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -14054,46 +14006,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_device - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device__n - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device_id - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - - in: query - name: installed_device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - in: query name: label schema: @@ -14283,11 +14195,35 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -14372,6 +14308,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -14430,8 +14370,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14439,8 +14378,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14448,8 +14386,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -14457,132 +14394,177 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: site schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role__n + name: site__n schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role_id + name: site_group schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: site_group__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: site_group_id schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: site_group_id__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: site_id schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group__n + name: site_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group_id + name: speed schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: site_group_id__n + name: speed__n schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: site_id + name: tag schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: tag__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: type schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type explode: true style: form - in: query @@ -14636,21 +14618,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' + $ref: '#/components/schemas/PaginatedConsoleServerPortList' description: '' post: - operationId: dcim_device_bays_create - description: Post a list of device bay objects. + operationId: dcim_console_server_ports_create + description: Post a list of console server port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14660,11 +14642,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_bulk_update - description: Put a list of device bay objects. + operationId: dcim_console_server_ports_bulk_update + description: Put a list of console server port objects. tags: - dcim requestBody: @@ -14673,12 +14655,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14690,11 +14672,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_bulk_partial_update - description: Patch a list of device bay objects. + operationId: dcim_console_server_ports_bulk_partial_update + description: Patch a list of console server port objects. tags: - dcim requestBody: @@ -14703,12 +14685,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14720,11 +14702,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_bulk_destroy - description: Delete a list of device bay objects. + operationId: dcim_console_server_ports_bulk_destroy + description: Delete a list of console server port objects. tags: - dcim requestBody: @@ -14733,12 +14715,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14746,16 +14728,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/{id}/: + /api/dcim/console-server-ports/{id}/: get: - operationId: dcim_device_bays_retrieve - description: Get a device bay object. + operationId: dcim_console_server_ports_retrieve + description: Get a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14767,17 +14749,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_update - description: Put a device bay object. + operationId: dcim_console_server_ports_update + description: Put a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14785,10 +14767,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14798,17 +14780,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_partial_update - description: Patch a device bay object. + operationId: dcim_console_server_ports_partial_update + description: Patch a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14816,10 +14798,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -14828,17 +14810,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_destroy - description: Delete a device bay object. + operationId: dcim_console_server_ports_destroy + description: Delete a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14848,115 +14830,35 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/: + /api/dcim/console-server-ports/{id}/trace/: get: - operationId: dcim_device_roles_list - description: Get a list of device role objects. + operationId: dcim_console_server_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: 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: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n + - in: path + name: id schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form + type: integer + description: A unique integer value identifying this console server port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPort' + description: '' + /api/dcim/device-bay-templates/: + get: + operationId: dcim_device_bay_templates_list + description: Get a list of device bay template objects. + parameters: - in: query name: created schema: @@ -15109,6 +15011,24 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -15168,81 +15088,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -15250,11 +15156,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -15262,7 +15164,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -15270,80 +15172,81 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: name schema: type: array items: @@ -15351,11 +15254,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__empty schema: type: boolean - in: query - name: slug__ic + name: name__ic schema: type: array items: @@ -15363,7 +15266,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__ie schema: type: array items: @@ -15371,7 +15274,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__iew schema: type: array items: @@ -15379,7 +15282,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__isw schema: type: array items: @@ -15387,7 +15290,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__n schema: type: array items: @@ -15395,7 +15298,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__nic schema: type: array items: @@ -15403,7 +15306,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nie schema: type: array items: @@ -15411,7 +15314,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__niew schema: type: array items: @@ -15419,38 +15322,35 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: tag + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vm_role - schema: - type: boolean tags: - dcim security: @@ -15461,21 +15361,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' + $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' description: '' post: - operationId: dcim_device_roles_create - description: Post a list of device role objects. + operationId: dcim_device_bay_templates_create + description: Post a list of device bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15485,11 +15385,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_bulk_update - description: Put a list of device role objects. + operationId: dcim_device_bay_templates_bulk_update + description: Put a list of device bay template objects. tags: - dcim requestBody: @@ -15498,12 +15398,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15515,11 +15415,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_bulk_partial_update - description: Patch a list of device role objects. + operationId: dcim_device_bay_templates_bulk_partial_update + description: Patch a list of device bay template objects. tags: - dcim requestBody: @@ -15528,12 +15428,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15545,11 +15445,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_bulk_destroy - description: Delete a list of device role objects. + operationId: dcim_device_bay_templates_bulk_destroy + description: Delete a list of device bay template objects. tags: - dcim requestBody: @@ -15558,12 +15458,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15571,16 +15471,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/{id}/: + /api/dcim/device-bay-templates/{id}/: get: - operationId: dcim_device_roles_retrieve - description: Get a device role object. + operationId: dcim_device_bay_templates_retrieve + description: Get a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15592,17 +15492,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_update - description: Put a device role object. + operationId: dcim_device_bay_templates_update + description: Put a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15610,10 +15510,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15623,17 +15523,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_partial_update - description: Patch a device role object. + operationId: dcim_device_bay_templates_partial_update + description: Patch a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15641,10 +15541,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -15653,17 +15553,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_destroy - description: Delete a device role object. + operationId: dcim_device_bay_templates_destroy + description: Delete a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15673,189 +15573,11 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/: + /api/dcim/device-bays/: get: - operationId: dcim_device_types_list - description: Get a list of device type objects. + operationId: dcim_device_bays_list + description: Get a list of device bay objects. parameters: - - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: console_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__empty - schema: - type: boolean - - in: query - name: console_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_ports - schema: - type: boolean - description: Has console ports - - in: query - name: console_server_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__empty - schema: - type: boolean - - in: query - name: console_server_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - in: query name: created schema: @@ -15924,44 +15646,6 @@ paths: schema: type: string format: uuid - - in: query - name: default_platform - schema: - type: array - items: - type: string - description: Default platform (slug) - explode: true - style: form - - in: query - name: default_platform__n - schema: - type: array - items: - type: string - description: Default platform (slug) - explode: true - style: form - - in: query - name: default_platform_id - schema: - type: array - items: - type: integer - nullable: true - description: Default platform (ID) - explode: true - style: form - - in: query - name: default_platform_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Default platform (ID) - explode: true - style: form - in: query name: description schema: @@ -16047,140 +15731,133 @@ paths: explode: true style: form - in: query - name: device_bay_template_count + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: device_bay_template_count__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: device_bay_template_count__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_template_count__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_template_count__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: device_bay_template_count__lte + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: device_bay_template_count__n + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: device_bays - schema: - type: boolean - description: Has device bays - - in: query - name: exclude_from_utilization - schema: - type: boolean - - in: query - name: front_port_template_count + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: front_port_template_count__empty + name: device_status schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: front_port_template_count__gt + name: device_status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: front_port_template_count__gte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_template_count__lt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_template_count__lte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: front_port_template_count__n + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - - in: query - name: has_front_image - schema: - type: boolean - description: Has a front image - - in: query - name: has_rear_image - schema: - type: boolean - description: Has a rear image - in: query name: id schema: @@ -16240,135 +15917,129 @@ paths: explode: true style: form - in: query - name: interface_template_count + name: installed_device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_template_count__empty - schema: - type: boolean - - in: query - name: interface_template_count__gt + name: installed_device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_template_count__gte + name: installed_device_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_template_count__lt + name: installed_device_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_template_count__lte + name: label schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_template_count__n + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_template_count + name: label__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__empty - schema: - type: boolean - - in: query - name: inventory_item_template_count__gt + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__gte + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__n + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_items + name: label__niew schema: - type: boolean - description: Has inventory items + type: array + items: + type: string + explode: true + style: form - in: query - name: is_full_depth + name: label__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -16439,43 +16110,48 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: model + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -16483,11 +16159,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: @@ -16495,7 +16171,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -16503,7 +16179,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -16511,7 +16187,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -16519,7 +16195,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -16527,7 +16203,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -16535,7 +16211,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -16543,7 +16219,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -16551,81 +16227,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 - - in: query - name: module_bay_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__empty - schema: - type: boolean - - in: query - name: module_bay_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - name: offset required: false in: query @@ -16639,51 +16247,48 @@ paths: schema: type: string - in: query - name: part_number - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: part_number__ic + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: part_number__ie + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: part_number__iew + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__isw + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__n + name: region schema: type: array items: @@ -16691,7 +16296,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: region__n schema: type: array items: @@ -16699,7 +16304,7 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: region_id schema: type: array items: @@ -16707,7 +16312,7 @@ paths: explode: true style: form - in: query - name: part_number__niew + name: region_id__n schema: type: array items: @@ -16715,237 +16320,75 @@ paths: explode: true style: form - in: query - name: part_number__nisw + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlet_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__empty - schema: - type: boolean - - in: query - name: power_outlet_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__empty - schema: - type: boolean - - in: query - name: power_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__n + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_template_count + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__empty - schema: - type: boolean - - in: query - name: rear_port_template_count__gt + name: site_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__gte + name: site_group_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__lt + name: site_group_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__lte + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: rear_port_template_count__n + name: site_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string + description: Site (ID) explode: true style: form - in: query - name: slug__iew + name: tag schema: type: array items: @@ -16953,7 +16396,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tag__n schema: type: array items: @@ -16961,248 +16404,46 @@ paths: explode: true style: form - in: query - name: slug__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: slug__nic + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: slug__nie + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: slug__niew + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: slug__nisw + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: subdevice_role - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: subdevice_role__n - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - 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: u_height - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__empty - schema: - type: boolean - - in: query - name: u_height__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' tags: - dcim security: @@ -17213,21 +16454,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' + $ref: '#/components/schemas/PaginatedDeviceBayList' description: '' post: - operationId: dcim_device_types_create - description: Post a list of device type objects. + operationId: dcim_device_bays_create + description: Post a list of device bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17237,11 +16478,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_bulk_update - description: Put a list of device type objects. + operationId: dcim_device_bays_bulk_update + description: Put a list of device bay objects. tags: - dcim requestBody: @@ -17250,12 +16491,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17267,11 +16508,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_bulk_partial_update - description: Patch a list of device type objects. + operationId: dcim_device_bays_bulk_partial_update + description: Patch a list of device bay objects. tags: - dcim requestBody: @@ -17280,12 +16521,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17297,11 +16538,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_bulk_destroy - description: Delete a list of device type objects. + operationId: dcim_device_bays_bulk_destroy + description: Delete a list of device bay objects. tags: - dcim requestBody: @@ -17310,12 +16551,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17323,16 +16564,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/{id}/: + /api/dcim/device-bays/{id}/: get: - operationId: dcim_device_types_retrieve - description: Get a device type object. + operationId: dcim_device_bays_retrieve + description: Get a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17344,17 +16585,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_update - description: Put a device type object. + operationId: dcim_device_bays_update + description: Put a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17362,10 +16603,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17375,17 +16616,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_partial_update - description: Patch a device type object. + operationId: dcim_device_bays_partial_update + description: Patch a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17393,10 +16634,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -17405,17 +16646,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_destroy - description: Delete a device type object. + operationId: dcim_device_bays_destroy + description: Delete a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17425,65 +16666,13 @@ paths: responses: '204': description: No response body - /api/dcim/devices/: + /api/dcim/device-roles/: get: - operationId: dcim_devices_list - description: Get a list of device objects. + operationId: dcim_device_roles_list + description: Get a list of device role objects. parameters: - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: asset_tag + name: color schema: type: array items: @@ -17491,11 +16680,11 @@ paths: explode: true style: form - in: query - name: asset_tag__empty + name: color__empty schema: type: boolean - in: query - name: asset_tag__ic + name: color__ic schema: type: array items: @@ -17503,7 +16692,7 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: color__ie schema: type: array items: @@ -17511,7 +16700,7 @@ paths: explode: true style: form - in: query - name: asset_tag__iew + name: color__iew schema: type: array items: @@ -17519,7 +16708,7 @@ paths: explode: true style: form - in: query - name: asset_tag__isw + name: color__isw schema: type: array items: @@ -17527,7 +16716,7 @@ paths: explode: true style: form - in: query - name: asset_tag__n + name: color__n schema: type: array items: @@ -17535,7 +16724,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nic + name: color__nic schema: type: array items: @@ -17543,7 +16732,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nie + name: color__nie schema: type: array items: @@ -17551,7 +16740,7 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: color__niew schema: type: array items: @@ -17559,7 +16748,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: color__nisw schema: type: array items: @@ -17567,227 +16756,237 @@ paths: explode: true style: form - in: query - name: cluster_id + name: config_template_id schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: cluster_id__n + name: config_template_id__n schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: config_template_id + name: created schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: config_template_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: console_port_count + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__empty - schema: - type: boolean - - in: query - name: console_port_count__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__gte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lt + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lte + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_ports + name: description__empty schema: type: boolean - description: Has console ports - in: query - name: console_server_port_count + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__empty + name: description__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: console_server_port_count__gt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__gte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__n + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports + name: description__niew schema: - type: boolean - description: Has console server ports + type: array + items: + type: string + explode: true + style: form - in: query - name: contact + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -17796,7 +16995,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -17805,7 +17004,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -17814,7 +17013,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -17823,7 +17022,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -17832,7 +17031,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -17841,7 +17040,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -17849,13 +17048,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -17863,11 +17068,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -17875,7 +17080,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -17883,7 +17088,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -17891,7 +17096,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -17899,7 +17104,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -17907,7 +17112,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -17915,7 +17120,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -17923,7 +17128,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -17931,138 +17136,420 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device_bay_count + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__empty + name: slug__empty schema: type: boolean - in: query - name: device_bay_count__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bays + name: slug__nic schema: - type: boolean - description: Has device bays + type: array + items: + type: string + explode: true + style: form - in: query - name: device_type + name: slug__nie schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type__n + name: slug__niew schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type_id + name: slug__nisw schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: tag schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: face + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face + format: uuid + - in: query + name: vm_role + schema: + type: boolean + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceRoleList' + description: '' + post: + operationId: dcim_device_roles_create + description: Post a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_bulk_update + description: Put a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_bulk_partial_update + description: Patch a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_bulk_destroy + description: Delete a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-roles/{id}/: + get: + operationId: dcim_device_roles_retrieve + description: Get a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_update + description: Put a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_partial_update + description: Patch a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_destroy + description: Delete a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-types/: + get: + operationId: dcim_device_types_list + description: Get a list of device type objects. + parameters: + - in: query + name: airflow + schema: + type: string + x-spec-enum-id: 58e389e240a5e53d enum: - - front - - rear - description: '* `front` - Front + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `rear` - Rear' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: face__n + name: airflow__n schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face + x-spec-enum-id: 58e389e240a5e53d enum: - - front - - rear - description: '* `front` - Front + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `rear` - Rear' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: front_port_count + name: console_port_template_count schema: type: array items: @@ -18071,11 +17558,11 @@ paths: explode: true style: form - in: query - name: front_port_count__empty + name: console_port_template_count__empty schema: type: boolean - in: query - name: front_port_count__gt + name: console_port_template_count__gt schema: type: array items: @@ -18084,7 +17571,7 @@ paths: explode: true style: form - in: query - name: front_port_count__gte + name: console_port_template_count__gte schema: type: array items: @@ -18093,7 +17580,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lt + name: console_port_template_count__lt schema: type: array items: @@ -18102,7 +17589,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lte + name: console_port_template_count__lte schema: type: array items: @@ -18111,7 +17598,7 @@ paths: explode: true style: form - in: query - name: front_port_count__n + name: console_port_template_count__n schema: type: array items: @@ -18120,22 +17607,12 @@ paths: explode: true style: form - in: query - name: has_oob_ip - schema: - type: boolean - description: Has an out-of-band IP - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: has_virtual_device_context + name: console_ports schema: type: boolean - description: Has virtual device context + description: Has console ports - in: query - name: id + name: console_server_port_template_count schema: type: array items: @@ -18144,20 +17621,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: console_server_port_template_count__empty schema: type: boolean - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + name: console_server_port_template_count__gt schema: type: array items: @@ -18166,7 +17634,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: console_server_port_template_count__gte schema: type: array items: @@ -18175,7 +17643,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: console_server_port_template_count__lt schema: type: array items: @@ -18184,7 +17652,7 @@ paths: explode: true style: form - in: query - name: id__n + name: console_server_port_template_count__lte schema: type: array items: @@ -18193,7 +17661,7 @@ paths: explode: true style: form - in: query - name: interface_count + name: console_server_port_template_count__n schema: type: array items: @@ -18202,471 +17670,458 @@ paths: explode: true style: form - in: query - name: interface_count__empty + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query - name: interface_count__gt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_count + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__empty + name: created__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: inventory_item_count__gt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: default_platform schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__gte + name: default_platform__n schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__lt + name: default_platform_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__lte + name: default_platform_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__n + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: is_full_depth + name: description__empty schema: type: boolean - description: Is full depth - in: query - name: last_updated + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: description__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt + name: description__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: device_bay_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__lt + name: device_bay_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: latitude__lte + name: device_bay_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__n + name: device_bay_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - - in: query - name: location_id + name: device_bay_template_count__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: device_bay_template_count__lte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: longitude + name: device_bay_template_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: longitude__gt + name: exclude_from_utilization schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__gte + name: front_port_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lt + name: front_port_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__lte + name: front_port_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__n + name: front_port_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: mac_address + name: front_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ic + name: front_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ie + name: front_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__iew + name: has_front_image schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a front image - in: query - name: mac_address__isw + name: has_rear_image + schema: + type: boolean + description: Has a rear image + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer + name: interface_template_count schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer__n + name: interface_template_count__empty + schema: + type: boolean + - in: query + name: interface_template_count__gt schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer_id + name: interface_template_count__gte schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: manufacturer_id__n + name: interface_template_count__lt schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: model + name: interface_template_count__lte schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: model__n + name: interface_template_count__n schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: modified_by_request + name: interfaces schema: - type: string - format: uuid + type: boolean + description: Has interfaces - in: query - name: module_bay_count + name: inventory_item_template_count schema: type: array items: @@ -18675,11 +18130,11 @@ paths: explode: true style: form - in: query - name: module_bay_count__empty + name: inventory_item_template_count__empty schema: type: boolean - in: query - name: module_bay_count__gt + name: inventory_item_template_count__gt schema: type: array items: @@ -18688,7 +18143,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__gte + name: inventory_item_template_count__gte schema: type: array items: @@ -18697,7 +18152,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lt + name: inventory_item_template_count__lt schema: type: array items: @@ -18706,7 +18161,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lte + name: inventory_item_template_count__lte schema: type: array items: @@ -18715,7 +18170,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__n + name: inventory_item_template_count__n schema: type: array items: @@ -18724,263 +18179,210 @@ paths: explode: true style: form - in: query - name: module_bays + name: inventory_items schema: type: boolean - description: Has module bays - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form + description: Has inventory items - in: query - name: name__empty + name: is_full_depth schema: type: boolean - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - in: query - name: oob_ip_id - schema: - type: array - items: - type: integer - description: OOB IP (ID) - explode: true - style: form - - in: query - name: oob_ip_id__n + name: manufacturer schema: type: array items: - type: integer - description: OOB IP (ID) + type: string + description: Manufacturer (slug) explode: true style: form - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent_bay_id + name: manufacturer__n schema: type: array items: - type: integer - description: Parent bay (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: parent_bay_id__n + name: manufacturer_id schema: type: array items: type: integer - description: Parent bay (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id + name: manufacturer_id__n schema: type: array items: type: integer - description: Parent Device (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id__n + name: model schema: type: array items: - type: integer - description: Parent Device (ID) + type: string explode: true style: form - in: query - name: pass_through_ports + name: model__empty schema: type: boolean - description: Has pass-through ports - in: query - name: platform + name: model__ic schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: model__ie schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: model__iew schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: model__isw schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: position + name: model__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__gt + name: model__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__gte + name: model__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lt + name: model__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lte + name: model__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__n + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: power_outlet_count + name: module_bay_template_count schema: type: array items: @@ -18989,11 +18391,11 @@ paths: explode: true style: form - in: query - name: power_outlet_count__empty + name: module_bay_template_count__empty schema: type: boolean - in: query - name: power_outlet_count__gt + name: module_bay_template_count__gt schema: type: array items: @@ -19002,7 +18404,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__gte + name: module_bay_template_count__gte schema: type: array items: @@ -19011,7 +18413,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lt + name: module_bay_template_count__lt schema: type: array items: @@ -19020,7 +18422,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lte + name: module_bay_template_count__lte schema: type: array items: @@ -19029,7 +18431,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__n + name: module_bay_template_count__n schema: type: array items: @@ -19038,134 +18440,126 @@ paths: explode: true style: form - in: query - name: power_outlets + name: module_bays schema: type: boolean - description: Has power outlets + description: Has module bays + - 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_count + name: part_number schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__empty + name: part_number__empty schema: type: boolean - in: query - name: power_port_count__gt + name: part_number__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__gte + name: part_number__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lt + name: part_number__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lte + name: part_number__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__n + name: part_number__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: primary_ip4_id + name: part_number__nic schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: part_number__nie schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: part_number__niew schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: part_number__nisw schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q + name: pass_through_ports schema: - type: string - description: Search + type: boolean + description: Has pass-through ports - in: query - name: rack_id + name: power_outlet_template_count schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rack_id__n + name: power_outlet_template_count__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: rear_port_count + name: power_outlet_template_count__gt schema: type: array items: @@ -19174,11 +18568,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__empty - schema: - type: boolean - - in: query - name: rear_port_count__gt + name: power_outlet_template_count__gte schema: type: array items: @@ -19187,7 +18577,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__gte + name: power_outlet_template_count__lt schema: type: array items: @@ -19196,7 +18586,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lt + name: power_outlet_template_count__lte schema: type: array items: @@ -19205,7 +18595,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lte + name: power_outlet_template_count__n schema: type: array items: @@ -19214,7 +18604,12 @@ paths: explode: true style: form - in: query - name: rear_port_count__n + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_port_template_count schema: type: array items: @@ -19223,131 +18618,124 @@ paths: explode: true style: form - in: query - name: region + name: power_port_template_count__empty schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form + type: boolean - in: query - name: region__n + name: power_port_template_count__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: power_port_template_count__gte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: power_port_template_count__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: power_port_template_count__lte schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: power_port_template_count__n schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: power_ports schema: - type: array - items: - type: integer - description: Role (ID) - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: role_id__n + name: q schema: - type: array - items: - type: integer - description: Role (ID) - explode: true - style: form + type: string + description: Search - in: query - name: serial + name: rear_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__empty + name: rear_port_template_count__empty schema: type: boolean - in: query - name: serial__ic + name: rear_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__ie + name: rear_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__iew + name: rear_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__isw + name: rear_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__n + name: rear_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__nic + name: slug schema: type: array items: @@ -19355,15 +18743,11 @@ paths: explode: true style: form - in: query - name: serial__nie + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__niew + name: slug__ic schema: type: array items: @@ -19371,7 +18755,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: slug__ie schema: type: array items: @@ -19379,95 +18763,93 @@ paths: explode: true style: form - in: query - name: site + name: slug__iew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__isw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) explode: true style: form - in: query - name: site_group__n + name: slug__n schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__nic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__nie schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__niew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: status + name: subdevice_role schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' - in: query - name: status__n + name: subdevice_role__n schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' - in: query name: tag schema: @@ -19485,77 +18867,61 @@ paths: explode: true style: form - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n + name: u_height schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: u_height__empty schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: boolean - in: query - name: tenant_group__n + name: u_height__gt schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id + name: u_height__gte schema: type: array items: - type: integer - description: Tenant Group (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id__n + name: u_height__lt schema: type: array items: - type: integer - description: Tenant Group (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_id + name: u_height__lte schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_id__n + name: u_height__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query @@ -19564,144 +18930,97 @@ paths: type: string format: uuid - in: query - name: vc_position - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__empty - schema: - type: boolean - - in: query - name: vc_position__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority + name: weight schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__empty + name: weight__empty schema: type: boolean - in: query - name: vc_priority__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__gte + name: weight__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__lt + name: weight__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__lte + name: weight__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__n + name: weight__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id + name: weight__n schema: type: array items: - type: integer - description: Virtual chassis (ID) + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id__n + name: weight_unit schema: - type: array - items: - type: integer - description: Virtual chassis (ID) - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis_member + name: weight_unit__n schema: - type: boolean - description: Is a virtual chassis member + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -19712,21 +19031,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + $ref: '#/components/schemas/PaginatedDeviceTypeList' description: '' post: - operationId: dcim_devices_create - description: Post a list of device objects. + operationId: dcim_device_types_create + description: Post a list of device type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19736,11 +19055,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_bulk_update - description: Put a list of device objects. + operationId: dcim_device_types_bulk_update + description: Put a list of device type objects. tags: - dcim requestBody: @@ -19749,12 +19068,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19766,11 +19085,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_bulk_partial_update - description: Patch a list of device objects. + operationId: dcim_device_types_bulk_partial_update + description: Patch a list of device type objects. tags: - dcim requestBody: @@ -19779,12 +19098,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19796,11 +19115,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_bulk_destroy - description: Delete a list of device objects. + operationId: dcim_device_types_bulk_destroy + description: Delete a list of device type objects. tags: - dcim requestBody: @@ -19809,12 +19128,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19822,16 +19141,16 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/: + /api/dcim/device-types/{id}/: get: - operationId: dcim_devices_retrieve - description: Get a device object. + operationId: dcim_device_types_retrieve + description: Get a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19843,17 +19162,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_update - description: Put a device object. + operationId: dcim_device_types_update + description: Put a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19861,10 +19180,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19874,17 +19193,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_partial_update - description: Patch a device object. + operationId: dcim_device_types_partial_update + description: Patch a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19892,10 +19211,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -19904,17 +19223,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_destroy - description: Delete a device object. + operationId: dcim_device_types_destroy + description: Delete a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19924,55 +19243,65 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/render-config/: - post: - operationId: dcim_devices_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/dcim/devices/: + get: + operationId: dcim_devices_list + description: Get a list of device objects. parameters: - in: query - name: format + name: airflow schema: type: string + x-spec-enum-id: 58e389e240a5e53d enum: - - json - - txt - - in: path - name: id + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + - in: query + name: airflow__n schema: - type: integer - description: A unique integer value identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - /api/dcim/front-port-templates/: - get: - operationId: dcim_front_port_templates_list - description: Get a list of front port template objects. - parameters: + type: string + x-spec-enum-id: 58e389e240a5e53d + enum: + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: color + name: asset_tag schema: type: array items: @@ -19980,11 +19309,11 @@ paths: explode: true style: form - in: query - name: color__empty + name: asset_tag__empty schema: type: boolean - in: query - name: color__ic + name: asset_tag__ic schema: type: array items: @@ -19992,7 +19321,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: asset_tag__ie schema: type: array items: @@ -20000,7 +19329,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: asset_tag__iew schema: type: array items: @@ -20008,7 +19337,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: asset_tag__isw schema: type: array items: @@ -20016,7 +19345,7 @@ paths: explode: true style: form - in: query - name: color__n + name: asset_tag__n schema: type: array items: @@ -20024,7 +19353,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: asset_tag__nic schema: type: array items: @@ -20032,7 +19361,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: asset_tag__nie schema: type: array items: @@ -20040,7 +19369,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: asset_tag__niew schema: type: array items: @@ -20048,7 +19377,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: asset_tag__nisw schema: type: array items: @@ -20056,309 +19385,329 @@ paths: explode: true style: form - in: query - name: created + name: cluster_group schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__empty + name: cluster_group__n schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__gt + name: cluster_group_id schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__gte + name: cluster_group_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__lt + name: cluster_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__lte + name: cluster_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__n + name: config_template_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: created_by_request + name: config_template_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form - in: query - name: description + name: console_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: console_port_count__empty schema: type: boolean - in: query - name: description__ic + name: console_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: console_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: console_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: console_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: console_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: console_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has console ports - in: query - name: description__nie + name: console_server_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: console_server_port_count__empty + schema: + type: boolean + - in: query + name: console_server_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: console_server_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: console_server_port_count__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: console_server_port_count__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id + name: console_server_port_count__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: console_server_ports + schema: + type: boolean + description: Has console server ports + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Contact explode: true style: form - in: query - name: id + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: label + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -20366,7 +19715,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -20374,7 +19727,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__ie schema: type: array items: @@ -20382,7 +19735,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__iew schema: type: array items: @@ -20390,238 +19743,273 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: device_bay_count schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: device_bay_count__empty schema: - type: string - format: uuid + type: boolean - in: query - name: module_type_id + name: device_bay_count__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: device_bay_count__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: device_bay_count__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: device_bay_count__lte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: device_bay_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: name__ic + name: device_type schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__ie + name: device_type__n schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__iew + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__isw + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__n + name: face + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: face__n + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: front_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: front_port_count__empty + schema: + type: boolean + - in: query + name: front_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: front_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: front_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: front_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: front_port_count__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_oob_ip schema: - type: string + type: boolean + description: Has an out-of-band IP - in: query - name: q + name: has_primary_ip schema: - type: string - description: Search + type: boolean + description: Has a primary IP - in: query - name: rear_port_id + name: has_virtual_device_context + schema: + type: boolean + description: Has virtual device context + - in: query + name: id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_position + name: id__gte schema: type: array items: @@ -20630,11 +20018,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty - schema: - type: boolean - - in: query - name: rear_port_position__gt + name: id__lt schema: type: array items: @@ -20643,7 +20027,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: id__lte schema: type: array items: @@ -20652,7 +20036,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: id__n schema: type: array items: @@ -20661,7 +20045,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: interface_count schema: type: array items: @@ -20670,7 +20054,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: @@ -20679,387 +20067,147 @@ paths: explode: true style: form - in: query - name: type + name: interface_count__gte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: type__n + name: interface_count__lt schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' - description: '' - post: - operationId: dcim_front_port_templates_create - description: Post a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_bulk_update - description: Put a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: Patch a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_bulk_destroy - description: Delete a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-port-templates/{id}/: - get: - operationId: dcim_front_port_templates_retrieve - description: Get a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_update - description: Put a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_partial_update - description: Patch a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_destroy - description: Delete a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/: - get: - operationId: dcim_front_ports_list - description: Get a list of front port objects. - parameters: - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: interface_count__lte schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: interface_count__n schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled + name: interfaces schema: type: boolean + description: Has interfaces - in: query - name: color + name: inventory_item_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: inventory_item_count__empty schema: type: boolean - in: query - name: color__ic + name: inventory_item_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__ie + name: inventory_item_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__iew + name: inventory_item_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__isw + name: inventory_item_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__n + name: inventory_item_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: is_full_depth + schema: + type: boolean + description: Is full depth + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: created + name: last_updated__lt schema: type: array items: @@ -21068,7 +20216,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__lte schema: type: array items: @@ -21077,7 +20225,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__n schema: type: array items: @@ -21086,60 +20234,76 @@ paths: explode: true style: form - in: query - name: created__gte + name: latitude schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lt + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lte + name: latitude__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__n + name: latitude__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request + name: latitude__lte schema: - type: string - format: uuid + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: description + name: latitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description__empty + name: local_context_data schema: type: boolean + description: Has local config context data - in: query - name: description__ic + name: location_id schema: type: array items: @@ -21147,7 +20311,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: location_id__n schema: type: array items: @@ -21155,55 +20319,65 @@ paths: explode: true style: form - in: query - name: description__iew + name: longitude schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__n + name: longitude__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nic + name: longitude__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nie + name: longitude__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__niew + name: longitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nisw + name: mac_address schema: type: array items: @@ -21211,199 +20385,201 @@ paths: explode: true style: form - in: query - name: device + name: mac_address__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: mac_address__ie schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: mac_address__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: mac_address__isw schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: mac_address__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: mac_address__nic schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: mac_address__nie schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: mac_address__niew schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: mac_address__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: manufacturer schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__gte + name: manufacturer__n schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lt + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__lte + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__n + name: model schema: type: array items: - type: integer - format: int32 + type: string + description: Device model (slug) explode: true style: form - in: query - name: label + name: model__n schema: type: array items: type: string + description: Device model (slug) explode: true style: form - in: query - name: label__empty + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: label__ic + name: module_bay_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: module_bay_count__empty schema: - type: array - items: - type: string + type: boolean + - in: query + name: module_bay_count__gt + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: module_bay_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: module_bay_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: module_bay_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: module_bay_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: module_bays + schema: + type: boolean + description: Has module bays + - in: query + name: name schema: type: array items: @@ -21411,7 +20587,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -21419,7 +20599,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -21427,298 +20607,415 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - in: query - name: location + name: oob_ip_id schema: type: array items: - type: string - description: Location (slug) + type: integer + description: OOB IP (ID) explode: true style: form - in: query - name: location__n + name: oob_ip_id__n schema: type: array items: - type: string - description: Location (slug) + type: integer + description: OOB IP (ID) explode: true style: form + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: location_id + name: parent_bay_id schema: type: array items: type: integer - description: Location (ID) + description: Parent bay (ID) explode: true style: form - in: query - name: location_id__n + name: parent_bay_id__n schema: type: array items: type: integer - description: Location (ID) + description: Parent bay (ID) explode: true style: form - in: query - name: mark_connected + name: parent_device_id + schema: + type: array + items: + type: integer + description: Parent Device (ID) + explode: true + style: form + - in: query + name: parent_device_id__n + schema: + type: array + items: + type: integer + description: Parent Device (ID) + explode: true + style: form + - in: query + name: pass_through_ports schema: type: boolean + description: Has pass-through ports - in: query - name: modified_by_request + name: platform schema: - type: string - format: uuid + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: module_id + name: platform__n + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Platform (ID) explode: true style: form - in: query - name: module_id__n + name: platform_id__n schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Platform (ID) explode: true style: form - in: query - name: name + name: position schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__empty + name: position__empty schema: type: boolean - in: query - name: name__ic + name: position__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__ie + name: position__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__iew + name: position__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__isw + name: position__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__n + name: position__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__nic + name: power_outlet_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: power_outlet_count__empty + schema: + type: boolean + - in: query + name: power_outlet_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: power_outlet_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: power_outlet_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: occupied + name: power_outlet_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlet_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlets schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + description: Has power outlets + - in: query + name: power_port_count 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: power_port_count__empty schema: - type: string + type: boolean - in: query - name: q + name: power_port_count__gt schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: rack + name: power_port_count__gte schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack__n + name: power_port_count__lt schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack_id + name: power_port_count__lte schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rack_id__n + name: power_port_count__n schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rear_port_id + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: primary_ip4_id schema: type: array items: type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rear_port_id__n + name: primary_ip4_id__n schema: type: array items: type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rear_port_position + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: 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: rear_port_count schema: type: array items: @@ -21727,11 +21024,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty + name: rear_port_count__empty schema: type: boolean - in: query - name: rear_port_position__gt + name: rear_port_count__gt schema: type: array items: @@ -21740,7 +21037,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: rear_port_count__gte schema: type: array items: @@ -21749,7 +21046,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: rear_port_count__lt schema: type: array items: @@ -21758,7 +21055,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: rear_port_count__lte schema: type: array items: @@ -21767,7 +21064,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: rear_port_count__n schema: type: array items: @@ -21780,8 +21077,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21789,8 +21085,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21798,8 +21093,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21807,8 +21101,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21817,7 +21110,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21826,7 +21119,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21835,7 +21128,7 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) explode: true style: form - in: query @@ -21844,7 +21137,91 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -21870,8 +21247,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21879,8 +21255,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21888,8 +21263,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21897,8 +21271,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21919,6 +21292,24 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: tag schema: @@ -21936,21 +21327,73 @@ paths: explode: true style: form - in: query - name: type + name: tenant schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + description: Tenant (slug) explode: true style: form - in: query - name: type__n + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: 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 - x-spec-enum-id: 0276d1110ada597a + 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 @@ -21959,21 +21402,119 @@ paths: type: string format: uuid - in: query - name: virtual_chassis + name: vc_position schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 explode: true style: form - in: query - name: virtual_chassis__n + name: vc_position__empty + schema: + type: boolean + - in: query + name: vc_position__gt schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__empty + schema: + type: boolean + - in: query + name: vc_priority__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -21982,7 +21523,7 @@ paths: type: array items: type: integer - description: Virtual Chassis (ID) + description: Virtual chassis (ID) explode: true style: form - in: query @@ -21991,9 +21532,14 @@ paths: type: array items: type: integer - description: Virtual Chassis (ID) + description: Virtual chassis (ID) explode: true style: form + - in: query + name: virtual_chassis_member + schema: + type: boolean + description: Is a virtual chassis member tags: - dcim security: @@ -22004,21 +21550,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFrontPortList' + $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' description: '' post: - operationId: dcim_front_ports_create - description: Post a list of front port objects. + operationId: dcim_devices_create + description: Post a list of device objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22028,11 +21574,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_bulk_update - description: Put a list of front port objects. + operationId: dcim_devices_bulk_update + description: Put a list of device objects. tags: - dcim requestBody: @@ -22041,12 +21587,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22058,11 +21604,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_bulk_partial_update - description: Patch a list of front port objects. + operationId: dcim_devices_bulk_partial_update + description: Patch a list of device objects. tags: - dcim requestBody: @@ -22071,12 +21617,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22088,11 +21634,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_bulk_destroy - description: Delete a list of front port objects. + operationId: dcim_devices_bulk_destroy + description: Delete a list of device objects. tags: - dcim requestBody: @@ -22101,12 +21647,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22114,16 +21660,16 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/: + /api/dcim/devices/{id}/: get: - operationId: dcim_front_ports_retrieve - description: Get a front port object. + operationId: dcim_devices_retrieve + description: Get a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22135,17 +21681,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_update - description: Put a front port object. + operationId: dcim_devices_update + description: Put a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22153,10 +21699,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22166,17 +21712,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_partial_update - description: Patch a front port object. + operationId: dcim_devices_partial_update + description: Patch a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22184,10 +21730,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -22196,17 +21742,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_destroy - description: Delete a front port object. + operationId: dcim_devices_destroy + description: Delete a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22216,19 +21762,35 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/paths/: - get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + /api/dcim/devices/{id}/render-config/: + post: + operationId: dcim_devices_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -22237,27 +21799,98 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' - /api/dcim/interface-templates/: + /api/dcim/front-port-templates/: get: - operationId: dcim_interface_templates_list - description: Get a list of interface template objects. + operationId: dcim_front_port_templates_list + description: Get a list of front port template objects. parameters: - in: query - name: bridge_id + name: color schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: bridge_id__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer + 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 @@ -22432,30 +22065,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -22667,10 +22276,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mgmt_only - schema: - type: boolean - in: query name: modified_by_request schema: @@ -22696,26 +22301,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -22813,64 +22398,82 @@ paths: schema: type: string - in: query - name: poe_mode + name: q + schema: + type: string + description: Search + - in: query + name: rear_port_id schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer explode: true style: form - in: query - name: poe_mode__n + name: rear_port_id__n schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer explode: true style: form - in: query - name: poe_type + name: rear_port_position schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: poe_type__n + name: rear_port_position__empty + schema: + type: boolean + - in: query + name: rear_port_position__gt schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: q + name: rear_port_position__gte schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: rf_role + name: rear_port_position__lt schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + format: int32 explode: true style: form - in: query - name: rf_role__n + name: rear_port_position__lte schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -22879,7 +22482,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -22888,7 +22491,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -22906,21 +22509,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' + $ref: '#/components/schemas/PaginatedFrontPortTemplateList' description: '' post: - operationId: dcim_interface_templates_create - description: Post a list of interface template objects. + operationId: dcim_front_port_templates_create + description: Post a list of front port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22930,11 +22533,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_interface_templates_bulk_update - description: Put a list of interface template objects. + operationId: dcim_front_port_templates_bulk_update + description: Put a list of front port template objects. tags: - dcim requestBody: @@ -22943,12 +22546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22960,11 +22563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_interface_templates_bulk_partial_update - description: Patch a list of interface template objects. + operationId: dcim_front_port_templates_bulk_partial_update + description: Patch a list of front port template objects. tags: - dcim requestBody: @@ -22973,12 +22576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22990,11 +22593,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_interface_templates_bulk_destroy - description: Delete a list of interface template objects. + operationId: dcim_front_port_templates_bulk_destroy + description: Delete a list of front port template objects. tags: - dcim requestBody: @@ -23003,12 +22606,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -23016,16 +22619,16 @@ paths: responses: '204': description: No response body - /api/dcim/interface-templates/{id}/: + /api/dcim/front-port-templates/{id}/: get: - operationId: dcim_interface_templates_retrieve - description: Get a interface template object. + operationId: dcim_front_port_templates_retrieve + description: Get a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23037,17 +22640,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_interface_templates_update - description: Put a interface template object. + operationId: dcim_front_port_templates_update + description: Put a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23055,10 +22658,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -23068,17 +22671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_interface_templates_partial_update - description: Patch a interface template object. + operationId: dcim_front_port_templates_partial_update + description: Patch a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23086,10 +22689,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -23098,17 +22701,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_interface_templates_destroy - description: Delete a interface template object. + operationId: dcim_front_port_templates_destroy + description: Delete a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23118,29 +22721,11 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/: + /api/dcim/front-ports/: get: - operationId: dcim_interfaces_list - description: Get a list of interface objects. + operationId: dcim_front_ports_list + description: Get a list of front port objects. parameters: - - in: query - name: bridge_id - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: bridge_id__n - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - in: query name: cable_end schema: @@ -23188,9 +22773,89 @@ paths: schema: type: boolean - in: query - name: connected + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty schema: type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -23382,107 +23047,97 @@ paths: explode: true style: form - in: query - name: device_type + name: device_role schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type__n + name: device_role__n schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type_id + name: device_role_id schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_role_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: duplex + name: device_status schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: duplex__n + name: device_status__n schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: id__gte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lt + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -23491,7 +23146,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -23500,52 +23159,39 @@ paths: explode: true style: form - in: query - name: kind - schema: - type: string - description: Kind of interface - - in: query - name: l2vpn + name: id__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn__n + name: id__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn_id + name: id__lte schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: l2vpn_id__n + name: id__n schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query @@ -23632,24 +23278,6 @@ paths: type: string explode: true style: form - - in: query - name: lag_id - schema: - type: array - items: - type: integer - description: LAG interface (ID) - explode: true - style: form - - in: query - name: lag_id__n - schema: - type: array - items: - type: integer - description: LAG interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -23755,128 +23383,10 @@ paths: description: Location (ID) explode: true style: form - - in: query - name: mac_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: mark_connected schema: type: boolean - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: @@ -23902,64 +23412,6 @@ paths: description: Module (ID) explode: true style: form - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty - schema: - type: boolean - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: name schema: @@ -24060,60 +23512,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: poe_mode - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_type - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - - in: query - name: poe_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - in: query name: q schema: @@ -24156,231 +23554,109 @@ paths: explode: true style: form - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n + name: rear_port_id schema: type: array items: type: integer - description: Region (slug) explode: true style: form - in: query - name: region_id + name: rear_port_id__n schema: type: array items: type: integer - description: Region (ID) explode: true style: form - in: query - name: region_id__n + name: rear_port_position schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: rf_channel - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel__n - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel_frequency - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__empty - schema: - type: boolean - - in: query - name: rf_channel_frequency__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width - schema: - type: array - items: - type: number - format: double + format: int32 explode: true style: form - in: query - name: rf_channel_width__empty + name: rear_port_position__empty schema: type: boolean - in: query - name: rf_channel_width__gt + name: rear_port_position__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__gte + name: rear_port_position__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lt + name: rear_port_position__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lte + name: rear_port_position__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__n + name: rear_port_position__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_role + name: region schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: rf_role__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: role + name: region_id schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -24406,8 +23682,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -24415,8 +23690,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -24424,8 +23698,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -24433,8 +23706,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -24455,69 +23727,6 @@ paths: description: Site (ID) explode: true style: form - - in: query - name: speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: tag schema: @@ -24534,71 +23743,13 @@ paths: type: string explode: true style: form - - in: query - name: tx_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__empty - schema: - type: boolean - - in: query - name: tx_power__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: type schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -24607,7 +23758,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -24615,66 +23766,6 @@ paths: schema: type: string format: uuid - - in: query - name: vdc - schema: - type: array - items: - type: string - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc__n - schema: - type: array - items: - type: string - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id__n - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_identifier - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) - explode: true - style: form - - in: query - name: vdc_identifier__n - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) - explode: true - style: form - in: query name: virtual_chassis schema: @@ -24711,191 +23802,6 @@ paths: description: Virtual Chassis (ID) explode: true style: form - - in: query - name: virtual_chassis_member - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: virtual_chassis_member_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: wireless_lan_id - schema: - type: array - items: - type: integer - description: Wireless LAN - explode: true - style: form - - in: query - name: wireless_lan_id__n - schema: - type: array - items: - type: integer - description: Wireless LAN - explode: true - style: form - - in: query - name: wireless_link_id - schema: - type: array - items: - type: integer - nullable: true - description: Wireless link - explode: true - style: form - - in: query - name: wireless_link_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Wireless link - explode: true - style: form - - in: query - name: wwn - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - dcim security: @@ -24906,21 +23812,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceList' + $ref: '#/components/schemas/PaginatedFrontPortList' description: '' post: - operationId: dcim_interfaces_create - description: Post a list of interface objects. + operationId: dcim_front_ports_create + description: Post a list of front port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -24930,11 +23836,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_bulk_update - description: Put a list of interface objects. + operationId: dcim_front_ports_bulk_update + description: Put a list of front port objects. tags: - dcim requestBody: @@ -24943,12 +23849,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24960,11 +23866,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: dcim_front_ports_bulk_partial_update + description: Patch a list of front port objects. tags: - dcim requestBody: @@ -24973,12 +23879,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24990,11 +23896,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: dcim_front_ports_bulk_destroy + description: Delete a list of front port objects. tags: - dcim requestBody: @@ -25003,12 +23909,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -25016,16 +23922,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/: + /api/dcim/front-ports/{id}/: get: - operationId: dcim_interfaces_retrieve - description: Get a interface object. + operationId: dcim_front_ports_retrieve + description: Get a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25037,17 +23943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_update - description: Put a interface object. + operationId: dcim_front_ports_update + description: Put a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25055,10 +23961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -25068,17 +23974,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_partial_update - description: Patch a interface object. + operationId: dcim_front_ports_partial_update + description: Patch a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25086,10 +23992,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25098,17 +24004,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_destroy - description: Delete a interface object. + operationId: dcim_front_ports_destroy + description: Delete a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25118,17 +24024,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/trace/: + /api/dcim/front-ports/{id}/paths/: get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_front_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25140,75 +24045,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' - /api/dcim/inventory-item-roles/: + /api/dcim/interface-templates/: get: - operationId: dcim_inventory_item_roles_list - description: Get a list of inventory item role objects. + operationId: dcim_interface_templates_list + description: Get a list of interface template objects. parameters: - in: query - name: color + name: bridge_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: color__empty + name: bridge_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: color__ic + 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: color__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -25216,7 +24145,11 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -25224,7 +24157,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__ie schema: type: array items: @@ -25232,135 +24165,145 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: device_type_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query - name: description + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__empty + name: enabled schema: type: boolean - in: query - name: description__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: label schema: type: array items: @@ -25368,7 +24311,11 @@ paths: explode: true style: form - in: query - name: description__niew + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -25376,7 +24323,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__ie schema: type: array items: @@ -25384,61 +24331,59 @@ paths: explode: true style: form - in: query - name: id + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: label__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -25510,11 +24455,35 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mgmt_only + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -25612,108 +24581,82 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: slug__isw + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: slug__n + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: slug__nic + name: poe_type__n schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: slug__nie + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__niew + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: slug__nisw + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: tag + name: type schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query @@ -25731,21 +24674,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemRoleList' + $ref: '#/components/schemas/PaginatedInterfaceTemplateList' description: '' post: - operationId: dcim_inventory_item_roles_create - description: Post a list of inventory item role objects. - tags: + operationId: dcim_interface_templates_create + description: Post a list of interface template objects. + tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25755,11 +24698,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_item_roles_bulk_update - description: Put a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_update + description: Put a list of interface template objects. tags: - dcim requestBody: @@ -25768,12 +24711,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25785,11 +24728,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_bulk_partial_update - description: Patch a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_partial_update + description: Patch a list of interface template objects. tags: - dcim requestBody: @@ -25798,12 +24741,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25815,11 +24758,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_bulk_destroy - description: Delete a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_destroy + description: Delete a list of interface template objects. tags: - dcim requestBody: @@ -25828,12 +24771,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25841,16 +24784,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-roles/{id}/: + /api/dcim/interface-templates/{id}/: get: - operationId: dcim_inventory_item_roles_retrieve - description: Get a inventory item role object. + operationId: dcim_interface_templates_retrieve + description: Get a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25862,17 +24805,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_item_roles_update - description: Put a inventory item role object. + operationId: dcim_interface_templates_update + description: Put a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25880,10 +24823,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25893,17 +24836,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_partial_update - description: Patch a inventory item role object. + operationId: dcim_interface_templates_partial_update + description: Patch a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25911,10 +24854,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25923,17 +24866,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_destroy - description: Delete a inventory item role object. + operationId: dcim_interface_templates_destroy + description: Delete a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25943,82 +24886,79 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/: + /api/dcim/interfaces/: get: - operationId: dcim_inventory_item_templates_list - description: Get a list of inventory item template objects. + operationId: dcim_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: component_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__empty + name: bridge_id schema: type: array items: type: integer - format: int32 + description: Bridged interface (ID) explode: true style: form - in: query - name: component_id__gt + name: bridge_id__n schema: type: array items: type: integer - format: int32 + description: Bridged interface (ID) explode: true style: form - in: query - name: component_id__gte + name: cable_end schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: component_id__lt + name: cable_end__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: component_id__lte + name: cable_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_id__n + name: cable_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_type + name: cabled schema: - type: string + type: boolean - in: query - name: component_type__n + name: connected schema: - type: string + type: boolean - in: query name: created schema: @@ -26172,25 +25112,117 @@ paths: explode: true style: form - in: query - name: device_type_id + 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 type (ID) + description: Device (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) explode: true style: form - in: query - name: devicetype_id + name: device_type_id schema: type: array items: @@ -26199,7 +25231,7 @@ paths: explode: true style: form - in: query - name: devicetype_id__n + name: device_type_id__n schema: type: array items: @@ -26207,6 +25239,30 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: duplex + schema: + type: array + items: + type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + explode: true + style: form + - in: query + name: duplex__n + schema: + type: array + items: + type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + explode: true + style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -26265,6 +25321,55 @@ paths: format: int32 explode: true style: form + - in: query + name: kind + schema: + type: string + description: Kind of interface + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: label schema: @@ -26349,6 +25454,24 @@ paths: type: string explode: true style: form + - in: query + name: lag_id + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form + - in: query + name: lag_id__n + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -26419,50 +25542,43 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: mac_address schema: type: array items: @@ -26470,11 +25586,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__ic schema: type: array items: @@ -26482,7 +25594,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__ie schema: type: array items: @@ -26490,7 +25602,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__iew schema: type: array items: @@ -26498,7 +25610,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__isw schema: type: array items: @@ -26506,7 +25618,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__n schema: type: array items: @@ -26514,7 +25626,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__nic schema: type: array items: @@ -26522,7 +25634,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nie schema: type: array items: @@ -26530,7 +25642,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: mac_address__niew schema: type: array items: @@ -26538,99 +25650,140 @@ paths: explode: true style: form - in: query - name: name__nisw + name: mac_address__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: mark_connected schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: mgmt_only + schema: + type: boolean + - in: query + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: mode__n + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: parent_id + name: module_id schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: parent_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: part_id + name: mtu schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__empty + name: mtu__empty schema: type: boolean - in: query - name: part_id__ic + name: mtu__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__ie + name: mtu__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__iew + name: mtu__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__isw + name: mtu__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__n + name: mtu__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nic + name: name schema: type: array items: @@ -26638,7 +25791,11 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -26646,7 +25803,7 @@ paths: explode: true style: form - in: query - name: part_id__niew + name: name__ie schema: type: array items: @@ -26654,7 +25811,7 @@ paths: explode: true style: form - in: query - name: part_id__nisw + name: name__iew schema: type: array items: @@ -26662,282 +25819,39 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: name__isw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: name__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: name__nic schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: name__nie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' - description: '' - post: - operationId: dcim_inventory_item_templates_create - description: Post a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_bulk_update - description: Put a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_bulk_partial_update - description: Patch a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_bulk_destroy - description: Delete a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-item-templates/{id}/: - get: - operationId: dcim_inventory_item_templates_retrieve - description: Get a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_update - description: Put a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_partial_update - description: Patch a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_destroy - description: Delete a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-items/: - get: - operationId: dcim_inventory_items_list - description: Get a list of inventory item objects. - parameters: - - in: query - name: asset_tag + name: name__niew schema: type: array items: @@ -26945,11 +25859,7 @@ paths: explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic + name: name__nisw schema: type: array items: @@ -26957,372 +25867,383 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent_id schema: type: array items: - type: string + type: integer + description: Parent interface (ID) explode: true style: form - in: query - name: asset_tag__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + description: Parent interface (ID) explode: true style: form - in: query - name: asset_tag__isw + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: asset_tag__n + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: asset_tag__nic + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: asset_tag__nie + name: poe_type__n schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: asset_tag__niew + 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: asset_tag__nisw + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: component_id + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: component_id__empty + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: component_id__gt + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__gte + name: region__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__n + name: rf_channel schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - - in: query - name: created + name: rf_channel__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: created__empty + name: rf_channel_frequency schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gt + name: rf_channel_frequency__empty + schema: + type: boolean + - in: query + name: rf_channel_frequency__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gte + name: rf_channel_frequency__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lt + name: rf_channel_frequency__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lte + name: rf_channel_frequency__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__n + name: rf_channel_frequency__n schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: rf_channel_width schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__empty + name: rf_channel_width__empty schema: type: boolean - in: query - name: description__ic + name: rf_channel_width__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__ie + name: rf_channel_width__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__iew + name: rf_channel_width__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: rf_channel_width__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__n + name: rf_channel_width__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nic + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__nie + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__niew + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: description__nisw + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: device + name: site_group schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: site_group__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 + name: site_group_id schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: site_group_id__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: site_id schema: type: array items: - type: string - description: Device type (model) + type: integer + description: Site (ID) explode: true style: form - in: query - name: device_type_id + name: site_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Site (ID) explode: true style: form - in: query - name: device_type_id__n + name: speed schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: discovered - schema: - type: boolean - - in: query - name: id + name: speed__empty schema: type: array items: @@ -27331,11 +26252,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: speed__gt schema: type: array items: @@ -27344,7 +26261,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: speed__gte schema: type: array items: @@ -27353,7 +26270,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: speed__lt schema: type: array items: @@ -27362,7 +26279,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: speed__lte schema: type: array items: @@ -27371,7 +26288,7 @@ paths: explode: true style: form - in: query - name: id__n + name: speed__n schema: type: array items: @@ -27380,7 +26297,7 @@ paths: explode: true style: form - in: query - name: label + name: tag schema: type: array items: @@ -27388,11 +26305,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: tag__n schema: type: array items: @@ -27400,219 +26313,297 @@ paths: explode: true style: form - in: query - name: label__ie + name: tx_power schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: tx_power__empty + schema: + type: boolean + - in: query + name: tx_power__gt schema: type: array items: - type: string - explode: true + type: integer + format: int32 + explode: true style: form - in: query - name: label__isw + name: tx_power__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: tx_power__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: tx_power__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: tx_power__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: type schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: label__nisw + name: type__n schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: last_updated + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vdc schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__empty + name: vdc__n schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gt + name: vdc_id schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gte + name: vdc_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__lt + name: vdc_identifier + schema: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) + explode: true + style: form + - in: query + name: vdc_identifier__n + schema: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) + explode: true + style: form + - in: query + name: virtual_chassis schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__lte + name: virtual_chassis__n schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__n + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_member schema: type: 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: virtual_chassis_member_id schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: location + name: vlan + schema: + type: string + description: Assigned VID + - in: query + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: type: string - description: Location (slug) + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: location__n + name: vrf__n schema: type: array items: type: string - description: Location (slug) + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: location_id + name: vrf_id schema: type: array items: type: integer - description: Location (ID) + description: VRF explode: true style: form - in: query - name: location_id__n + name: vrf_id__n schema: type: array items: type: integer - description: Location (ID) + description: VRF explode: true style: form - in: query - name: manufacturer + name: wireless_lan_id schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + description: Wireless LAN explode: true style: form - in: query - name: manufacturer__n + name: wireless_lan_id__n schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + description: Wireless LAN explode: true style: form - in: query - name: manufacturer_id + name: wireless_link_id schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Wireless link explode: true style: form - in: query - name: manufacturer_id__n + name: wireless_link_id__n schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Wireless link explode: true style: form - in: query - name: modified_by_request + name: wwn schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: name + name: wwn__ic schema: type: array items: @@ -27620,11 +26611,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: wwn__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: wwn__iew schema: type: array items: @@ -27632,7 +26627,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: wwn__isw schema: type: array items: @@ -27640,7 +26635,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: wwn__n schema: type: array items: @@ -27648,7 +26643,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: wwn__nic schema: type: array items: @@ -27656,7 +26651,7 @@ paths: explode: true style: form - in: query - name: name__n + name: wwn__nie schema: type: array items: @@ -27664,7 +26659,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: wwn__niew schema: type: array items: @@ -27672,15 +26667,266 @@ paths: explode: true style: form - in: query - name: name__nie + name: wwn__nisw schema: type: array items: type: string explode: true style: form + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInterfaceList' + description: '' + post: + operationId: dcim_interfaces_create + description: Post a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + put: + operationId: dcim_interfaces_bulk_update + description: Put a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Interface' + description: '' + patch: + operationId: dcim_interfaces_bulk_partial_update + description: Patch a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Interface' + description: '' + delete: + operationId: dcim_interfaces_bulk_destroy + description: Delete a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interfaces/{id}/: + get: + operationId: dcim_interfaces_retrieve + description: Get a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + put: + operationId: dcim_interfaces_update + description: Put a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + patch: + operationId: dcim_interfaces_partial_update + description: Patch a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + delete: + operationId: dcim_interfaces_destroy + description: Delete a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interfaces/{id}/trace/: + get: + operationId: dcim_interfaces_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + /api/dcim/inventory-item-roles/: + get: + operationId: dcim_inventory_item_roles_list + description: Get a list of inventory item role objects. + parameters: - in: query - name: name__niew + name: color schema: type: array items: @@ -27688,47 +26934,51 @@ paths: explode: true style: form - in: query - name: name__nisw + name: color__empty + schema: + type: boolean + - in: query + name: color__ic 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: color__ie schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent_id + name: color__isw schema: type: array items: - type: integer - nullable: true - description: Parent inventory item (ID) + type: string explode: true style: form - in: query - name: parent_id__n + name: color__n schema: type: array items: - type: integer - nullable: true - description: Parent inventory item (ID) + type: string explode: true style: form - in: query - name: part_id + name: color__nic schema: type: array items: @@ -27736,11 +26986,15 @@ paths: explode: true style: form - in: query - name: part_id__empty + name: color__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: part_id__ic + name: color__niew schema: type: array items: @@ -27748,7 +27002,7 @@ paths: explode: true style: form - in: query - name: part_id__ie + name: color__nisw schema: type: array items: @@ -27756,206 +27010,291 @@ paths: explode: true style: form - in: query - name: part_id__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: q + name: created_by_request schema: type: string - description: Search + format: uuid - in: query - name: rack + name: description schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: description__ie schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: region + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: id__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: id__n schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: last_updated schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role_id + name: last_updated__empty schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: serial + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__empty + name: last_updated__lt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: serial__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__ie + 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: serial__iew + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -27963,7 +27302,11 @@ paths: explode: true style: form - in: query - name: serial__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -27971,7 +27314,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__ie schema: type: array items: @@ -27979,7 +27322,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__iew schema: type: array items: @@ -27987,7 +27330,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__isw schema: type: array items: @@ -27995,7 +27338,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__n schema: type: array items: @@ -28003,7 +27346,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__nic schema: type: array items: @@ -28011,79 +27354,92 @@ paths: explode: true style: form - in: query - name: site + name: name__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group__n + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__ie schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__iew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__isw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__n schema: type: array items: @@ -28091,7 +27447,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nic schema: type: array items: @@ -28099,46 +27455,50 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: slug__niew schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: slug__nisw schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tag schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form - in: query - name: virtual_chassis_id__n + name: tag__n schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -28149,21 +27509,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' + $ref: '#/components/schemas/PaginatedInventoryItemRoleList' description: '' post: - operationId: dcim_inventory_items_create - description: Post a list of inventory item objects. + operationId: dcim_inventory_item_roles_create + description: Post a list of inventory item role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28173,11 +27533,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_inventory_items_bulk_update - description: Put a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_update + description: Put a list of inventory item role objects. tags: - dcim requestBody: @@ -28186,12 +27546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28203,11 +27563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_inventory_items_bulk_partial_update - description: Patch a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_partial_update + description: Patch a list of inventory item role objects. tags: - dcim requestBody: @@ -28216,12 +27576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28233,11 +27593,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_inventory_items_bulk_destroy - description: Delete a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_destroy + description: Delete a list of inventory item role objects. tags: - dcim requestBody: @@ -28246,12 +27606,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28259,16 +27619,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/{id}/: + /api/dcim/inventory-item-roles/{id}/: get: - operationId: dcim_inventory_items_retrieve - description: Get a inventory item object. + operationId: dcim_inventory_item_roles_retrieve + description: Get a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28280,17 +27640,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_inventory_items_update - description: Put a inventory item object. + operationId: dcim_inventory_item_roles_update + description: Put a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28298,10 +27658,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28311,17 +27671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_inventory_items_partial_update - description: Patch a inventory item object. + operationId: dcim_inventory_item_roles_partial_update + description: Patch a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28329,10 +27689,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -28341,17 +27701,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_inventory_items_destroy - description: Delete a inventory item object. + operationId: dcim_inventory_item_roles_destroy + description: Delete a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28361,101 +27721,82 @@ paths: responses: '204': description: No response body - /api/dcim/locations/: + /api/dcim/inventory-item-templates/: get: - operationId: dcim_locations_list - description: Get a list of location objects. + operationId: dcim_inventory_item_templates_list + description: Get a list of inventory item template objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor__n + name: component_id schema: type: array items: type: integer - description: Location (slug) + format: int32 explode: true style: form - in: query - name: ancestor_id + name: component_id__empty schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: component_id__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: contact + name: component_id__gte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: component_id__lt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: component_id__lte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: component_id__n schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: component_type schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query - name: contact_role__n + name: component_type__n schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query name: created schema: @@ -28609,67 +27950,83 @@ paths: explode: true style: form - in: query - name: facility + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: facility__empty + name: device_type_id__n schema: - type: boolean + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: facility__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nie + name: label schema: type: array items: @@ -28677,7 +28034,11 @@ paths: explode: true style: form - in: query - name: facility__niew + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -28685,7 +28046,7 @@ paths: explode: true style: form - in: query - name: facility__nisw + name: label__ie schema: type: array items: @@ -28693,61 +28054,59 @@ paths: explode: true style: form - in: query - name: id + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: label__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -28820,7 +28179,45 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: manufacturer + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer__n + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer_id + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request schema: type: string format: uuid @@ -28920,24 +28317,6 @@ 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 location (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent location (slug) - explode: true - style: form - in: query name: parent_id schema: @@ -28945,7 +28324,7 @@ paths: items: type: integer nullable: true - description: Parent location (ID) + description: Parent inventory item (ID) explode: true style: form - in: query @@ -28955,124 +28334,11 @@ paths: items: type: integer nullable: true - description: Parent location (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) + description: Parent inventory item (ID) explode: true style: form - in: query - name: slug + name: part_id schema: type: array items: @@ -29080,35 +28346,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: part_id__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw + name: part_id__ic schema: type: array items: @@ -29116,7 +28358,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: part_id__ie schema: type: array items: @@ -29124,7 +28366,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: part_id__iew schema: type: array items: @@ -29132,7 +28374,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: part_id__isw schema: type: array items: @@ -29140,7 +28382,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: part_id__n schema: type: array items: @@ -29148,7 +28390,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: part_id__nic schema: type: array items: @@ -29156,25 +28398,23 @@ paths: explode: true style: form - in: query - name: status + name: part_id__nie schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: status__n + name: part_id__niew schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tag + name: part_id__nisw schema: type: array items: @@ -29182,85 +28422,46 @@ paths: explode: true style: form - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tenant + name: role schema: type: array items: type: string - description: Tenant (slug) + description: Role (slug) explode: true style: form - in: query - name: tenant__n + name: role__n schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) + description: Role (slug) explode: true style: form - in: query - name: tenant_id + name: role_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Role (ID) explode: true style: form - in: query - name: tenant_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Role (ID) explode: true style: form - in: query @@ -29278,21 +28479,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedLocationList' + $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' description: '' post: - operationId: dcim_locations_create - description: Post a list of location objects. + operationId: dcim_inventory_item_templates_create + description: Post a list of inventory item template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29302,11 +28503,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_locations_bulk_update - description: Put a list of location objects. + operationId: dcim_inventory_item_templates_bulk_update + description: Put a list of inventory item template objects. tags: - dcim requestBody: @@ -29315,12 +28516,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29332,11 +28533,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_locations_bulk_partial_update - description: Patch a list of location objects. + operationId: dcim_inventory_item_templates_bulk_partial_update + description: Patch a list of inventory item template objects. tags: - dcim requestBody: @@ -29345,12 +28546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29362,11 +28563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_locations_bulk_destroy - description: Delete a list of location objects. + operationId: dcim_inventory_item_templates_bulk_destroy + description: Delete a list of inventory item template objects. tags: - dcim requestBody: @@ -29375,12 +28576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29388,16 +28589,16 @@ paths: responses: '204': description: No response body - /api/dcim/locations/{id}/: + /api/dcim/inventory-item-templates/{id}/: get: - operationId: dcim_locations_retrieve - description: Get a location object. + operationId: dcim_inventory_item_templates_retrieve + description: Get a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29409,17 +28610,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_locations_update - description: Put a location object. + operationId: dcim_inventory_item_templates_update + description: Put a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29427,10 +28628,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29440,17 +28641,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_locations_partial_update - description: Patch a location object. + operationId: dcim_inventory_item_templates_partial_update + description: Patch a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29458,10 +28659,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -29470,17 +28671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_locations_destroy - description: Delete a location object. + operationId: dcim_inventory_item_templates_destroy + description: Delete a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29490,65 +28691,166 @@ paths: responses: '204': description: No response body - /api/dcim/manufacturers/: + /api/dcim/inventory-items/: get: - operationId: dcim_manufacturers_list - description: Get a list of manufacturer objects. + operationId: dcim_inventory_items_list + description: Get a list of inventory item objects. parameters: - in: query - name: contact + name: asset_tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: component_id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: component_id__empty schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: component_id__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: component_id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: component_id__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: component_id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 + explode: true + style: form + - in: query + name: component_id__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string - in: query name: created schema: @@ -29702,191 +29004,197 @@ paths: explode: true style: form - in: query - name: id + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: id__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__lte + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__n + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: last_updated + name: device_role_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gt + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gte + name: device_type schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lt + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lte + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__n + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: discovered schema: - type: string - format: uuid + type: boolean - in: query - name: name + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: id__empty schema: type: boolean - in: query - name: name__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: label schema: type: array items: @@ -29894,7 +29202,11 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -29902,7 +29214,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__ie schema: type: array items: @@ -29910,32 +29222,15 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__iew schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: label__isw schema: type: array items: @@ -29943,11 +29238,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: label__n schema: type: array items: @@ -29955,7 +29246,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: label__nic schema: type: array items: @@ -29963,7 +29254,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: label__nie schema: type: array items: @@ -29971,7 +29262,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: label__niew schema: type: array items: @@ -29979,7 +29270,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: label__nisw schema: type: array items: @@ -29987,355 +29278,155 @@ paths: explode: true style: form - in: query - name: slug__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedManufacturerList' - description: '' - post: - operationId: dcim_manufacturers_create - description: Post a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_bulk_update - description: Put a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_bulk_partial_update - description: Patch a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_bulk_destroy - description: Delete a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/manufacturers/{id}/: - get: - operationId: dcim_manufacturers_retrieve - description: Get a manufacturer object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_update - description: Put a manufacturer object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_partial_update - description: Patch a manufacturer object. - parameters: - - in: path - name: id + name: last_updated__n schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_destroy - description: Delete a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. schema: type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/module-bay-templates/: - get: - operationId: dcim_module_bay_templates_list - description: Get a list of module bay template objects. - parameters: - in: query - name: created + name: location schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__empty + name: location__n schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__gt + name: location_id schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__gte + name: location_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__lt + name: manufacturer schema: type: array items: type: string - format: date-time + description: Manufacturer (slug) explode: true style: form - in: query - name: created__lte + name: manufacturer__n schema: type: array items: type: string - format: date-time + description: Manufacturer (slug) explode: true style: form - in: query - name: created__n + name: manufacturer_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query - name: created_by_request + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -30343,11 +29434,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -30355,7 +29446,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -30363,7 +29454,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -30371,7 +29462,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -30379,7 +29470,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -30387,7 +29478,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -30395,7 +29486,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -30403,7 +29494,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -30411,109 +29502,115 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device_type_id + name: parent_id schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: device_type_id__n + name: parent_id__n schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: devicetype_id + name: part_id schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id__n + name: part_id__empty + schema: + type: boolean + - in: query + name: part_id__ic schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: part_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: part_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: part_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: part_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: part_id__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: part_id__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: part_id__niew schema: type: array items: @@ -30521,11 +29618,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: part_id__nisw schema: type: array items: @@ -30533,39 +29626,48 @@ paths: explode: true style: form - in: query - name: label__ie + 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: label__iew + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: label__isw + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: label__n + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: label__nic + name: region schema: type: array items: @@ -30573,7 +29675,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: region__n schema: type: array items: @@ -30581,7 +29683,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: region_id schema: type: array items: @@ -30589,7 +29691,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: region_id__n schema: type: array items: @@ -30597,81 +29699,73 @@ paths: explode: true style: form - in: query - name: last_updated + name: role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__empty + name: role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__gt + name: role_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__gte + name: role_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__lt + name: serial schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: serial__ie schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: serial__iew schema: type: array items: @@ -30679,11 +29773,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: serial__isw schema: type: array items: @@ -30691,7 +29781,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__n schema: type: array items: @@ -30699,7 +29789,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__nic schema: type: array items: @@ -30707,7 +29797,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: serial__nie schema: type: array items: @@ -30715,7 +29805,7 @@ paths: explode: true style: form - in: query - name: name__n + name: serial__niew schema: type: array items: @@ -30723,7 +29813,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: serial__nisw schema: type: array items: @@ -30731,43 +29821,33 @@ paths: explode: true style: form - in: query - name: name__nie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__niew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__nisw + name: site_group 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: position + name: site_group__n schema: type: array items: @@ -30775,11 +29855,7 @@ paths: explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: site_group_id schema: type: array items: @@ -30787,7 +29863,7 @@ paths: explode: true style: form - in: query - name: position__ie + name: site_group_id__n schema: type: array items: @@ -30795,23 +29871,25 @@ paths: explode: true style: form - in: query - name: position__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: position__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: position__n + name: tag schema: type: array items: @@ -30819,7 +29897,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: tag__n schema: type: array items: @@ -30827,39 +29905,46 @@ paths: explode: true style: form - in: query - name: position__nie + 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: position__niew + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: position__nisw + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request + name: virtual_chassis_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -30870,21 +29955,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayTemplateList' + $ref: '#/components/schemas/PaginatedInventoryItemList' description: '' post: - operationId: dcim_module_bay_templates_create - description: Post a list of module bay template objects. + operationId: dcim_inventory_items_create + description: Post a list of inventory item objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30894,11 +29979,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_module_bay_templates_bulk_update - description: Put a list of module bay template objects. + operationId: dcim_inventory_items_bulk_update + description: Put a list of inventory item objects. tags: - dcim requestBody: @@ -30907,12 +29992,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30924,11 +30009,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_module_bay_templates_bulk_partial_update - description: Patch a list of module bay template objects. + operationId: dcim_inventory_items_bulk_partial_update + description: Patch a list of inventory item objects. tags: - dcim requestBody: @@ -30937,12 +30022,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30954,11 +30039,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_module_bay_templates_bulk_destroy - description: Delete a list of module bay template objects. + operationId: dcim_inventory_items_bulk_destroy + description: Delete a list of inventory item objects. tags: - dcim requestBody: @@ -30967,12 +30052,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30980,16 +30065,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/{id}/: + /api/dcim/inventory-items/{id}/: get: - operationId: dcim_module_bay_templates_retrieve - description: Get a module bay template object. + operationId: dcim_inventory_items_retrieve + description: Get a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31001,17 +30086,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_module_bay_templates_update - description: Put a module bay template object. + operationId: dcim_inventory_items_update + description: Put a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31019,10 +30104,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -31032,17 +30117,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_module_bay_templates_partial_update - description: Patch a module bay template object. + operationId: dcim_inventory_items_partial_update + description: Patch a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31050,10 +30135,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -31062,17 +30147,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_module_bay_templates_destroy - description: Delete a module bay template object. + operationId: dcim_inventory_items_destroy + description: Delete a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31082,11 +30167,95 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/: + /api/dcim/locations/: get: - operationId: dcim_module_bays_list - description: Get a list of module bay objects. + operationId: dcim_locations_list + description: Get a list of location 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: 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: @@ -31240,103 +30409,91 @@ paths: explode: true style: form - in: query - name: device + name: facility schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: facility__ie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: facility__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: facility__isw schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: facility__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: facility__nic schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility__nie schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: facility__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: facility__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: id schema: type: array items: @@ -31345,16 +30502,11 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: id__lte + name: id__gt schema: type: array items: @@ -31363,7 +30515,7 @@ paths: explode: true style: form - in: query - name: id__n + name: id__gte schema: type: array items: @@ -31372,105 +30524,30 @@ paths: explode: true style: form - in: query - name: installed_module_id + name: id__lt schema: type: array items: type: integer - description: Installed module (ID) + format: int32 explode: true style: form - in: query - name: installed_module_id__n + name: id__lte schema: type: array items: type: integer - description: Installed module (ID) - 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 + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -31542,42 +30619,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - in: query name: modified_by_request schema: @@ -31680,43 +30721,50 @@ paths: schema: type: string - in: query - name: position + name: parent schema: type: array items: type: string + description: Parent location (slug) explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: parent__n schema: type: array items: type: string + description: Parent location (slug) explode: true style: form - in: query - name: position__ie + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent location (ID) explode: true style: form - in: query - name: position__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent location (ID) explode: true style: form - in: query - name: position__isw + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -31724,7 +30772,7 @@ paths: explode: true style: form - in: query - name: position__n + name: region__n schema: type: array items: @@ -31732,7 +30780,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: region_id schema: type: array items: @@ -31740,7 +30788,7 @@ paths: explode: true style: form - in: query - name: position__nie + name: region_id__n schema: type: array items: @@ -31748,216 +30796,211 @@ paths: explode: true style: form - in: query - name: position__niew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: position__nisw + name: site__n schema: type: array items: type: string + description: Site (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: rack + name: site_group__n schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: site_group_id schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: site_group_id__n schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: site_id schema: type: array items: type: integer - description: Rack (ID) + description: Site (ID) explode: true style: form - in: query - name: region + name: site_id__n schema: type: array items: type: integer - description: Region (slug) + description: Site (ID) explode: true style: form - in: query - name: region__n + name: slug schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: slug__ie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: slug__iew schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: slug__isw schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: slug__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: slug__nic schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: slug__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: slug__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: status schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_group_id + name: status__n schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_group_id__n + name: tag schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: tag__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: tenant schema: type: array items: - type: integer - description: Site (ID) + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag__n + name: tenant_group schema: type: array items: @@ -31965,46 +31008,54 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tenant_group__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: tenant_group_id schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: tenant_group_id__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tenant_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -32015,21 +31066,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayList' + $ref: '#/components/schemas/PaginatedLocationList' description: '' post: - operationId: dcim_module_bays_create - description: Post a list of module bay objects. + operationId: dcim_locations_create + description: Post a list of location objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -32039,11 +31090,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_module_bays_bulk_update - description: Put a list of module bay objects. + operationId: dcim_locations_bulk_update + description: Put a list of location objects. tags: - dcim requestBody: @@ -32052,12 +31103,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32069,11 +31120,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_module_bays_bulk_partial_update - description: Patch a list of module bay objects. + operationId: dcim_locations_bulk_partial_update + description: Patch a list of location objects. tags: - dcim requestBody: @@ -32082,12 +31133,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32099,11 +31150,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_module_bays_bulk_destroy - description: Delete a list of module bay objects. + operationId: dcim_locations_bulk_destroy + description: Delete a list of location objects. tags: - dcim requestBody: @@ -32112,12 +31163,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32125,16 +31176,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/{id}/: + /api/dcim/locations/{id}/: get: - operationId: dcim_module_bays_retrieve - description: Get a module bay object. + operationId: dcim_locations_retrieve + description: Get a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32146,17 +31197,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_module_bays_update - description: Put a module bay object. + operationId: dcim_locations_update + description: Put a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32164,10 +31215,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -32177,17 +31228,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_module_bays_partial_update - description: Patch a module bay object. + operationId: dcim_locations_partial_update + description: Patch a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32195,10 +31246,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32207,17 +31258,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_module_bays_destroy - description: Delete a module bay object. + operationId: dcim_locations_destroy + description: Delete a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32227,21 +31278,63 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/: + /api/dcim/manufacturers/: get: - operationId: dcim_module_types_list - description: Get a list of module type objects. + operationId: dcim_manufacturers_list + description: Get a list of manufacturer objects. parameters: - in: query - name: console_ports + name: contact schema: - type: boolean - description: Has console ports + type: array + items: + type: integer + description: Contact + explode: true + style: form - in: query - name: console_server_ports + name: contact__n schema: - type: boolean - description: Has console server ports + 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: @@ -32452,11 +31545,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - in: query name: last_updated schema: @@ -32527,43 +31615,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: @@ -32571,11 +31628,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -32583,7 +31640,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -32591,7 +31648,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -32599,7 +31656,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -32607,7 +31664,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -32615,7 +31672,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -32623,7 +31680,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -32631,7 +31688,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -32639,18 +31696,13 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - name: offset required: false in: query @@ -32664,7 +31716,12 @@ paths: schema: type: string - in: query - name: part_number + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -32672,11 +31729,11 @@ paths: explode: true style: form - in: query - name: part_number__empty + name: slug__empty schema: type: boolean - in: query - name: part_number__ic + name: slug__ic schema: type: array items: @@ -32684,7 +31741,7 @@ paths: explode: true style: form - in: query - name: part_number__ie + name: slug__ie schema: type: array items: @@ -32692,7 +31749,7 @@ paths: explode: true style: form - in: query - name: part_number__iew + name: slug__iew schema: type: array items: @@ -32700,7 +31757,7 @@ paths: explode: true style: form - in: query - name: part_number__isw + name: slug__isw schema: type: array items: @@ -32708,7 +31765,7 @@ paths: explode: true style: form - in: query - name: part_number__n + name: slug__n schema: type: array items: @@ -32716,7 +31773,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: slug__nic schema: type: array items: @@ -32724,7 +31781,7 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: slug__nie schema: type: array items: @@ -32732,7 +31789,7 @@ paths: explode: true style: form - in: query - name: part_number__niew + name: slug__niew schema: type: array items: @@ -32740,33 +31797,13 @@ paths: explode: true style: form - in: query - name: part_number__nisw + name: slug__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: - type: string - description: Search - in: query name: tag schema: @@ -32788,98 +31825,6 @@ paths: schema: type: string format: uuid - - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' tags: - dcim security: @@ -32890,21 +31835,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleTypeList' + $ref: '#/components/schemas/PaginatedManufacturerList' description: '' post: - operationId: dcim_module_types_create - description: Post a list of module type objects. + operationId: dcim_manufacturers_create + description: Post a list of manufacturer objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32914,11 +31859,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_module_types_bulk_update - description: Put a list of module type objects. + operationId: dcim_manufacturers_bulk_update + description: Put a list of manufacturer objects. tags: - dcim requestBody: @@ -32927,12 +31872,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32944,11 +31889,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_module_types_bulk_partial_update - description: Patch a list of module type objects. + operationId: dcim_manufacturers_bulk_partial_update + description: Patch a list of manufacturer objects. tags: - dcim requestBody: @@ -32957,12 +31902,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32974,11 +31919,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_module_types_bulk_destroy - description: Delete a list of module type objects. + operationId: dcim_manufacturers_bulk_destroy + description: Delete a list of manufacturer objects. tags: - dcim requestBody: @@ -32987,12 +31932,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -33000,16 +31945,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/{id}/: + /api/dcim/manufacturers/{id}/: get: - operationId: dcim_module_types_retrieve - description: Get a module type object. + operationId: dcim_manufacturers_retrieve + description: Get a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33021,17 +31966,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_module_types_update - description: Put a module type object. + operationId: dcim_manufacturers_update + description: Put a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33039,10 +31984,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -33052,17 +31997,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_module_types_partial_update - description: Patch a module type object. + operationId: dcim_manufacturers_partial_update + description: Patch a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33070,10 +32015,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33082,17 +32027,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_module_types_destroy - description: Delete a module type object. + operationId: dcim_manufacturers_destroy + description: Delete a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33102,73 +32047,81 @@ paths: responses: '204': description: No response body - /api/dcim/modules/: + /api/dcim/module-bay-templates/: get: - operationId: dcim_modules_list - description: Get a list of module objects. + operationId: dcim_module_bay_templates_list + description: Get a list of module bay template objects. parameters: - in: query - name: asset_tag + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -33176,7 +32129,11 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -33184,7 +32141,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: description__ie schema: type: array items: @@ -33192,143 +32149,141 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__ie + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: label schema: type: array items: @@ -33336,7 +32291,11 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -33344,79 +32303,67 @@ paths: explode: true style: form - in: query - name: device_id + name: label__ie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: label__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -33489,119 +32436,92 @@ paths: schema: type: integer - in: query - name: manufacturer + name: modified_by_request schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: manufacturer__n + name: module_type_id schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: manufacturer_id + name: module_type_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: name schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: modified_by_request + name: name__empty schema: - type: string - format: uuid + type: boolean - in: query - name: module_bay_id + name: name__ic schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_bay_id__n + name: name__ie schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_type + name: name__iew schema: type: array items: type: string - description: Module type (model) explode: true style: form - in: query - name: module_type__n + name: name__isw schema: type: array items: type: string - description: Module type (model) explode: true style: form - in: query - name: module_type_id + name: name__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: name__nic schema: type: array items: - type: integer - description: Module type (ID) + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: serial + name: name__nie schema: type: array items: @@ -33609,11 +32529,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: name__niew schema: type: array items: @@ -33621,15 +32537,27 @@ paths: explode: true style: form - in: query - name: serial__ie + 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: serial__iew + name: position schema: type: array items: @@ -33637,15 +32565,11 @@ paths: explode: true style: form - in: query - name: serial__isw + name: position__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__n + name: position__ic schema: type: array items: @@ -33653,7 +32577,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: position__ie schema: type: array items: @@ -33661,7 +32585,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: position__iew schema: type: array items: @@ -33669,7 +32593,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: position__isw schema: type: array items: @@ -33677,7 +32601,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: position__n schema: type: array items: @@ -33685,25 +32609,23 @@ paths: explode: true style: form - in: query - name: status + name: position__nic schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: status__n + name: position__nie schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tag + name: position__niew schema: type: array items: @@ -33711,13 +32633,18 @@ paths: explode: true style: form - in: query - name: tag__n + name: position__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: q + schema: + type: string + description: Search - in: query name: updated_by_request schema: @@ -33733,21 +32660,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleList' + $ref: '#/components/schemas/PaginatedModuleBayTemplateList' description: '' post: - operationId: dcim_modules_create - description: Post a list of module objects. + operationId: dcim_module_bay_templates_create + description: Post a list of module bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33757,11 +32684,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_modules_bulk_update - description: Put a list of module objects. + operationId: dcim_module_bay_templates_bulk_update + description: Put a list of module bay template objects. tags: - dcim requestBody: @@ -33770,12 +32697,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33787,11 +32714,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_modules_bulk_partial_update - description: Patch a list of module objects. + operationId: dcim_module_bay_templates_bulk_partial_update + description: Patch a list of module bay template objects. tags: - dcim requestBody: @@ -33800,12 +32727,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33817,11 +32744,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_modules_bulk_destroy - description: Delete a list of module objects. + operationId: dcim_module_bay_templates_bulk_destroy + description: Delete a list of module bay template objects. tags: - dcim requestBody: @@ -33830,12 +32757,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33843,16 +32770,16 @@ paths: responses: '204': description: No response body - /api/dcim/modules/{id}/: + /api/dcim/module-bay-templates/{id}/: get: - operationId: dcim_modules_retrieve - description: Get a module object. + operationId: dcim_module_bay_templates_retrieve + description: Get a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33864,17 +32791,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_modules_update - description: Put a module object. + operationId: dcim_module_bay_templates_update + description: Put a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33882,10 +32809,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33895,17 +32822,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_modules_partial_update - description: Patch a module object. + operationId: dcim_module_bay_templates_partial_update + description: Patch a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33913,10 +32840,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33925,17 +32852,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_modules_destroy - description: Delete a module object. + operationId: dcim_module_bay_templates_destroy + description: Delete a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33945,35 +32872,11 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/: + /api/dcim/module-bays/: get: - operationId: dcim_platforms_list - description: Get a list of platform objects. + operationId: dcim_module_bays_list + description: Get a list of module bay objects. parameters: - - in: query - name: available_for_device_type - schema: - type: string - - in: query - name: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - in: query name: created schema: @@ -34126,6 +33029,134 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -34184,6 +33215,108 @@ paths: format: int32 explode: true style: form + - in: query + name: installed_module_id + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: installed_module_id__n + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: label + schema: + 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: @@ -34254,39 +33387,39 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query @@ -34294,6 +33427,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -34390,25 +33543,153 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: position + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__empty + schema: + type: boolean + - in: query + name: position__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: slug + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: slug__empty + name: rack__n schema: - type: boolean + type: array + items: + type: string + description: Rack (name) + explode: true + style: form - in: query - name: slug__ic + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region schema: type: array items: @@ -34416,7 +33697,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -34424,7 +33705,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -34432,7 +33713,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -34440,23 +33721,25 @@ paths: explode: true style: form - in: query - name: slug__n + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nic + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nie + name: site_group schema: type: array items: @@ -34464,7 +33747,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_group__n schema: type: array items: @@ -34472,13 +33755,39 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: site_group_id schema: type: array items: type: string explode: true style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query name: tag schema: @@ -34500,6 +33809,42 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -34510,21 +33855,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPlatformList' + $ref: '#/components/schemas/PaginatedModuleBayList' description: '' post: - operationId: dcim_platforms_create - description: Post a list of platform objects. + operationId: dcim_module_bays_create + description: Post a list of module bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34534,11 +33879,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_platforms_bulk_update - description: Put a list of platform objects. + operationId: dcim_module_bays_bulk_update + description: Put a list of module bay objects. tags: - dcim requestBody: @@ -34547,12 +33892,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34564,11 +33909,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_platforms_bulk_partial_update - description: Patch a list of platform objects. + operationId: dcim_module_bays_bulk_partial_update + description: Patch a list of module bay objects. tags: - dcim requestBody: @@ -34577,12 +33922,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34594,11 +33939,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_platforms_bulk_destroy - description: Delete a list of platform objects. + operationId: dcim_module_bays_bulk_destroy + description: Delete a list of module bay objects. tags: - dcim requestBody: @@ -34607,12 +33952,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34620,16 +33965,16 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/{id}/: + /api/dcim/module-bays/{id}/: get: - operationId: dcim_platforms_retrieve - description: Get a platform object. + operationId: dcim_module_bays_retrieve + description: Get a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34641,17 +33986,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_platforms_update - description: Put a platform object. + operationId: dcim_module_bays_update + description: Put a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34659,10 +34004,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34672,17 +34017,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_platforms_partial_update - description: Patch a platform object. + operationId: dcim_module_bays_partial_update + description: Patch a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34690,10 +34035,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34702,17 +34047,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_platforms_destroy - description: Delete a platform object. + operationId: dcim_module_bays_destroy + description: Delete a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34722,177 +34067,67 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/: + /api/dcim/module-types/: get: - operationId: dcim_power_feeds_list - description: Get a list of power feed objects. + operationId: dcim_module_types_list + description: Get a list of module type 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: airflow schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: f6e5562e0e98d69d enum: - - A - - B - description: '* `A` - A + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `B` - B' + * `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: cable_end__n + name: airflow__n schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: f6e5562e0e98d69d enum: - - A - - B - description: '* `A` - A + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `B` - B' - - in: query - name: cable_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 + * `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: cabled + name: console_ports schema: type: boolean + description: Has console ports - in: query - name: connected + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query name: created schema: @@ -35103,6 +34338,11 @@ paths: format: int32 explode: true style: form + - in: query + name: interfaces + schema: + type: boolean + description: Has interfaces - in: query name: last_updated schema: @@ -35173,74 +34413,43 @@ 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 - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: model schema: type: array items: @@ -35248,11 +34457,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -35260,7 +34469,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -35268,7 +34477,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -35276,7 +34485,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -35284,7 +34493,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -35292,7 +34501,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -35300,7 +34509,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -35308,7 +34517,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -35316,7 +34525,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__nisw schema: type: array items: @@ -35324,9 +34533,10 @@ paths: explode: true style: form - in: query - name: occupied + name: modified_by_request schema: - type: boolean + type: string + format: uuid - name: offset required: false in: query @@ -35340,391 +34550,222 @@ paths: schema: type: string - in: query - name: phase - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: phase__n - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: power_panel_id - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - - in: query - name: power_panel_id__n + name: part_number schema: type: array items: - type: integer - description: Power panel (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: part_number__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: rack_id__n + name: part_number__ic schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: part_number__ie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: part_number__iew schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: part_number__isw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: part_number__n schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: part_number__nic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: part_number__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: part_number__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: part_number__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: pass_through_ports schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: boolean + description: Has pass-through ports - in: query - name: site_group_id__n + name: power_outlets schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: boolean + description: Has power outlets - in: query - name: site_id + name: power_ports schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: site_id__n + name: q schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: string + description: Search - in: query - name: status + name: tag schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status__n + name: tag__n 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: supply__n + name: updated_by_request schema: type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' + format: uuid - in: query - name: tag + name: weight schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tenant + name: weight__gte schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant__n + name: weight__lt schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: weight__lte schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group__n + name: weight__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type + name: weight_unit schema: type: string - x-spec-enum-id: 093a164236819eb8 + x-spec-enum-id: 7c1876f422815884 enum: - - primary - - redundant - description: '* `primary` - Primary + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms - * `redundant` - Redundant' + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: type__n + name: weight_unit__n schema: type: string - x-spec-enum-id: 093a164236819eb8 + x-spec-enum-id: 7c1876f422815884 enum: - - primary - - redundant - description: '* `primary` - Primary + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms - * `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 + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -35735,21 +34776,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' + $ref: '#/components/schemas/PaginatedModuleTypeList' description: '' post: - operationId: dcim_power_feeds_create - description: Post a list of power feed objects. + operationId: dcim_module_types_create + description: Post a list of module type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35759,11 +34800,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_feeds_bulk_update - description: Put a list of power feed objects. + operationId: dcim_module_types_bulk_update + description: Put a list of module type objects. tags: - dcim requestBody: @@ -35772,12 +34813,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35789,11 +34830,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Patch a list of power feed objects. + operationId: dcim_module_types_bulk_partial_update + description: Patch a list of module type objects. tags: - dcim requestBody: @@ -35802,12 +34843,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35819,11 +34860,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_feeds_bulk_destroy - description: Delete a list of power feed objects. + operationId: dcim_module_types_bulk_destroy + description: Delete a list of module type objects. tags: - dcim requestBody: @@ -35832,12 +34873,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35845,16 +34886,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/: + /api/dcim/module-types/{id}/: get: - operationId: dcim_power_feeds_retrieve - description: Get a power feed object. + operationId: dcim_module_types_retrieve + description: Get a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35866,17 +34907,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_feeds_update - description: Put a power feed object. + operationId: dcim_module_types_update + description: Put a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35884,10 +34925,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35897,17 +34938,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_feeds_partial_update - description: Patch a power feed object. + operationId: dcim_module_types_partial_update + description: Patch a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35915,10 +34956,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -35927,17 +34968,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_feeds_destroy - description: Delete a power feed object. + operationId: dcim_module_types_destroy + description: Delete a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35947,35 +34988,95 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/trace/: + /api/dcim/modules/: 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_modules_list + description: Get a list of module objects. parameters: - - in: path - name: id + - in: query + name: asset_tag schema: - type: integer - description: A unique integer value identifying this power 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: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -36129,63 +35230,21 @@ paths: explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: devicetype_id__n + name: device_id__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: feed_leg - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - - in: query - name: feed_leg__n - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + description: Device (ID) explode: true style: form - in: query @@ -36247,205 +35306,206 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__niew + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__nisw + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated + name: manufacturer_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated__empty + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_bay_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: module_bay_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: module_type schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lt + name: module_type__n schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lte + name: module_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - in: query - name: last_updated__n + name: module_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - in: query - name: modified_by_request + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: module_type_id + name: q schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: string + description: Search - in: query - name: module_type_id__n + name: serial schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: serial__empty schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: boolean - in: query - name: moduletype_id__n + name: serial__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: serial__ie schema: type: array items: @@ -36453,11 +35513,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: serial__iew schema: type: array items: @@ -36465,7 +35521,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__isw schema: type: array items: @@ -36473,7 +35529,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__n schema: type: array items: @@ -36481,7 +35537,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: serial__nic schema: type: array items: @@ -36489,7 +35545,7 @@ paths: explode: true style: form - in: query - name: name__n + name: serial__nie schema: type: array items: @@ -36497,7 +35553,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: serial__niew schema: type: array items: @@ -36505,7 +35561,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: serial__nisw schema: type: array items: @@ -36513,222 +35569,39 @@ paths: explode: true style: form - in: query - name: name__niew + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__nisw + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: power_port_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - in: query - name: power_port_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -36744,21 +35617,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + $ref: '#/components/schemas/PaginatedModuleList' description: '' post: - operationId: dcim_power_outlet_templates_create - description: Post a list of power outlet template objects. + operationId: dcim_modules_create + description: Post a list of module objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -36768,11 +35641,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_outlet_templates_bulk_update - description: Put a list of power outlet template objects. + operationId: dcim_modules_bulk_update + description: Put a list of module objects. tags: - dcim requestBody: @@ -36781,12 +35654,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36798,11 +35671,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: Patch a list of power outlet template objects. + operationId: dcim_modules_bulk_partial_update + description: Patch a list of module objects. tags: - dcim requestBody: @@ -36811,12 +35684,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36828,11 +35701,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: Delete a list of power outlet template objects. + operationId: dcim_modules_bulk_destroy + description: Delete a list of module objects. tags: - dcim requestBody: @@ -36841,12 +35714,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36854,16 +35727,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlet-templates/{id}/: + /api/dcim/modules/{id}/: get: - operationId: dcim_power_outlet_templates_retrieve - description: Get a power outlet template 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 power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36875,17 +35748,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_outlet_templates_update - description: Put a power outlet template 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 power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36893,10 +35766,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -36906,17 +35779,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_outlet_templates_partial_update - description: Patch a power outlet template 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 power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36924,10 +35797,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -36936,17 +35809,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_outlet_templates_destroy - description: Delete a power outlet template 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 power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36956,61 +35829,35 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/: + /api/dcim/platforms/: get: - operationId: dcim_power_outlets_list - description: Get a list of power outlet objects. + operationId: dcim_platforms_list + description: Get a list of platform objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + name: available_for_device_type schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - 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: @@ -37164,159 +36011,175 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device_id + name: id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__lt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: id__lte schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: id__n schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: last_updated schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_type_id__n + name: last_updated__empty schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: feed_leg + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: feed_leg__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: id + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: last_updated__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: id__gte + name: manufacturer schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lt + name: manufacturer__n schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lte + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__n + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) 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: @@ -37324,11 +36187,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: name__empty schema: type: boolean - in: query - name: label__ic + name: name__ic schema: type: array items: @@ -37336,7 +36199,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__ie schema: type: array items: @@ -37344,7 +36207,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__iew schema: type: array items: @@ -37352,7 +36215,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: name__isw schema: type: array items: @@ -37360,7 +36223,7 @@ paths: explode: true style: form - in: query - name: label__n + name: name__n schema: type: array items: @@ -37368,7 +36231,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: name__nic schema: type: array items: @@ -37376,7 +36239,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: name__nie schema: type: array items: @@ -37384,7 +36247,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__niew schema: type: array items: @@ -37392,450 +36255,112 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: last_updated + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: slug__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: slug__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: slug__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: slug__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: slug__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: slug__nie schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location__n + name: slug__niew schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: power_port_id - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: power_port_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n + name: slug__nisw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) explode: true style: form - in: query @@ -37854,67 +36379,11 @@ paths: type: string explode: true style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -37925,21 +36394,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' + $ref: '#/components/schemas/PaginatedPlatformList' description: '' post: - operationId: dcim_power_outlets_create - description: Post a list of power outlet objects. + operationId: dcim_platforms_create + description: Post a list of platform objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -37949,11 +36418,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_outlets_bulk_update - description: Put a list of power outlet objects. + operationId: dcim_platforms_bulk_update + description: Put a list of platform objects. tags: - dcim requestBody: @@ -37962,12 +36431,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -37979,11 +36448,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_outlets_bulk_partial_update - description: Patch a list of power outlet objects. + operationId: dcim_platforms_bulk_partial_update + description: Patch a list of platform objects. tags: - dcim requestBody: @@ -37992,12 +36461,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38009,11 +36478,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_outlets_bulk_destroy - description: Delete a list of power outlet objects. + operationId: dcim_platforms_bulk_destroy + description: Delete a list of platform objects. tags: - dcim requestBody: @@ -38022,12 +36491,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38035,16 +36504,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/: + /api/dcim/platforms/{id}/: get: - operationId: dcim_power_outlets_retrieve - description: Get a power outlet 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 outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38056,17 +36525,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_outlets_update - description: Put a power outlet 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 outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38074,10 +36543,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38087,17 +36556,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_outlets_partial_update - description: Patch a power outlet 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 outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38105,10 +36574,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38117,17 +36586,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_outlets_destroy - description: Delete a power outlet 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 outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38137,89 +36606,177 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/trace/: + /api/dcim/power-feeds/: get: - operationId: dcim_power_outlets_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + 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 outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - /api/dcim/power-panels/: - get: - operationId: dcim_power_panels_list - description: Get a list of power panel objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: contact + name: amperage__empty + schema: + type: boolean + - in: query + name: amperage__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: amperage__gte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: amperage__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: amperage__lte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: amperage__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: available_power schema: type: array items: type: integer - description: Contact Role + format: int32 + explode: true + style: form + - in: query + name: available_power__empty + schema: + type: boolean + - in: query + name: available_power__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -38500,21 +37057,65 @@ paths: schema: type: integer - in: query - name: location_id + name: mark_connected + schema: + type: boolean + - in: query + name: max_utilization schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: max_utilization__empty + schema: + type: boolean + - in: query + name: max_utilization__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 + explode: true + style: form + - in: query + name: max_utilization__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -38606,6 +37207,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -38618,27 +37223,83 @@ 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: phase__n + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: power_panel_id + schema: + 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: region + name: rack_id schema: type: array items: type: integer - description: Region (slug) + description: Rack (ID) explode: true style: form - in: query - name: region__n + name: rack_id__n schema: type: array items: type: integer - description: Region (slug) + 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 @@ -38646,8 +37307,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -38655,8 +37315,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -38682,8 +37341,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -38691,8 +37349,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -38700,8 +37357,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -38709,8 +37365,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -38731,6 +37386,46 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + explode: true + style: form + - in: query + name: status__n + 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: supply__n + schema: + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' - in: query name: tag schema: @@ -38747,11 +37442,161 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' - in: query name: updated_by_request schema: 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: @@ -38762,21 +37607,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' + $ref: '#/components/schemas/PaginatedPowerFeedList' description: '' post: - operationId: dcim_power_panels_create - description: Post a list of power panel objects. + operationId: dcim_power_feeds_create + description: Post a list of power feed objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -38786,11 +37631,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_power_panels_bulk_update - description: Put a list of power panel objects. + operationId: dcim_power_feeds_bulk_update + description: Put a list of power feed objects. tags: - dcim requestBody: @@ -38799,12 +37644,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38816,11 +37661,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_power_panels_bulk_partial_update - description: Patch a list of power panel objects. + operationId: dcim_power_feeds_bulk_partial_update + description: Patch a list of power feed objects. tags: - dcim requestBody: @@ -38829,12 +37674,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38846,11 +37691,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_power_panels_bulk_destroy - description: Delete a list of power panel objects. + operationId: dcim_power_feeds_bulk_destroy + description: Delete a list of power feed objects. tags: - dcim requestBody: @@ -38859,12 +37704,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38872,16 +37717,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-panels/{id}/: + /api/dcim/power-feeds/{id}/: get: - operationId: dcim_power_panels_retrieve - description: Get a power panel 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 panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38893,17 +37738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_power_panels_update - description: Put a power panel 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 panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38911,10 +37756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -38924,17 +37769,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_power_panels_partial_update - description: Patch a power panel 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 panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38942,10 +37787,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38954,17 +37799,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_power_panels_destroy - description: Delete a power panel 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 panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38974,69 +37819,35 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/: + /api/dcim/power-feeds/{id}/trace/: get: - operationId: dcim_power_port_templates_list - description: Get a list of power port template 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: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: A unique integer value identifying this power feed. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerFeed' + description: '' + /api/dcim/power-outlet-templates/: + get: + operationId: dcim_power_outlet_templates_list + description: Get a list of power outlet template objects. + parameters: - in: query name: created schema: @@ -39210,23 +38021,23 @@ paths: explode: true style: form - in: query - name: devicetype_id + name: feed_leg schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: devicetype_id__n + name: feed_leg__n schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query @@ -39440,64 +38251,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -39523,26 +38276,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -39639,6 +38372,26 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: power_port_id + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form - in: query name: q schema: @@ -39648,23 +38401,23 @@ paths: name: type schema: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - International/ITA + - ITA/International - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] + 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'', @@ -39677,79 +38430,77 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + * `NEMA (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-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] + * `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` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `ITA/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'')] + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + * `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` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: type__n schema: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - International/ITA + - ITA/International - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] + 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'', @@ -39762,56 +38513,54 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + * `NEMA (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-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] + * `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` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `ITA/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'')] + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + * `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` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query @@ -39829,21 +38578,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' + $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' description: '' post: - operationId: dcim_power_port_templates_create - description: Post a list of power port template objects. + 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/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39853,11 +38602,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_power_port_templates_bulk_update - description: Put a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_update + description: Put a list of power outlet template objects. tags: - dcim requestBody: @@ -39866,12 +38615,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39883,11 +38632,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: Patch a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_partial_update + description: Patch a list of power outlet template objects. tags: - dcim requestBody: @@ -39896,12 +38645,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39913,11 +38662,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_power_port_templates_bulk_destroy - description: Delete a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_destroy + description: Delete a list of power outlet template objects. tags: - dcim requestBody: @@ -39926,12 +38675,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39939,16 +38688,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/{id}/: + /api/dcim/power-outlet-templates/{id}/: get: - operationId: dcim_power_port_templates_retrieve - description: Get a power port template object. + operationId: dcim_power_outlet_templates_retrieve + description: Get a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -39960,17 +38709,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_power_port_templates_update - description: Put a power port template object. + operationId: dcim_power_outlet_templates_update + description: Put a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -39978,10 +38727,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39991,17 +38740,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_power_port_templates_partial_update - description: Patch a power port template object. + operationId: dcim_power_outlet_templates_partial_update + description: Patch a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -40009,10 +38758,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -40021,17 +38770,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_power_port_templates_destroy - description: Delete a power port template object. + operationId: dcim_power_outlet_templates_destroy + description: Delete a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -40041,69 +38790,11 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/: + /api/dcim/power-outlets/: get: - operationId: dcim_power_ports_list - description: Get a list of power port objects. + operationId: dcim_power_outlets_list + description: Get a list of power outlet objects. parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: cable_end schema: @@ -40344,6 +39035,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -40380,6 +39125,26 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: feed_leg + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__n + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) + explode: true + style: form - in: query name: id schema: @@ -40631,64 +39396,6 @@ paths: name: mark_connected schema: type: boolean - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -40814,6 +39521,26 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: power_port_id + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form - in: query name: q schema: @@ -40860,8 +39587,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -40869,62 +39595,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -40950,8 +39637,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -40959,8 +39645,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -40968,8 +39653,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -40977,8 +39661,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -41021,7 +39704,7 @@ paths: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 description: Physical port type explode: true style: form @@ -41031,7 +39714,7 @@ paths: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 description: Physical port type explode: true style: form @@ -41086,21 +39769,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortList' + $ref: '#/components/schemas/PaginatedPowerOutletList' description: '' post: - operationId: dcim_power_ports_create - description: Post a list of power port objects. + operationId: dcim_power_outlets_create + description: Post a list of power outlet objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -41110,11 +39793,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_power_ports_bulk_update - description: Put a list of power port objects. + operationId: dcim_power_outlets_bulk_update + description: Put a list of power outlet objects. tags: - dcim requestBody: @@ -41123,12 +39806,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41140,11 +39823,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_power_ports_bulk_partial_update - description: Patch a list of power port objects. + operationId: dcim_power_outlets_bulk_partial_update + description: Patch a list of power outlet objects. tags: - dcim requestBody: @@ -41153,12 +39836,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41170,11 +39853,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_power_ports_bulk_destroy - description: Delete a list of power port objects. + operationId: dcim_power_outlets_bulk_destroy + description: Delete a list of power outlet objects. tags: - dcim requestBody: @@ -41183,12 +39866,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41196,16 +39879,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/: + /api/dcim/power-outlets/{id}/: get: - operationId: dcim_power_ports_retrieve - description: Get a power port object. + operationId: dcim_power_outlets_retrieve + description: Get a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41217,17 +39900,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_power_ports_update - description: Put a power port object. + operationId: dcim_power_outlets_update + description: Put a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41235,10 +39918,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -41248,17 +39931,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_power_ports_partial_update - description: Patch a power port object. + operationId: dcim_power_outlets_partial_update + description: Patch a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41266,10 +39949,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -41278,17 +39961,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_power_ports_destroy - description: Delete a power port object. + operationId: dcim_power_outlets_destroy + description: Delete a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41298,9 +39981,9 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/trace/: + /api/dcim/power-outlets/{id}/trace/: get: - operationId: dcim_power_ports_trace_retrieve + operationId: dcim_power_outlets_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -41308,7 +39991,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41320,13 +40003,65 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' - /api/dcim/rack-reservations/: + /api/dcim/power-panels/: get: - operationId: dcim_rack_reservations_list - description: Get a list of rack reservation objects. + operationId: dcim_power_panels_list + description: Get a list of power panel 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: @@ -41606,31 +40341,12 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - in: query name: location_id schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query @@ -41638,8 +40354,7 @@ paths: schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query @@ -41647,151 +40362,125 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: rack_id + name: name schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: name__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: region + name: name__ic schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: name__ie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: name__iew schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: name__isw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: name__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__nic schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: name__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: name__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: name__nisw schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group_id__n + name: q schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + description: Search - in: query - name: site_id + name: region schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: region__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: region_id schema: type: array items: @@ -41799,7 +40488,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: region_id__n schema: type: array items: @@ -41807,124 +40496,94 @@ paths: explode: true style: form - in: query - name: tenant + name: site schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant__n + name: site__n schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant_group + name: site_group schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: site_group__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: site_group_id schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: site_group_id__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: tenant_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: unit - schema: - type: number - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: user + name: tag schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: tag__n schema: type: array items: type: string - description: User (name) - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: integer - description: User (ID) explode: true style: form - in: query - name: user_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: User (ID) - explode: true - style: form + type: string + format: uuid tags: - dcim security: @@ -41935,21 +40594,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackReservationList' + $ref: '#/components/schemas/PaginatedPowerPanelList' description: '' post: - operationId: dcim_rack_reservations_create - description: Post a list of rack reservation objects. + operationId: dcim_power_panels_create + description: Post a list of power panel objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -41959,11 +40618,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rack_reservations_bulk_update - description: Put a list of rack reservation objects. + operationId: dcim_power_panels_bulk_update + description: Put a list of power panel objects. tags: - dcim requestBody: @@ -41972,12 +40631,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -41989,11 +40648,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: Patch a list of rack reservation objects. + operationId: dcim_power_panels_bulk_partial_update + description: Patch a list of power panel objects. tags: - dcim requestBody: @@ -42002,12 +40661,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42019,11 +40678,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rack_reservations_bulk_destroy - description: Delete a list of rack reservation objects. + operationId: dcim_power_panels_bulk_destroy + description: Delete a list of power panel objects. tags: - dcim requestBody: @@ -42032,12 +40691,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42045,16 +40704,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-reservations/{id}/: + /api/dcim/power-panels/{id}/: get: - operationId: dcim_rack_reservations_retrieve - description: Get a rack reservation object. + operationId: dcim_power_panels_retrieve + description: Get a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42066,17 +40725,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rack_reservations_update - description: Put a rack reservation object. + operationId: dcim_power_panels_update + description: Put a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42084,10 +40743,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42097,17 +40756,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rack_reservations_partial_update - description: Patch a rack reservation object. + operationId: dcim_power_panels_partial_update + description: Patch a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42115,10 +40774,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42127,17 +40786,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rack_reservations_destroy - description: Delete a rack reservation object. + operationId: dcim_power_panels_destroy + description: Delete a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42147,93 +40806,67 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/: + /api/dcim/power-port-templates/: get: - operationId: dcim_rack_roles_list - description: Get a list of rack role objects. + operationId: dcim_power_port_templates_list + description: Get a list of power port template objects. parameters: - in: query - name: color + name: allocated_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: allocated_draw__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 + name: allocated_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: allocated_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nie + name: allocated_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: allocated_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: allocated_draw__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -42388,6 +41021,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -42447,81 +41100,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -42529,11 +41168,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -42541,7 +41176,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -42549,100 +41184,159 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: maximum_draw schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: maximum_draw__empty schema: - type: string - description: Search + type: boolean - in: query - name: slug + name: maximum_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: maximum_draw__gte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: slug__ic + name: maximum_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: maximum_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: modified_by_request + 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: @@ -42650,7 +41344,11 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -42658,7 +41356,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__ie schema: type: array items: @@ -42666,7 +41364,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__iew schema: type: array items: @@ -42674,7 +41372,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__isw schema: type: array items: @@ -42682,7 +41380,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__n schema: type: array items: @@ -42690,7 +41388,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__nic schema: type: array items: @@ -42698,7 +41396,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nie schema: type: array items: @@ -42706,7 +41404,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__niew schema: type: array items: @@ -42714,13 +41412,202 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -42736,21 +41623,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackRoleList' + $ref: '#/components/schemas/PaginatedPowerPortTemplateList' description: '' post: - operationId: dcim_rack_roles_create - description: Post a list of rack role objects. + operationId: dcim_power_port_templates_create + description: Post a list of power port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42760,11 +41647,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rack_roles_bulk_update - description: Put a list of rack role objects. + operationId: dcim_power_port_templates_bulk_update + description: Put a list of power port template objects. tags: - dcim requestBody: @@ -42773,12 +41660,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42790,11 +41677,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rack_roles_bulk_partial_update - description: Patch a list of rack role objects. + operationId: dcim_power_port_templates_bulk_partial_update + description: Patch a list of power port template objects. tags: - dcim requestBody: @@ -42803,12 +41690,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42820,11 +41707,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rack_roles_bulk_destroy - description: Delete a list of rack role objects. + operationId: dcim_power_port_templates_bulk_destroy + description: Delete a list of power port template objects. tags: - dcim requestBody: @@ -42833,12 +41720,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42846,16 +41733,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/{id}/: + /api/dcim/power-port-templates/{id}/: get: - operationId: dcim_rack_roles_retrieve - description: Get a rack role object. + operationId: dcim_power_port_templates_retrieve + description: Get a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42867,17 +41754,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rack_roles_update - description: Put a rack role object. + operationId: dcim_power_port_templates_update + description: Put a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42885,10 +41772,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42898,17 +41785,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rack_roles_partial_update - description: Patch a rack role object. + operationId: dcim_power_port_templates_partial_update + description: Patch a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42916,10 +41803,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42928,17 +41815,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rack_roles_destroy - description: Delete a rack role object. + operationId: dcim_power_port_templates_destroy + description: Delete a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42948,149 +41835,119 @@ paths: responses: '204': description: No response body - /api/dcim/racks/: + /api/dcim/power-ports/: get: - operationId: dcim_racks_list - description: Get a list of rack objects. + operationId: dcim_power_ports_list + description: Get a list of power port objects. parameters: - in: query - name: asset_tag + name: allocated_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__empty + name: allocated_draw__empty schema: type: boolean - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n + name: allocated_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nic + name: allocated_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nie + name: allocated_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__niew + name: allocated_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nisw + name: allocated_draw__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact + name: cable_end schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact__n + name: cable_end__n schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_group + name: cable_id schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role + name: cabled schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query - name: contact_role__n + name: connected schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query name: created schema: @@ -43159,10 +42016,6 @@ paths: schema: type: string format: uuid - - in: query - name: desc_units - schema: - type: boolean - in: query name: description schema: @@ -43248,87 +42101,131 @@ paths: explode: true style: form - in: query - name: facility_id + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility_id__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: facility_id__ic + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__ie + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__iew + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__isw + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__n + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility_id__nic + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility_id__nie + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility_id__niew + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: facility_id__nisw + name: device_type__n schema: type: array items: type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) explode: true style: form - in: query @@ -43389,6 +42286,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -43463,7 +42444,7 @@ paths: schema: type: array items: - type: integer + type: string description: Location (slug) explode: true style: form @@ -43472,7 +42453,7 @@ paths: schema: type: array items: - type: integer + type: string description: Location (slug) explode: true style: form @@ -43495,7 +42476,11 @@ paths: explode: true style: form - in: query - name: max_weight + name: mark_connected + schema: + type: boolean + - in: query + name: maximum_draw schema: type: array items: @@ -43504,11 +42489,11 @@ paths: explode: true style: form - in: query - name: max_weight__empty + name: maximum_draw__empty schema: type: boolean - in: query - name: max_weight__gt + name: maximum_draw__gt schema: type: array items: @@ -43517,7 +42502,7 @@ paths: explode: true style: form - in: query - name: max_weight__gte + name: maximum_draw__gte schema: type: array items: @@ -43526,7 +42511,7 @@ paths: explode: true style: form - in: query - name: max_weight__lt + name: maximum_draw__lt schema: type: array items: @@ -43535,7 +42520,7 @@ paths: explode: true style: form - in: query - name: max_weight__lte + name: maximum_draw__lte schema: type: array items: @@ -43544,7 +42529,7 @@ paths: explode: true style: form - in: query - name: max_weight__n + name: maximum_draw__n schema: type: array items: @@ -43558,61 +42543,23 @@ paths: type: string format: uuid - in: query - name: mounting_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__empty - schema: - type: boolean - - in: query - name: mounting_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lte + name: module_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query - name: mounting_depth__n + name: module_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query @@ -43699,6 +42646,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -43712,155 +42663,52 @@ paths: schema: type: string - in: query - name: outer_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__empty - schema: - type: boolean - - in: query - name: outer_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n + name: q schema: type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_width - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_width__empty - schema: - type: boolean - - in: query - name: outer_width__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + description: Search - in: query - name: outer_width__gte + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: outer_width__lt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: outer_width__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: outer_width__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - - in: query - name: q - schema: - type: string - description: Search - in: query name: region schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -43868,8 +42716,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -43877,59 +42724,45 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: site schema: type: array items: type: string - description: Role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role_id + name: site__n schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + description: Site name (slug) explode: true style: form - in: query - name: role_id__n + name: site_group schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: serial + name: site_group__n schema: type: array items: @@ -43937,11 +42770,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: site_group_id schema: type: array items: @@ -43949,7 +42778,7 @@ paths: explode: true style: form - in: query - name: serial__ie + name: site_group_id__n schema: type: array items: @@ -43957,23 +42786,25 @@ paths: explode: true style: form - in: query - name: serial__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: serial__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: serial__n + name: tag schema: type: array items: @@ -43981,7 +42812,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: tag__n schema: type: array items: @@ -43989,103 +42820,471 @@ paths: explode: true style: form - in: query - name: serial__nie + name: type schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + description: Physical port type explode: true style: form - in: query - name: serial__niew + name: type__n schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + description: Physical port type explode: true style: form - in: query - name: serial__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: site + name: virtual_chassis schema: type: array items: type: string - description: Site (slug) + description: Virtual Chassis explode: true style: form - in: query - name: site__n + name: virtual_chassis__n schema: type: array items: type: string - description: Site (slug) + description: Virtual Chassis explode: true style: form - in: query - name: site_group + name: virtual_chassis_id schema: type: array items: type: integer - description: Site group (slug) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: site_group__n + name: virtual_chassis_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPowerPortList' + description: '' + post: + operationId: dcim_power_ports_create + description: Post a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + put: + operationId: dcim_power_ports_bulk_update + description: Put a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPort' + description: '' + patch: + operationId: dcim_power_ports_bulk_partial_update + description: Patch a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPort' + description: '' + delete: + operationId: dcim_power_ports_bulk_destroy + description: Delete a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/power-ports/{id}/: + get: + operationId: dcim_power_ports_retrieve + description: Get a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + put: + operationId: dcim_power_ports_update + description: Put a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + patch: + operationId: dcim_power_ports_partial_update + description: Patch a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + delete: + operationId: dcim_power_ports_destroy + description: Delete a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/power-ports/{id}/trace/: + get: + operationId: dcim_power_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + /api/dcim/rack-reservations/: + get: + operationId: dcim_rack_reservations_list + description: Get a list of rack reservation objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true style: form - in: query - name: site_group_id__n + name: created__empty schema: type: array items: - type: integer - description: Site group (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id + name: created__gt schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id__n + name: created__gte schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: starting_unit + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -44094,11 +43293,11 @@ paths: explode: true style: form - in: query - name: starting_unit__empty + name: id__empty schema: type: boolean - in: query - name: starting_unit__gt + name: id__gt schema: type: array items: @@ -44107,7 +43306,7 @@ paths: explode: true style: form - in: query - name: starting_unit__gte + name: id__gte schema: type: array items: @@ -44116,7 +43315,7 @@ paths: explode: true style: form - in: query - name: starting_unit__lt + name: id__lt schema: type: array items: @@ -44125,7 +43324,7 @@ paths: explode: true style: form - in: query - name: starting_unit__lte + name: id__lte schema: type: array items: @@ -44134,7 +43333,7 @@ paths: explode: true style: form - in: query - name: starting_unit__n + name: id__n schema: type: array items: @@ -44143,304 +43342,375 @@ paths: explode: true style: form - in: query - name: status + name: last_updated schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 + format: date-time explode: true style: form - in: query - name: status__n + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tenant + name: last_updated__lt schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant__n + name: last_updated__lte schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant_group + name: last_updated__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: tenant_group__n + name: location schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: location__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: location_id schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: location_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Rack (ID) explode: true style: form - in: query - name: tenant_id__n + name: rack_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Rack (ID) explode: true style: form - in: query - name: type + name: region schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: type__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: u_height + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__empty + name: region_id__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: u_height__gt + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: u_height__gte + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: u_height__lt + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__lte + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: u_height__n + name: site_id__n schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: updated_by_request + name: tag schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: weight + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__empty + name: tenant schema: - type: boolean + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: weight__gt + name: tenant__n schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__gte + name: tenant_group schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lt + name: tenant_group__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lte + name: tenant_group_id schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__n + name: tenant_group_id__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight_unit + name: tenant_id schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: weight_unit__n + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: unit + schema: + type: number + - in: query + name: updated_by_request schema: type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + format: uuid - in: query - name: width + name: user + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: User (ID) explode: true style: form - in: query - name: width__n + name: user_id__n schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: User (ID) explode: true style: form tags: @@ -44453,21 +43723,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackList' + $ref: '#/components/schemas/PaginatedRackReservationList' description: '' post: - operationId: dcim_racks_create - description: Post a list of rack objects. + operationId: dcim_rack_reservations_create + description: Post a list of rack reservation objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44477,11 +43747,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_racks_bulk_update - description: Put a list of rack objects. + operationId: dcim_rack_reservations_bulk_update + description: Put a list of rack reservation objects. tags: - dcim requestBody: @@ -44490,12 +43760,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44507,11 +43777,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_racks_bulk_partial_update - description: Patch a list of rack objects. + operationId: dcim_rack_reservations_bulk_partial_update + description: Patch a list of rack reservation objects. tags: - dcim requestBody: @@ -44520,12 +43790,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44537,11 +43807,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_racks_bulk_destroy - description: Delete a list of rack objects. + operationId: dcim_rack_reservations_bulk_destroy + description: Delete a list of rack reservation objects. tags: - dcim requestBody: @@ -44550,12 +43820,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44563,16 +43833,16 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/: + /api/dcim/rack-reservations/{id}/: get: - operationId: dcim_racks_retrieve - description: Get a rack object. + operationId: dcim_rack_reservations_retrieve + description: Get a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44584,17 +43854,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_racks_update - description: Put a rack object. + operationId: dcim_rack_reservations_update + description: Put a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44602,10 +43872,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44615,17 +43885,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_racks_partial_update - description: Patch a rack object. + operationId: dcim_rack_reservations_partial_update + description: Patch a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44633,10 +43903,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44645,17 +43915,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_racks_destroy - description: Delete a rack object. + operationId: dcim_rack_reservations_destroy + description: Delete a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44665,109 +43935,10 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/elevation/: - get: - operationId: dcim_racks_elevation_retrieve - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. - parameters: - - in: query - name: exclude - schema: - type: integer - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - x-spec-enum-id: d2fb9b3f75158b83 - default: front - minLength: 1 - description: '* `front` - Front - - * `rear` - Rear' - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this rack. - required: true - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: margin_width - schema: - type: integer - default: 15 - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: render - schema: - enum: - - json - - svg - type: string - x-spec-enum-id: 09901a5ff13ba07a - default: json - minLength: 1 - description: '* `json` - json - - * `svg` - svg' - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRackUnitList' - description: '' - /api/dcim/rear-port-templates/: + /api/dcim/rack-roles/: get: - operationId: dcim_rear_port_templates_list - description: Get a list of rear port template objects. + operationId: dcim_rack_roles_list + description: Get a list of rack role objects. parameters: - in: query name: color @@ -45005,46 +44176,6 @@ paths: type: string explode: true style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -45104,67 +44235,81 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -45172,7 +44317,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -45180,7 +44329,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -45188,121 +44337,116 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: module_type_id + name: slug schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: slug__ie schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: slug__isw schema: type: array items: @@ -45310,43 +44454,7 @@ paths: 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 + name: slug__n schema: type: array items: @@ -45354,7 +44462,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__nic schema: type: array items: @@ -45362,7 +44470,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__nie schema: type: array items: @@ -45370,7 +44478,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__niew schema: type: array items: @@ -45378,104 +44486,27 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: positions - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query @@ -45493,21 +44524,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' + $ref: '#/components/schemas/PaginatedRackRoleList' description: '' post: - operationId: dcim_rear_port_templates_create - description: Post a list of rear port template objects. + operationId: dcim_rack_roles_create + description: Post a list of rack role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45517,11 +44548,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_rear_port_templates_bulk_update - description: Put a list of rear port template objects. + operationId: dcim_rack_roles_bulk_update + description: Put a list of rack role objects. tags: - dcim requestBody: @@ -45530,12 +44561,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45547,11 +44578,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: Patch a list of rear port template objects. + operationId: dcim_rack_roles_bulk_partial_update + description: Patch a list of rack role objects. tags: - dcim requestBody: @@ -45560,12 +44591,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45577,11 +44608,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: Delete a list of rear port template objects. + operationId: dcim_rack_roles_bulk_destroy + description: Delete a list of rack role objects. tags: - dcim requestBody: @@ -45590,12 +44621,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45603,16 +44634,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-port-templates/{id}/: + /api/dcim/rack-roles/{id}/: get: - operationId: dcim_rear_port_templates_retrieve - description: Get a rear port template object. + operationId: dcim_rack_roles_retrieve + description: Get a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45624,17 +44655,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_rear_port_templates_update - description: Put a rear port template object. + operationId: dcim_rack_roles_update + description: Put a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45642,10 +44673,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45655,17 +44686,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_rear_port_templates_partial_update - description: Patch a rear port template object. + operationId: dcim_rack_roles_partial_update + description: Patch a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45673,10 +44704,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -45685,17 +44716,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_rear_port_templates_destroy - description: Delete a rear port template object. + operationId: dcim_rack_roles_destroy + description: Delete a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45705,103 +44736,85 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/: + /api/dcim/rack-types/: get: - operationId: dcim_rear_ports_list - description: Get a list of rear port objects. + operationId: dcim_rack_types_list + description: Get a list of rack type objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + 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: desc_units + schema: + type: boolean + - in: query + name: description schema: type: array items: @@ -45809,7 +44822,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: @@ -45817,7 +44834,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: description__ie schema: type: array items: @@ -45825,7 +44842,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__iew schema: type: array items: @@ -45833,7 +44850,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__isw schema: type: array items: @@ -45841,233 +44858,228 @@ paths: explode: true style: form - in: query - name: created + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: form_factor schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: created__n + name: form_factor__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__empty schema: type: boolean - in: query - name: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: last_updated__lt schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: last_updated__lte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device_id + name: last_updated__n schema: type: array items: - type: integer - description: Device (ID) + type: string + format: date-time explode: true style: form - - in: query - name: device_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form + type: integer - in: query - name: device_type + name: manufacturer schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type__n + name: manufacturer__n schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type_id + name: manufacturer_id schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: device_type_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: id + name: max_weight schema: type: array items: @@ -46076,11 +45088,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: max_weight__empty schema: type: boolean - in: query - name: id__gt + name: max_weight__gt schema: type: array items: @@ -46089,7 +45101,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: max_weight__gte schema: type: array items: @@ -46098,7 +45110,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: max_weight__lt schema: type: array items: @@ -46107,7 +45119,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: max_weight__lte schema: type: array items: @@ -46116,7 +45128,7 @@ paths: explode: true style: form - in: query - name: id__n + name: max_weight__n schema: type: array items: @@ -46125,7 +45137,7 @@ paths: explode: true style: form - in: query - name: label + name: model schema: type: array items: @@ -46133,11 +45145,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: model__empty schema: type: boolean - in: query - name: label__ic + name: model__ic schema: type: array items: @@ -46145,7 +45157,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: model__ie schema: type: array items: @@ -46153,7 +45165,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: model__iew schema: type: array items: @@ -46161,7 +45173,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: model__isw schema: type: array items: @@ -46169,7 +45181,7 @@ paths: explode: true style: form - in: query - name: label__n + name: model__n schema: type: array items: @@ -46177,7 +45189,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: model__nic schema: type: array items: @@ -46185,7 +45197,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: model__nie schema: type: array items: @@ -46193,7 +45205,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: model__niew schema: type: array items: @@ -46201,7 +45213,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: model__nisw schema: type: array items: @@ -46209,217 +45221,225 @@ paths: explode: true style: form - in: query - name: last_updated + name: modified_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query - name: last_updated__empty + name: mounting_depth schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: mounting_depth__empty + schema: + type: boolean + - in: query + name: mounting_depth__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: mounting_depth__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: mounting_depth__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: mounting_depth__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: mounting_depth__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: location + name: outer_depth schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: outer_depth__empty schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: boolean - in: query - name: location_id + name: outer_depth__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: outer_depth__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id + name: outer_depth__lt schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: outer_depth__lte schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: name + name: outer_depth__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: outer_unit schema: - type: boolean + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: name__ic + name: outer_unit__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: name__ie + name: outer_width schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: outer_width__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__isw + name: outer_width__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: outer_width__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: outer_width__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: outer_width__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: outer_width__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -46427,337 +45447,328 @@ paths: explode: true style: form - in: query - name: occupied + name: slug__empty schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: positions + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__gte + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__lt + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__lte + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__n + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: slug__nie schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: slug__niew schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: slug__nisw schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: starting_unit schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: region + name: starting_unit__empty + schema: + type: boolean + - in: query + name: starting_unit__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: starting_unit__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: starting_unit__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: starting_unit__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: starting_unit__n schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: tag schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: tag__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: u_height schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: site + name: u_height__empty schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form + type: boolean - in: query - name: site__n + name: u_height__gt schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: u_height__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group__n + name: u_height__lt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: u_height__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: u_height__n schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: site_id__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: type + name: weight__lte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: type__n + name: weight__n schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis__n + name: weight_unit__n schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis_id + name: width schema: type: array items: type: integer - description: Virtual Chassis (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: virtual_chassis_id__n + name: width__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form tags: @@ -46770,21 +45781,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortList' + $ref: '#/components/schemas/PaginatedRackTypeList' description: '' post: - operationId: dcim_rear_ports_create - description: Post a list of rear port objects. + operationId: dcim_rack_types_create + description: Post a list of rack type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -46794,11 +45805,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: dcim_rear_ports_bulk_update - description: Put a list of rear port objects. + operationId: dcim_rack_types_bulk_update + description: Put a list of rack type objects. tags: - dcim requestBody: @@ -46807,12 +45818,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46824,11 +45835,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: dcim_rear_ports_bulk_partial_update - description: Patch a list of rear port objects. + operationId: dcim_rack_types_bulk_partial_update + description: Patch a list of rack type objects. tags: - dcim requestBody: @@ -46837,12 +45848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46854,11 +45865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: dcim_rear_ports_bulk_destroy - description: Delete a list of rear port objects. + operationId: dcim_rack_types_bulk_destroy + description: Delete a list of rack type objects. tags: - dcim requestBody: @@ -46867,12 +45878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46880,16 +45891,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/: + /api/dcim/rack-types/{id}/: get: - operationId: dcim_rear_ports_retrieve - description: Get a rear port object. + operationId: dcim_rack_types_retrieve + description: Get a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46901,17 +45912,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: dcim_rear_ports_update - description: Put a rear port object. + operationId: dcim_rack_types_update + description: Put a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46919,10 +45930,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -46932,17 +45943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: dcim_rear_ports_partial_update - description: Patch a rear port object. + operationId: dcim_rack_types_partial_update + description: Patch a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46950,10 +45961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -46962,17 +45973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: dcim_rear_ports_destroy - description: Delete a rear port object. + operationId: dcim_rack_types_destroy + description: Delete a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46982,68 +45993,115 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/paths/: + /api/dcim/racks/: get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + operationId: dcim_racks_list + description: Get a list of rack objects. parameters: - - in: path - name: id + - in: query + name: airflow schema: - type: integer - description: A unique integer value identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - /api/dcim/regions/: - get: - operationId: dcim_regions_list - description: Get a list of region objects. - parameters: + type: string + x-spec-enum-id: a784734d07ef1b3c + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' - in: query - name: ancestor + name: airflow__n + schema: + type: string + x-spec-enum-id: a784734d07ef1b3c + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + - in: query + name: asset_tag schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: ancestor__n + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: ancestor_id + name: asset_tag__ie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: ancestor_id__n + name: asset_tag__iew schema: type: array items: - type: integer - description: Region (ID) + 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 @@ -47069,8 +46127,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47078,8 +46135,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47168,6 +46224,10 @@ paths: schema: type: string format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -47253,29 +46313,131 @@ paths: explode: true style: form - in: query - name: id + name: facility_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: facility_id__empty schema: type: boolean - in: query - name: id__gt + name: facility_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: facility_id__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: form_factor + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form + - in: query + name: form_factor__n + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + 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: @@ -47380,12 +46542,7 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: location schema: type: array items: @@ -47393,11 +46550,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: location__n schema: type: array items: @@ -47405,7 +46558,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: location_id schema: type: array items: @@ -47413,7 +46566,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: location_id__n schema: type: array items: @@ -47421,138 +46574,164 @@ paths: explode: true style: form - in: query - name: name__isw + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__nic + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__nie + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__niew + name: max_weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: max_weight__empty + schema: + type: boolean + - in: query + name: max_weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: max_weight__gte schema: type: array items: - type: string - description: Parent region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: parent__n + name: max_weight__lt schema: type: array items: - type: string - description: Parent region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: parent_id + name: max_weight__lte schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + format: int32 explode: true style: form - in: query - name: parent_id__n + name: max_weight__n schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + format: int32 explode: true style: form - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: mounting_depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: mounting_depth__empty schema: type: boolean - in: query - name: slug__ic + name: mounting_depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: mounting_depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: mounting_depth__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -47560,7 +46739,11 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -47568,7 +46751,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__ie schema: type: array items: @@ -47576,7 +46759,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__iew schema: type: array items: @@ -47584,7 +46767,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__isw schema: type: array items: @@ -47592,7 +46775,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__n schema: type: array items: @@ -47600,7 +46783,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nic schema: type: array items: @@ -47608,7 +46791,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__nie schema: type: array items: @@ -47616,7 +46799,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__niew schema: type: array items: @@ -47624,397 +46807,224 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: name__nisw schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRegionList' - description: '' - post: - operationId: dcim_regions_create - description: Post a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_bulk_update - description: Put a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_bulk_partial_update - description: Patch a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_bulk_destroy - description: Delete a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/regions/{id}/: - get: - operationId: dcim_regions_retrieve - description: Get a region object. - parameters: - - in: path - name: id + 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 - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_update - description: Put a region object. - parameters: - - in: path - name: id + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_partial_update - description: Patch a region object. - parameters: - - in: path - name: id + type: string + - in: query + name: outer_depth schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_destroy - description: Delete a region object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__empty schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/site-groups/: - get: - operationId: dcim_site_groups_list - description: Get a list of site group objects. - parameters: + type: boolean - in: query - name: ancestor + name: outer_depth__gt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: ancestor__n + name: outer_depth__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: ancestor_id + name: outer_depth__lt schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: outer_depth__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: contact + name: outer_depth__n schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: outer_unit + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_unit__n + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_width schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: outer_width__empty + schema: + type: boolean + - in: query + name: outer_width__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: outer_width__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: outer_width__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: outer_width__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: outer_width__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: q + schema: + type: string + description: Search + - in: query + name: rack_type schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__gt + name: rack_type__n schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__gte + name: rack_type_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__lt + name: rack_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__lte + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: region__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 + name: region_id schema: type: array items: @@ -48022,43 +47032,53 @@ paths: explode: true style: form - in: query - name: description__empty + name: region_id__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: description__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: description__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: description__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: description__n + name: serial schema: type: array items: @@ -48066,7 +47086,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: @@ -48074,7 +47098,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: serial__ie schema: type: array items: @@ -48082,7 +47106,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: serial__iew schema: type: array items: @@ -48090,7 +47114,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: serial__isw schema: type: array items: @@ -48098,183 +47122,191 @@ paths: explode: true style: form - in: query - name: id + name: serial__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: serial__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: serial__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: serial__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: serial__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: id__n + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: last_updated + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: site_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: site_group_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: site_group_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: site_id schema: type: array items: - type: string - format: date-time + type: integer + description: Site (ID) explode: true style: form - in: query - name: last_updated__lte + name: site_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Site (ID) explode: true style: form - in: query - name: last_updated__n + name: starting_unit schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: starting_unit__empty schema: - type: integer + type: boolean - in: query - name: modified_by_request + name: starting_unit__gt schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name + name: starting_unit__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: starting_unit__lt schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: starting_unit__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: starting_unit__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: status schema: type: array items: type: string + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: name__isw + name: status__n schema: type: array items: type: string + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: name__n + name: tag schema: type: array items: @@ -48282,7 +47314,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: tag__n schema: type: array items: @@ -48290,189 +47322,250 @@ paths: explode: true style: form - in: query - name: name__nie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__niew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nisw + name: tenant_group schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: tenant_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent + name: tenant_group_id schema: type: array items: type: string - description: Parent site group (slug) explode: true style: form - in: query - name: parent__n + name: tenant_group_id__n schema: type: array items: type: string - description: Parent site group (slug) explode: true style: form - in: query - name: parent_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Tenant (ID) explode: true style: form - in: query - name: parent_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Tenant (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: u_height schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: u_height__empty schema: type: boolean - in: query - name: slug__ic + name: u_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: u_height__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: u_height__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: u_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: u_height__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__nie + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__niew + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__nisw + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: weight_unit__n + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: width + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form tags: - dcim security: @@ -48483,21 +47576,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteGroupList' + $ref: '#/components/schemas/PaginatedRackList' description: '' post: - operationId: dcim_site_groups_create - description: Post a list of site group objects. + operationId: dcim_racks_create + description: Post a list of rack objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -48507,11 +47600,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_site_groups_bulk_update - description: Put a list of site group objects. + operationId: dcim_racks_bulk_update + description: Put a list of rack objects. tags: - dcim requestBody: @@ -48520,12 +47613,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48537,11 +47630,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_site_groups_bulk_partial_update - description: Patch a list of site group objects. + operationId: dcim_racks_bulk_partial_update + description: Patch a list of rack objects. tags: - dcim requestBody: @@ -48550,12 +47643,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48567,11 +47660,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_site_groups_bulk_destroy - description: Delete a list of site group objects. + operationId: dcim_racks_bulk_destroy + description: Delete a list of rack objects. tags: - dcim requestBody: @@ -48580,12 +47673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48593,16 +47686,16 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/{id}/: + /api/dcim/racks/{id}/: get: - operationId: dcim_site_groups_retrieve - description: Get a site group object. + operationId: dcim_racks_retrieve + description: Get a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48614,17 +47707,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_site_groups_update - description: Put a site group object. + operationId: dcim_racks_update + description: Put a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48632,10 +47725,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -48645,17 +47738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_site_groups_partial_update - description: Patch a site group object. + operationId: dcim_racks_partial_update + description: Patch a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48663,10 +47756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -48675,17 +47768,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_site_groups_destroy - description: Delete a site group object. + operationId: dcim_racks_destroy + description: Delete a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48695,105 +47788,192 @@ paths: responses: '204': description: No response body - /api/dcim/sites/: + /api/dcim/racks/{id}/elevation/: get: - operationId: dcim_sites_list - description: Get a list of site objects. + operationId: dcim_racks_elevation_retrieve + description: Rack elevation representing the list of rack units. Also supports + rendering the elevation as an SVG. parameters: - in: query - name: asn + name: exclude + schema: + type: integer + - in: query + name: expand_devices + schema: + type: boolean + default: true + - in: query + name: face + schema: + enum: + - front + - rear + type: string + x-spec-enum-id: d2fb9b3f75158b83 + default: front + minLength: 1 + description: '* `front` - Front + + * `rear` - Rear' + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rack. + required: true + - in: query + name: include_images + schema: + type: boolean + default: true + - in: query + name: legend_width + schema: + type: integer + default: 30 + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: margin_width + schema: + type: integer + default: 15 + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: q + schema: + type: string + minLength: 1 + - in: query + name: render + schema: + enum: + - json + - svg + type: string + x-spec-enum-id: 09901a5ff13ba07a + default: json + minLength: 1 + description: '* `json` - json + + * `svg` - svg' + - in: query + name: unit_height + schema: + type: integer + - in: query + name: unit_width + schema: + type: integer + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRackUnitList' + description: '' + /api/dcim/rear-port-templates/: + get: + operationId: dcim_rear_port_templates_list + description: Get a list of rear port template objects. + parameters: + - in: query + name: color schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string explode: true style: form - in: query - name: asn__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string explode: true style: form - in: query - name: asn_id + name: color__ie schema: type: array items: - type: integer - description: AS (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: color__iew schema: type: array items: - type: integer - description: AS (ID) + type: string explode: true style: form - in: query - name: contact + name: color__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: color__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: color__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: color__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: color__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: color__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -48949,83 +48129,85 @@ paths: explode: true style: form - in: query - name: facility + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: facility__empty - schema: - type: boolean - - in: query - name: facility__ic + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: facility__ie + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__iew + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: facility__isw + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__n + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nic + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nie + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__niew + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nisw + name: label schema: type: array items: @@ -49033,97 +48215,79 @@ paths: explode: true style: form - in: query - name: group + name: label__empty schema: - type: array - items: - type: integer - description: Group (slug) - explode: true - style: form + type: boolean - in: query - name: group__n + name: label__ic schema: type: array items: - type: integer - description: Group (slug) + type: string explode: true style: form - in: query - name: group_id + name: label__ie schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: label__iew schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: id + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -49189,64 +48353,6 @@ paths: format: date-time explode: true style: form - - in: query - name: latitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - name: limit required: false in: query @@ -49254,68 +48360,30 @@ paths: schema: type: integer - in: query - name: longitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__empty - schema: - type: boolean - - in: query - name: longitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__lt + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: longitude__lte + name: module_type_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: longitude__n + name: module_type_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -49413,316 +48481,84 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n + name: positions schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: slug__empty + name: positions__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n + name: positions__gt schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: positions__gte schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: positions__lt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: positions__lte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: positions__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: time_zone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__nic - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: time_zone__nie + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: time_zone__niew + name: type schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: time_zone__nisw + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -49740,21 +48576,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteList' + $ref: '#/components/schemas/PaginatedRearPortTemplateList' description: '' post: - operationId: dcim_sites_create - description: Post a list of site objects. + operationId: dcim_rear_port_templates_create + description: Post a list of rear port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49764,11 +48600,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_sites_bulk_update - description: Put a list of site objects. + operationId: dcim_rear_port_templates_bulk_update + description: Put a list of rear port template objects. tags: - dcim requestBody: @@ -49777,12 +48613,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49794,11 +48630,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_sites_bulk_partial_update - description: Patch a list of site objects. + operationId: dcim_rear_port_templates_bulk_partial_update + description: Patch a list of rear port template objects. tags: - dcim requestBody: @@ -49807,12 +48643,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49824,11 +48660,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_sites_bulk_destroy - description: Delete a list of site objects. + operationId: dcim_rear_port_templates_bulk_destroy + description: Delete a list of rear port template objects. tags: - dcim requestBody: @@ -49837,12 +48673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49850,16 +48686,16 @@ paths: responses: '204': description: No response body - /api/dcim/sites/{id}/: + /api/dcim/rear-port-templates/{id}/: get: - operationId: dcim_sites_retrieve - description: Get a site object. + operationId: dcim_rear_port_templates_retrieve + description: Get a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49871,17 +48707,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_sites_update - description: Put a site object. + operationId: dcim_rear_port_templates_update + description: Put a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49889,10 +48725,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49902,17 +48738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_sites_partial_update - description: Patch a site object. + operationId: dcim_rear_port_templates_partial_update + description: Patch a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49920,10 +48756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -49932,17 +48768,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_sites_destroy - description: Delete a site object. + operationId: dcim_rear_port_templates_destroy + description: Delete a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49952,81 +48788,95 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/: + /api/dcim/rear-ports/: get: - operationId: dcim_virtual_chassis_list - description: Get a list of virtual chassis objects. + operationId: dcim_rear_ports_list + description: Get a list of rear port objects. parameters: - in: query - name: created + name: cable_end schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: created__empty + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__gt + name: cable_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__gte + name: cabled + schema: + type: boolean + - in: query + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: color__isw schema: type: array items: @@ -50034,11 +48884,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__n schema: type: array items: @@ -50046,7 +48892,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nic schema: type: array items: @@ -50054,7 +48900,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: color__nie schema: type: array items: @@ -50062,7 +48908,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: color__niew schema: type: array items: @@ -50070,7 +48916,7 @@ paths: explode: true style: form - in: query - name: description__n + name: color__nisw schema: type: array items: @@ -50078,67 +48924,75 @@ paths: explode: true style: form - in: query - name: description__nic + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__empty - schema: - type: boolean - - in: query - name: domain__ic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__ie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__iew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -50146,7 +49000,11 @@ paths: explode: true style: form - in: query - name: domain__isw + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -50154,7 +49012,7 @@ paths: explode: true style: form - in: query - name: domain__n + name: description__ie schema: type: array items: @@ -50162,7 +49020,7 @@ paths: explode: true style: form - in: query - name: domain__nic + name: description__iew schema: type: array items: @@ -50170,7 +49028,7 @@ paths: explode: true style: form - in: query - name: domain__nie + name: description__isw schema: type: array items: @@ -50178,7 +49036,7 @@ paths: explode: true style: form - in: query - name: domain__niew + name: description__n schema: type: array items: @@ -50186,7 +49044,7 @@ paths: explode: true style: form - in: query - name: domain__nisw + name: description__nic schema: type: array items: @@ -50194,174 +49052,159 @@ paths: explode: true style: form - in: query - name: id + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__lte + name: device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__n + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: last_updated + name: device_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_role schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__gt + name: device_role__n schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__gte + name: device_role_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__lt + name: device_role_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__lte + name: device_status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__n + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: master + name: device_type schema: type: array items: type: string - nullable: true - description: Master (name) + description: Device type (model) explode: true style: form - in: query - name: master__n + name: device_type__n schema: type: array items: type: string - nullable: true - description: Master (name) + description: Device type (model) explode: true style: form - in: query - name: master_id + name: device_type_id schema: type: array items: type: integer - nullable: true - description: Master (ID) + description: Device type (ID) explode: true style: form - in: query - name: master_id__n + name: device_type_id__n schema: type: array items: type: integer - nullable: true - description: Master (ID) + description: Device type (ID) explode: true style: form - in: query - name: member_count + name: id schema: type: array items: @@ -50370,11 +49213,11 @@ paths: explode: true style: form - in: query - name: member_count__empty + name: id__empty schema: type: boolean - in: query - name: member_count__gt + name: id__gt schema: type: array items: @@ -50383,7 +49226,7 @@ paths: explode: true style: form - in: query - name: member_count__gte + name: id__gte schema: type: array items: @@ -50392,7 +49235,7 @@ paths: explode: true style: form - in: query - name: member_count__lt + name: id__lt schema: type: array items: @@ -50401,7 +49244,7 @@ paths: explode: true style: form - in: query - name: member_count__lte + name: id__lte schema: type: array items: @@ -50410,7 +49253,7 @@ paths: explode: true style: form - in: query - name: member_count__n + name: id__n schema: type: array items: @@ -50419,12 +49262,7 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: label schema: type: array items: @@ -50432,11 +49270,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -50444,7 +49282,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -50452,7 +49290,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -50460,7 +49298,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -50468,7 +49306,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -50476,7 +49314,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -50484,7 +49322,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -50492,7 +49330,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -50500,64 +49338,376 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: region + name: last_updated schema: type: array items: - type: integer - description: Region (slug) + type: string + format: date-time explode: true style: form - in: query - name: region__n + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id schema: type: array items: type: integer - description: Region (slug) + description: Location (ID) explode: true style: form - in: query - name: region_id + name: location_id__n schema: type: array items: type: integer - description: Region (ID) + description: Location (ID) explode: true style: form - in: query - name: region_id__n + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: positions + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__empty + schema: + type: boolean + - in: query + name: positions__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: 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: Region (ID) + 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 @@ -50583,8 +49733,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -50592,8 +49741,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -50601,8 +49749,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -50610,8 +49757,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -50649,46 +49795,64 @@ paths: explode: true style: form - in: query - name: tenant + name: type schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tenant__n + name: type__n schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tenant_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis schema: type: array items: - type: integer - description: Tenant (ID) + type: string + description: Virtual Chassis explode: true style: form - in: query - name: tenant_id__n + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id schema: type: array items: type: integer - description: Tenant (ID) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: updated_by_request + name: virtual_chassis_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -50699,21 +49863,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' + $ref: '#/components/schemas/PaginatedRearPortList' description: '' post: - operationId: dcim_virtual_chassis_create - description: Post a list of virtual chassis objects. + operationId: dcim_rear_ports_create + description: Post a list of rear port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -50723,11 +49887,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_virtual_chassis_bulk_update - description: Put a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_update + description: Put a list of rear port objects. tags: - dcim requestBody: @@ -50736,12 +49900,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50753,11 +49917,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: Patch a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_partial_update + description: Patch a list of rear port objects. tags: - dcim requestBody: @@ -50766,12 +49930,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50783,11 +49947,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: Delete a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_destroy + description: Delete a list of rear port objects. tags: - dcim requestBody: @@ -50796,12 +49960,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50809,16 +49973,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/{id}/: + /api/dcim/rear-ports/{id}/: get: - operationId: dcim_virtual_chassis_retrieve - description: Get a virtual chassis object. + operationId: dcim_rear_ports_retrieve + description: Get a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50830,17 +49994,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_virtual_chassis_update - description: Put a virtual chassis object. + operationId: dcim_rear_ports_update + description: Put a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50848,10 +50012,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -50861,17 +50025,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_virtual_chassis_partial_update - description: Patch a virtual chassis object. + operationId: dcim_rear_ports_partial_update + description: Patch a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50879,10 +50043,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50891,17 +50055,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_virtual_chassis_destroy - description: Delete a virtual chassis object. + operationId: dcim_rear_ports_destroy + description: Delete a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50911,81 +50075,94 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/: + /api/dcim/rear-ports/{id}/paths/: get: - operationId: dcim_virtual_device_contexts_list - description: Get a list of virtual device context objects. + operationId: dcim_rear_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rear port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPort' + description: '' + /api/dcim/regions/: + get: + operationId: dcim_regions_list + description: Get a list of region objects. parameters: - in: query - name: created + name: ancestor schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: ancestor__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: ancestor_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: ancestor_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: contact_group__n schema: type: array items: @@ -50993,182 +50170,177 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: description__ie + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: description__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device_id + name: description__ie schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__iew schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier + name: id schema: type: array items: @@ -51177,11 +50349,11 @@ paths: explode: true style: form - in: query - name: identifier__empty + name: id__empty schema: type: boolean - in: query - name: identifier__gt + name: id__gt schema: type: array items: @@ -51190,7 +50362,7 @@ paths: explode: true style: form - in: query - name: identifier__gte + name: id__gte schema: type: array items: @@ -51199,7 +50371,7 @@ paths: explode: true style: form - in: query - name: identifier__lt + name: id__lt schema: type: array items: @@ -51208,7 +50380,7 @@ paths: explode: true style: form - in: query - name: identifier__lte + name: id__lte schema: type: array items: @@ -51217,7 +50389,7 @@ paths: explode: true style: form - in: query - name: identifier__n + name: id__n schema: type: array items: @@ -51225,24 +50397,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -51414,39 +50568,41 @@ paths: schema: type: string - in: query - name: primary_ip4_id + name: parent schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string + description: Parent region (slug) explode: true style: form - in: query - name: primary_ip4_id__n + name: parent__n schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string + description: Parent region (slug) explode: true style: form - in: query - name: primary_ip6_id + name: parent_id schema: type: array items: type: integer - description: Primary IPv6 (ID) + nullable: true + description: Parent region (ID) explode: true style: form - in: query - name: primary_ip6_id__n + name: parent_id__n schema: type: array items: type: integer - description: Primary IPv6 (ID) + nullable: true + description: Parent region (ID) explode: true style: form - in: query @@ -51455,25 +50611,27 @@ paths: type: string description: Search - in: query - name: status + name: slug schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -51481,7 +50639,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -51489,77 +50647,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -51577,21 +50725,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' + $ref: '#/components/schemas/PaginatedRegionList' description: '' post: - operationId: dcim_virtual_device_contexts_create - description: Post a list of virtual device context objects. + operationId: dcim_regions_create + description: Post a list of region objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -51601,11 +50749,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' put: - operationId: dcim_virtual_device_contexts_bulk_update - description: Put a list of virtual device context objects. + operationId: dcim_regions_bulk_update + description: Put a list of region objects. tags: - dcim requestBody: @@ -51614,12 +50762,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51631,11 +50779,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: dcim_virtual_device_contexts_bulk_partial_update - description: Patch a list of virtual device context objects. + operationId: dcim_regions_bulk_partial_update + description: Patch a list of region objects. tags: - dcim requestBody: @@ -51644,12 +50792,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51661,11 +50809,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: dcim_virtual_device_contexts_bulk_destroy - description: Delete a list of virtual device context objects. + operationId: dcim_regions_bulk_destroy + description: Delete a list of region objects. tags: - dcim requestBody: @@ -51674,12 +50822,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51687,16 +50835,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/{id}/: + /api/dcim/regions/{id}/: get: - operationId: dcim_virtual_device_contexts_retrieve - description: Get a virtual device context object. + operationId: dcim_regions_retrieve + description: Get a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51708,17 +50856,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' put: - operationId: dcim_virtual_device_contexts_update - description: Put a virtual device context object. + operationId: dcim_regions_update + description: Put a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51726,10 +50874,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -51739,17 +50887,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: dcim_virtual_device_contexts_partial_update - description: Patch a virtual device context object. + operationId: dcim_regions_partial_update + description: Patch a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51757,10 +50905,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -51769,17 +50917,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: dcim_virtual_device_contexts_destroy - description: Delete a virtual device context object. + operationId: dcim_regions_destroy + description: Delete a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51789,282 +50937,648 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/: + /api/dcim/site-groups/: get: - operationId: extras_bookmarks_list - description: Get a list of bookmark objects. + operationId: dcim_site_groups_list + description: Get a list of site group objects. parameters: - in: query - name: created + name: ancestor schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: id + name: ancestor__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: ancestor_id schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__lt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__lte + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: contact_role schema: - type: integer + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query - name: object_id + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: object_id__empty + name: created schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_type + name: created__n schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__n + name: created_by_request schema: type: string + format: uuid - in: query - name: object_type_id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__gt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__gte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__lt + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__lte + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__n + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: description__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: description__niew schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: description__nisw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: id schema: type: array items: type: integer - description: User (ID) + format: int32 explode: true style: form - in: query - name: user_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: User (ID) + format: int32 explode: true style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent + schema: + type: array + items: + type: string + description: Parent site group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent site group (slug) + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent site group (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent site group (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedBookmarkList' - description: '' - post: - operationId: extras_bookmarks_create - description: Post a list of bookmark objects. - tags: - - extras + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedSiteGroupList' + description: '' + post: + operationId: dcim_site_groups_create + description: Post a list of site group objects. + tags: + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -52074,25 +51588,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_bookmarks_bulk_update - description: Put a list of bookmark objects. + operationId: dcim_site_groups_bulk_update + description: Put a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52104,25 +51618,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_bookmarks_bulk_partial_update - description: Patch a list of bookmark objects. + operationId: dcim_site_groups_bulk_partial_update + description: Patch a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52134,25 +51648,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_bookmarks_bulk_destroy - description: Delete a list of bookmark objects. + operationId: dcim_site_groups_bulk_destroy + description: Delete a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52160,19 +51674,19 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/{id}/: + /api/dcim/site-groups/{id}/: get: - operationId: extras_bookmarks_retrieve - description: Get a bookmark object. + operationId: dcim_site_groups_retrieve + description: Get a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -52181,28 +51695,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_bookmarks_update - description: Put a bookmark object. + operationId: dcim_site_groups_update + description: Put a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -52212,28 +51726,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_bookmarks_partial_update - description: Patch a bookmark object. + operationId: dcim_site_groups_partial_update + description: Patch a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -52242,123 +51756,123 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_bookmarks_destroy - description: Delete a bookmark object. + operationId: dcim_site_groups_destroy + description: Delete a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-contexts/: + /api/dcim/sites/: get: - operationId: extras_config_contexts_list - description: Get a list of config context objects. + operationId: dcim_sites_list + description: Get a list of site objects. parameters: - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: cluster_group + name: asn schema: type: array items: - type: string - description: Cluster group (slug) + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: cluster_group__n + name: asn__n schema: type: array items: - type: string - description: Cluster group (slug) + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: cluster_group_id + name: asn_id schema: type: array items: type: integer - description: Cluster group + description: AS (ID) explode: true style: form - in: query - name: cluster_group_id__n + name: asn_id__n schema: type: array items: type: integer - description: Cluster group + description: AS (ID) explode: true style: form - in: query - name: cluster_id + name: contact schema: type: array items: type: integer - description: Cluster + description: Contact explode: true style: form - in: query - name: cluster_id__n + name: contact__n schema: type: array items: type: integer - description: Cluster + description: Contact explode: true style: form - in: query - name: cluster_type + name: contact_group schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: contact_group__n schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type_id + name: contact_role schema: type: array items: type: integer - description: Cluster type + description: Contact Role explode: true style: form - in: query - name: cluster_type_id__n + name: contact_role__n schema: type: array items: type: integer - description: Cluster type + description: Contact Role explode: true style: form - in: query @@ -52430,105 +51944,83 @@ paths: type: string format: uuid - in: query - name: data_file_id + name: description schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: description__empty schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form + type: boolean - in: query - name: data_source_id + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_source_id__n + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_synced + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: description__nisw schema: type: array items: @@ -52536,11 +52028,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: facility schema: type: array items: @@ -52548,15 +52036,11 @@ paths: explode: true style: form - in: query - name: description__ie + name: facility__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__iew + name: facility__ic schema: type: array items: @@ -52564,7 +52048,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: facility__ie schema: type: array items: @@ -52572,7 +52056,7 @@ paths: explode: true style: form - in: query - name: description__n + name: facility__iew schema: type: array items: @@ -52580,7 +52064,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: facility__isw schema: type: array items: @@ -52588,7 +52072,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: facility__n schema: type: array items: @@ -52596,7 +52080,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: facility__nic schema: type: array items: @@ -52604,7 +52088,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: facility__nie schema: type: array items: @@ -52612,57 +52096,51 @@ paths: explode: true style: form - in: query - name: device_role + name: facility__niew schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role__n + name: facility__nisw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role_id + name: group schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_role_id__n + name: group__n schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_type_id + name: group_id schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query - name: device_type_id__n + name: group_id__n schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query @@ -52723,10 +52201,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_active - schema: - type: boolean - in: query name: last_updated schema: @@ -52790,6 +52264,64 @@ paths: format: date-time explode: true style: form + - in: query + name: latitude + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form - name: limit required: false in: query @@ -52797,39 +52329,61 @@ paths: schema: type: integer - in: query - name: location + name: longitude schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location__n + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location_id + name: longitude__gte schema: type: array items: - type: integer - description: Location + type: number + format: double explode: true style: form - in: query - name: location_id__n + name: longitude__lt schema: type: array items: - type: integer - description: Location + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__n + schema: + type: array + items: + type: number + format: double explode: true style: form - in: query @@ -52933,42 +52487,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform__n - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: integer - description: Platform - explode: true - style: form - - in: query - name: platform_id__n - schema: - type: array - items: - type: integer - description: Platform - explode: true - style: form - in: query name: q schema: @@ -52980,7 +52498,6 @@ paths: type: array items: type: string - description: Region (slug) explode: true style: form - in: query @@ -52989,7 +52506,6 @@ paths: type: array items: type: string - description: Region (slug) explode: true style: form - in: query @@ -52997,8 +52513,7 @@ paths: schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query @@ -53006,116 +52521,109 @@ paths: schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query - name: role + name: slug schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: slug__ie schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: role_id__n + name: slug__iew schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: type: string - description: Site group (slug) explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: type: string - description: Site group (slug) explode: true style: form - in: query - name: site_group_id + name: slug__niew schema: type: array items: - type: integer - description: Site group + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Site group + type: string explode: true style: form - in: query - name: site_id + name: status schema: type: array items: - type: integer - description: Site + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_id__n + name: status__n schema: type: array items: - type: integer - description: Site + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query @@ -53124,7 +52632,6 @@ paths: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query @@ -53133,164 +52640,165 @@ paths: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag_id + name: tenant schema: type: array items: - type: integer - description: Tag + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag_id__n + name: tenant__n schema: type: array items: - type: integer - description: Tag + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tenant + name: tenant_group schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tenant_group__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: tenant_group_id schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group__n + name: tenant_group_id__n schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id + name: tenant_id schema: type: array items: type: integer - description: Tenant group + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tenant_group_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Tenant group + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tenant_id + name: time_zone schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: tenant_id__n + name: time_zone__ic schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: updated_by_request + name: time_zone__ie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: weight + name: time_zone__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__empty + name: time_zone__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: weight__gt + name: time_zone__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__gte + name: time_zone__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lt + name: time_zone__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: time_zone__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: time_zone__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53299,21 +52807,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigContextList' + $ref: '#/components/schemas/PaginatedSiteList' description: '' post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. + operationId: dcim_sites_create + description: Post a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -53323,25 +52831,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. + operationId: dcim_sites_bulk_update + description: Put a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53353,25 +52861,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. + operationId: dcim_sites_bulk_partial_update + description: Patch a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53383,25 +52891,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. + operationId: dcim_sites_bulk_destroy + description: Delete a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53409,19 +52917,19 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/: + /api/dcim/sites/{id}/: get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. + operationId: dcim_sites_retrieve + description: Get a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53430,28 +52938,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' put: - operationId: extras_config_contexts_update - description: Put a config context object. + operationId: dcim_sites_update + description: Put a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -53461,28 +52969,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. + operationId: dcim_sites_partial_update + description: Patch a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -53491,68 +52999,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. + operationId: dcim_sites_destroy + description: Delete a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-contexts/{id}/sync/: - post: - operationId: extras_config_contexts_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - /api/extras/config-templates/: + /api/dcim/virtual-chassis/: get: - operationId: extras_config_templates_list - description: Get a list of config template objects. + operationId: dcim_virtual_chassis_list + description: Get a list of virtual chassis objects. parameters: - - in: query - name: auto_sync_enabled - schema: - type: boolean - in: query name: created schema: @@ -53622,105 +53093,91 @@ paths: type: string format: uuid - in: query - name: data_file_id + name: description schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_source_id + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_source_id__n + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_synced + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: domain schema: type: array items: @@ -53728,11 +53185,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: domain__empty schema: type: boolean - in: query - name: description__ic + name: domain__ic schema: type: array items: @@ -53740,7 +53197,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: domain__ie schema: type: array items: @@ -53748,7 +53205,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: domain__iew schema: type: array items: @@ -53756,7 +53213,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: domain__isw schema: type: array items: @@ -53764,7 +53221,7 @@ paths: explode: true style: form - in: query - name: description__n + name: domain__n schema: type: array items: @@ -53772,7 +53229,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: domain__nic schema: type: array items: @@ -53780,7 +53237,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: domain__nie schema: type: array items: @@ -53788,7 +53245,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: domain__niew schema: type: array items: @@ -53796,7 +53253,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: domain__nisw schema: type: array items: @@ -53930,6 +53387,104 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: master + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master__n + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master_id + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: master_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: member_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__empty + schema: + type: boolean + - in: query + name: member_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: @@ -54036,6 +53591,106 @@ paths: schema: type: string description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query name: tag schema: @@ -54052,13 +53707,49 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54067,21 +53758,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' + $ref: '#/components/schemas/PaginatedVirtualChassisList' description: '' post: - operationId: extras_config_templates_create - description: Post a list of config template objects. + operationId: dcim_virtual_chassis_create + description: Post a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54091,25 +53782,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. + operationId: dcim_virtual_chassis_bulk_update + description: Put a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54121,25 +53812,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. + operationId: dcim_virtual_chassis_bulk_partial_update + description: Patch a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54151,25 +53842,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. + operationId: dcim_virtual_chassis_bulk_destroy + description: Delete a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54177,19 +53868,19 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/: + /api/dcim/virtual-chassis/{id}/: get: - operationId: extras_config_templates_retrieve - description: Get a config template object. + operationId: dcim_virtual_chassis_retrieve + description: Get a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54198,28 +53889,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_config_templates_update - description: Put a config template object. + operationId: dcim_virtual_chassis_update + description: Put a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54229,28 +53920,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_config_templates_partial_update - description: Patch a config template object. + operationId: dcim_virtual_chassis_partial_update + description: Patch a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -54259,151 +53950,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_config_templates_destroy - description: Delete a config template object. + operationId: dcim_virtual_chassis_destroy + description: Delete a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-templates/{id}/render/: - post: - operationId: extras_config_templates_render_create - description: 'Render a ConfigTemplate using the context data provided (if any). - If the client requests "text/plain" data, - - return the raw rendered content, rather than serialized JSON.' - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - text/plain: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/config-templates/{id}/sync/: - post: - operationId: extras_config_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/custom-field-choice-sets/: + /api/dcim/virtual-device-contexts/: get: - operationId: extras_custom_field_choice_sets_list - description: Get a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_list + description: Get a list of virtual device context objects. parameters: - - in: query - name: base_choices - schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - - in: query - name: base_choices__n - schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - - in: query - name: choice - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -54556,6 +54127,47 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: integer + description: Device model + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: integer + description: Device model + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: VDC (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: VDC (ID) + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP - in: query name: id schema: @@ -54614,6 +54226,82 @@ paths: format: int32 explode: true style: form + - in: query + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -54778,28 +54466,164 @@ paths: description: The initial index from which to return the results. schema: type: integer - - in: query - name: order_alphabetically - schema: - type: boolean - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string + - in: query + name: primary_ip4_id + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip4_id__n + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: ee1ef02def7a91ab + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: ee1ef02def7a91ab + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54808,21 +54632,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' + $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' description: '' post: - operationId: extras_custom_field_choice_sets_create - description: Post a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_create + description: Post a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54832,25 +54656,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_custom_field_choice_sets_bulk_update - description: Put a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_update + description: Put a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54862,25 +54686,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_custom_field_choice_sets_bulk_partial_update - description: Patch a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_partial_update + description: Patch a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54892,25 +54716,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_custom_field_choice_sets_bulk_destroy - description: Delete a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_destroy + description: Delete a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54918,19 +54742,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/: + /api/dcim/virtual-device-contexts/{id}/: get: - operationId: extras_custom_field_choice_sets_retrieve - description: Get a custom field choice set object. + operationId: dcim_virtual_device_contexts_retrieve + description: Get a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54939,28 +54763,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_custom_field_choice_sets_update - description: Put a custom field choice set object. + operationId: dcim_virtual_device_contexts_update + description: Put a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54970,28 +54794,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_custom_field_choice_sets_partial_update - description: Patch a custom field choice set object. + operationId: dcim_virtual_device_contexts_partial_update + description: Patch a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -55000,460 +54824,766 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_custom_field_choice_sets_destroy - description: Delete a custom field choice set object. + operationId: dcim_virtual_device_contexts_destroy + description: Delete a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/choices/: + /api/extras/bookmarks/: get: - operationId: extras_custom_field_choice_sets_choices_retrieve - description: Provides an endpoint to iterate through each choice in a set. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - - in: path - name: id + - in: query + name: created schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - /api/extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. - parameters: + type: string + format: date-time - in: query - name: choice_set + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: choice_set__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: choice_set_id + name: id__gte schema: type: array items: type: integer - nullable: true + format: int32 explode: true style: form - in: query - name: choice_set_id__n + name: id__lt schema: type: array items: type: integer - nullable: true + format: int32 explode: true style: form - in: query - name: created + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created__gt + name: object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type schema: type: string - format: uuid - in: query - name: description + name: object_type__n + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: object_type_id__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: object_type_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: object_type_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: object_type_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: object_type_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: object_type_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: description__nic + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nie + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__niew + name: user_id + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBookmarkList' + description: '' + post: + operationId: extras_bookmarks_create + description: Post a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_bulk_update + description: Put a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_bulk_partial_update + description: Patch a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_bulk_destroy + description: Delete a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/bookmarks/{id}/: + get: + operationId: extras_bookmarks_retrieve + description: Get a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_update + description: Put a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_partial_update + description: Patch a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_destroy + description: Delete a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/: + get: + operationId: extras_config_contexts_list + description: Get a list of config context objects. + parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: cluster_group schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: description__nisw + name: cluster_group__n schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: filter_logic + name: cluster_group_id schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' + type: array + items: + type: integer + description: Cluster group + explode: true + style: form - in: query - name: filter_logic__n + name: cluster_group_id__n schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' + type: array + items: + type: integer + description: Cluster group + explode: true + style: form - in: query - name: group_name + name: cluster_id schema: type: array items: - type: string + type: integer + description: Cluster explode: true style: form - in: query - name: group_name__empty + name: cluster_id__n schema: - type: boolean + type: array + items: + type: integer + description: Cluster + explode: true + style: form - in: query - name: group_name__ic + name: cluster_type schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: group_name__ie + name: cluster_type__n schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: group_name__iew + name: cluster_type_id schema: type: array items: - type: string + type: integer + description: Cluster type explode: true style: form - in: query - name: group_name__isw + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type + explode: true + style: form + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: id + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: id__gt + name: data_file_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__gte + name: data_file_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__lt + name: data_source_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__lte + name: data_source_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__n + name: data_synced schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_cloneable + name: data_synced__empty schema: type: boolean - in: query - name: label + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: data_synced__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: label__ic + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: description schema: type: array items: @@ -55461,7 +55591,11 @@ paths: explode: true style: form - in: query - name: label__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -55469,7 +55603,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: description__ie schema: type: array items: @@ -55477,7 +55611,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__iew schema: type: array items: @@ -55485,7 +55619,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__isw schema: type: array items: @@ -55493,7 +55627,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__n schema: type: array items: @@ -55501,617 +55635,621 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: device_role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__lte + name: device_role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__n + name: device_role_id schema: type: array items: - type: string - format: date-time + type: integer + description: Role explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: device_role_id__n schema: - type: integer + type: array + items: + type: integer + description: Role + explode: true + style: form - in: query - name: modified_by_request + name: device_type_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Device type + explode: true + style: form - in: query - name: name + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type explode: true style: form - in: query - name: name__empty + 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: name__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: is_active + schema: + type: boolean + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time 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 + name: last_updated__lt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type_id + name: last_updated__lte schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: object_type_id__n + name: last_updated__n schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: related_object_type + name: location schema: - type: string + type: array + items: + type: string + description: Location (slug) + explode: true + style: form - in: query - name: related_object_type__n + name: location__n schema: - type: string + type: array + items: + type: string + description: Location (slug) + explode: true + style: form - in: query - name: related_object_type_id + name: location_id schema: type: array items: type: integer + description: Location explode: true style: form - in: query - name: related_object_type_id__n + name: location_id__n schema: type: array items: type: integer + description: Location explode: true style: form - in: query - name: required + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: search_weight + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__empty + name: name__empty schema: type: boolean - in: query - name: search_weight__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: type + name: name__nic schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds explode: true style: form - in: query - name: type__n + name: name__nie schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds explode: true style: form - in: query - name: ui_editable + name: name__niew schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' + type: array + items: + type: string + explode: true + style: form - in: query - name: ui_editable__n + 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 - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' - in: query - name: ui_visible + name: platform schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: ui_visible__n + name: platform__n schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: updated_by_request + name: platform_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Platform + explode: true + style: form - in: query - name: validation_maximum + name: platform_id__n schema: type: array items: type: integer - format: int32 + description: Platform explode: true style: form - in: query - name: validation_maximum__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: validation_maximum__gt + name: region schema: type: array items: - type: integer - format: int32 + type: string + description: Region (slug) explode: true style: form - in: query - name: validation_maximum__gte + name: region__n schema: type: array items: - type: integer - format: int32 + type: string + description: Region (slug) explode: true style: form - in: query - name: validation_maximum__lt + name: region_id schema: type: array items: type: integer - format: int32 + description: Region explode: true style: form - in: query - name: validation_maximum__lte + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region explode: true style: form - in: query - name: validation_maximum__n + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: validation_minimum + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: validation_minimum__empty + name: site_group schema: - type: boolean + type: array + items: + type: string + description: Site group (slug) + explode: true + style: form - in: query - name: validation_minimum__gt + name: site_group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site group (slug) explode: true style: form - in: query - name: validation_minimum__gte + name: site_group_id schema: type: array items: type: integer - format: int32 + description: Site group explode: true style: form - in: query - name: validation_minimum__lt + name: site_group_id__n schema: type: array items: type: integer - format: int32 + description: Site group explode: true style: form - in: query - name: validation_minimum__lte + name: site_id schema: type: array items: type: integer - format: int32 + description: Site explode: true style: form - in: query - name: validation_minimum__n + name: site_id__n schema: type: array items: type: integer - format: int32 + description: Site explode: true style: form - in: query - name: validation_regex + name: tag schema: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: validation_regex__empty + name: tag__n schema: - type: boolean + type: array + items: + type: string + description: Tag (slug) + explode: true + style: form - in: query - name: validation_regex__ic + name: tag_id schema: type: array items: - type: string + type: integer + description: Tag explode: true style: form - in: query - name: validation_regex__ie + name: tag_id__n schema: type: array items: - type: string + type: integer + description: Tag explode: true style: form - in: query - name: validation_regex__iew + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: validation_regex__isw + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: validation_regex__n + name: tenant_group schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: validation_regex__nic + name: tenant_group__n schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: validation_regex__nie + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant group explode: true style: form - in: query - name: validation_regex__niew + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant group explode: true style: form - in: query - name: validation_regex__nisw + name: tenant_id schema: type: array items: - type: string + type: integer + description: Tenant explode: true style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid - in: query name: weight schema: @@ -56180,21 +56318,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldList' + $ref: '#/components/schemas/PaginatedConfigContextList' description: '' post: - operationId: extras_custom_fields_create - description: Post a list of custom field objects. + operationId: extras_config_contexts_create + description: Post a list of config context objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56204,11 +56342,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_custom_fields_bulk_update - description: Put a list of custom field objects. + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. tags: - extras requestBody: @@ -56217,12 +56355,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56234,11 +56372,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_custom_fields_bulk_partial_update - description: Patch a list of custom field objects. + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. tags: - extras requestBody: @@ -56247,12 +56385,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56264,11 +56402,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_custom_fields_bulk_destroy - description: Delete a list of custom field objects. + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. tags: - extras requestBody: @@ -56277,12 +56415,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56290,16 +56428,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-fields/{id}/: + /api/extras/config-contexts/{id}/: get: - operationId: extras_custom_fields_retrieve - description: Get a custom field object. + operationId: extras_config_contexts_retrieve + description: Get a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56311,17 +56449,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_custom_fields_update - description: Put a custom field object. + operationId: extras_config_contexts_update + description: Put a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56329,10 +56467,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56342,17 +56480,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_custom_fields_partial_update - description: Patch a custom field object. + operationId: extras_config_contexts_partial_update + description: Patch a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56360,10 +56498,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -56372,17 +56510,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_custom_fields_destroy - description: Delete a custom field object. + operationId: extras_config_contexts_destroy + description: Delete a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56392,119 +56530,48 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/: - get: - operationId: extras_custom_links_list - description: Get a list of custom link objects. + /api/extras/config-contexts/{id}/sync/: + post: + operationId: extras_config_contexts_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). parameters: - - in: query - name: button_class + - in: path + name: id schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: + get: + operationId: extras_config_templates_list + description: Get a list of config template objects. + parameters: - in: query - name: button_class__n + name: auto_sync_enabled schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: boolean - in: query name: created schema: @@ -56574,23 +56641,117 @@ paths: type: string format: uuid - in: query - name: enabled + name: data_file_id + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_file_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_source_id + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_source_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_synced + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__empty schema: type: boolean - in: query - name: group_name + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__empty + name: data_synced__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: group_name__ic + name: description__ic schema: type: array items: @@ -56598,7 +56759,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: description__ie schema: type: array items: @@ -56606,7 +56767,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: description__iew schema: type: array items: @@ -56614,7 +56775,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: description__isw schema: type: array items: @@ -56622,7 +56783,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: description__n schema: type: array items: @@ -56630,7 +56791,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: description__nic schema: type: array items: @@ -56638,7 +56799,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: description__nie schema: type: array items: @@ -56646,7 +56807,7 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: description__niew schema: type: array items: @@ -56654,7 +56815,7 @@ paths: explode: true style: form - in: query - name: group_name__nisw + name: description__nisw schema: type: array items: @@ -56788,86 +56949,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: link_text - schema: - type: string - - in: query - name: link_text__ic - schema: - type: string - - in: query - name: link_text__ie - schema: - type: string - - in: query - name: link_text__iew - schema: - type: string - - in: query - name: link_text__isw - schema: - type: string - - in: query - name: link_text__n - schema: - type: string - - in: query - name: link_text__nic - schema: - type: string - - in: query - name: link_text__nie - schema: - type: string - - in: query - name: link_text__niew - schema: - type: string - - in: query - name: link_text__nisw - schema: - type: string - - in: query - name: link_url - schema: - type: string - - in: query - name: link_url__ic - schema: - type: string - - in: query - name: link_url__ie - schema: - type: string - - in: query - name: link_url__iew - schema: - type: string - - in: query - name: link_url__isw - schema: - type: string - - in: query - name: link_url__n - schema: - type: string - - in: query - name: link_url__nic - schema: - type: string - - in: query - name: link_url__nie - schema: - type: string - - in: query - name: link_url__niew - schema: - type: string - - in: query - name: link_url__nisw - schema: - type: string - in: query name: modified_by_request schema: @@ -56957,66 +57038,6 @@ paths: type: string explode: true style: form - - in: query - name: new_window - schema: - type: boolean - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query @@ -57035,68 +57056,26 @@ paths: type: string description: Search - in: query - name: updated_by_request - 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 + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - extras security: @@ -57107,21 +57086,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: extras_custom_links_create - description: Post a list of custom link objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57131,11 +57110,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_custom_links_bulk_update - description: Put a list of custom link objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - extras requestBody: @@ -57144,12 +57123,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57161,11 +57140,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_custom_links_bulk_partial_update - description: Patch a list of custom link objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - extras requestBody: @@ -57174,12 +57153,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57191,11 +57170,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_custom_links_bulk_destroy - description: Delete a list of custom link objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - extras requestBody: @@ -57204,12 +57183,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57217,16 +57196,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: extras_custom_links_retrieve - description: Get a custom link object. + operationId: extras_config_templates_retrieve + description: Get a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57238,17 +57217,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_custom_links_update - description: Put a custom link object. + operationId: extras_config_templates_update + description: Put a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57256,10 +57235,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57269,17 +57248,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_custom_links_partial_update - description: Patch a custom link object. + operationId: extras_config_templates_partial_update + description: Patch a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57287,10 +57266,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57299,17 +57278,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_custom_links_destroy - description: Delete a custom link object. + operationId: extras_config_templates_destroy + description: Delete a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57319,35 +57298,38 @@ paths: responses: '204': description: No response body - /api/extras/dashboard/: - get: - operationId: extras_dashboard_retrieve - description: Get a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - put: - operationId: extras_dashboard_update - description: Put a list of dashboard objects. + /api/extras/config-templates/{id}/render/: + post: + operationId: extras_config_templates_render_create + description: 'Render a ConfigTemplate using the context data provided (if any). + If the client requests "text/plain" data, + + return the raw rendered content, rather than serialized JSON.' + parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/DashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -57356,21 +57338,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/ConfigTemplate' + text/plain: + schema: + $ref: '#/components/schemas/ConfigTemplate' description: '' - patch: - operationId: extras_dashboard_partial_update - description: Patch a list of dashboard objects. + /api/extras/config-templates/{id}/sync/: + post: + operationId: extras_config_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -57379,111 +57374,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/ConfigTemplate' description: '' - delete: - operationId: extras_dashboard_destroy - description: Delete a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/: + /api/extras/custom-field-choice-sets/: get: - operationId: extras_event_rules_list - description: Get a list of event rule objects. + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. parameters: - in: query - name: action_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_type + name: base_choices schema: type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: action_object_type__n + name: base_choices__n schema: type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: action_type - schema: - type: array - items: - type: string - x-spec-enum-id: a08300d86473de6e - explode: true - style: form - - in: query - name: action_type__n + name: choice schema: type: array items: type: string - x-spec-enum-id: a08300d86473de6e explode: true style: form - in: query @@ -57638,10 +57575,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -57858,68 +57791,16 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer + - in: query + name: order_alphabetically + schema: + type: boolean - name: ordering required: false in: query @@ -57931,42 +57812,6 @@ paths: schema: type: string description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type_create - schema: - type: boolean - - in: query - name: type_delete - schema: - type: boolean - - in: query - name: type_job_end - schema: - type: boolean - - in: query - name: type_job_start - schema: - type: boolean - - in: query - name: type_update - schema: - type: boolean - in: query name: updated_by_request schema: @@ -57982,21 +57827,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEventRuleList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: extras_event_rules_create - description: Post a list of event rule objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58006,11 +57851,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_event_rules_bulk_update - description: Put a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - extras requestBody: @@ -58019,12 +57864,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58036,11 +57881,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_event_rules_bulk_partial_update - description: Patch a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - extras requestBody: @@ -58049,12 +57894,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58066,11 +57911,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_event_rules_bulk_destroy - description: Delete a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - extras requestBody: @@ -58079,12 +57924,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58092,16 +57937,16 @@ paths: responses: '204': description: No response body - /api/extras/event-rules/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: extras_event_rules_retrieve - description: Get a event rule object. + operationId: extras_custom_field_choice_sets_retrieve + description: Get a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58113,17 +57958,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_event_rules_update - description: Put a event rule object. + operationId: extras_custom_field_choice_sets_update + description: Put a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58131,10 +57976,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58144,17 +57989,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_event_rules_partial_update - description: Patch a event rule object. + operationId: extras_custom_field_choice_sets_partial_update + description: Patch a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58162,10 +58007,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -58174,17 +58019,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_event_rules_destroy - description: Delete a event rule object. + operationId: extras_custom_field_choice_sets_destroy + description: Delete a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58194,57 +58039,70 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/: + /api/extras/custom-field-choice-sets/{id}/choices/: get: - operationId: extras_export_templates_list - description: Get a list of export template objects. + operationId: extras_custom_field_choice_sets_choices_retrieve + description: Provides an endpoint to iterate through each choice in a set. parameters: - - in: query - name: as_attachment - schema: - type: boolean - - in: query - name: auto_sync_enabled + - in: path + name: id schema: - type: boolean + type: integer + description: A unique integer value identifying this custom field choice set. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldChoiceSet' + description: '' + /api/extras/custom-fields/: + get: + operationId: extras_custom_fields_list + description: Get a list of custom field objects. + parameters: - in: query - name: created + name: choice_set schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: choice_set__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: choice_set_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true explode: true style: form - in: query - name: created__gte + name: choice_set_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true explode: true style: form - in: query - name: created__lt + name: created schema: type: array items: @@ -58253,7 +58111,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: created__empty schema: type: array items: @@ -58262,7 +58120,7 @@ paths: explode: true style: form - in: query - name: created__n + name: created__gt schema: type: array items: @@ -58271,65 +58129,7 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: data_file_id - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_file_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_source_id - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_source_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: created__gte schema: type: array items: @@ -58338,7 +58138,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__lt schema: type: array items: @@ -58347,7 +58147,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lte schema: type: array items: @@ -58356,7 +58156,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__n schema: type: array items: @@ -58365,14 +58165,10 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query name: description schema: @@ -58458,7 +58254,43 @@ paths: explode: true style: form - in: query - name: file_extension + name: filter_logic + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: filter_logic__n + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: group_name schema: type: array items: @@ -58466,11 +58298,11 @@ paths: explode: true style: form - in: query - name: file_extension__empty + name: group_name__empty schema: type: boolean - in: query - name: file_extension__ic + name: group_name__ic schema: type: array items: @@ -58478,7 +58310,7 @@ paths: explode: true style: form - in: query - name: file_extension__ie + name: group_name__ie schema: type: array items: @@ -58486,7 +58318,7 @@ paths: explode: true style: form - in: query - name: file_extension__iew + name: group_name__iew schema: type: array items: @@ -58494,7 +58326,7 @@ paths: explode: true style: form - in: query - name: file_extension__isw + name: group_name__isw schema: type: array items: @@ -58502,7 +58334,7 @@ paths: explode: true style: form - in: query - name: file_extension__n + name: group_name__n schema: type: array items: @@ -58510,7 +58342,7 @@ paths: explode: true style: form - in: query - name: file_extension__nic + name: group_name__nic schema: type: array items: @@ -58518,7 +58350,7 @@ paths: explode: true style: form - in: query - name: file_extension__nie + name: group_name__nie schema: type: array items: @@ -58526,7 +58358,7 @@ paths: explode: true style: form - in: query - name: file_extension__niew + name: group_name__niew schema: type: array items: @@ -58534,7 +58366,7 @@ paths: explode: true style: form - in: query - name: file_extension__nisw + name: group_name__nisw schema: type: array items: @@ -58600,76 +58432,71 @@ paths: explode: true style: form - in: query - name: last_updated + name: is_cloneable + schema: + type: boolean + - in: query + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mime_type + name: label__nie schema: type: array items: @@ -58677,11 +58504,7 @@ paths: explode: true style: form - in: query - name: mime_type__empty - schema: - type: boolean - - in: query - name: mime_type__ic + name: label__niew schema: type: array items: @@ -58689,7 +58512,7 @@ paths: explode: true style: form - in: query - name: mime_type__ie + name: label__nisw schema: type: array items: @@ -58697,61 +58520,74 @@ paths: explode: true style: form - in: query - name: mime_type__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query name: modified_by_request schema: @@ -58915,340 +58751,48 @@ paths: type: string description: Search - in: query - name: updated_by_request + name: related_object_type 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 + name: related_object_type__n schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created__gte + name: related_object_type_id schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__lt + name: related_object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__lte + name: required schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__n + name: search_weight schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: search_weight__empty schema: - type: string - format: uuid + type: boolean - in: query - name: id + name: search_weight__gt schema: type: array items: @@ -59257,11 +58801,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: search_weight__gte schema: type: array items: @@ -59270,7 +58810,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: search_weight__lt schema: type: array items: @@ -59279,7 +58819,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: search_weight__lte schema: type: array items: @@ -59288,7 +58828,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: search_weight__n schema: type: array items: @@ -59297,74 +58837,106 @@ paths: explode: true style: form - in: query - name: id__n + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: image_height + name: type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: image_height__empty + name: ui_editable schema: - type: boolean + type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: image_height__gt + name: ui_editable__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: image_height__gte + name: ui_visible schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: image_height__lt + name: ui_visible__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: image_height__lte + name: unique schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: image_height__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: image_width + name: validation_maximum schema: type: array items: @@ -59373,11 +58945,11 @@ paths: explode: true style: form - in: query - name: image_width__empty + name: validation_maximum__empty schema: type: boolean - in: query - name: image_width__gt + name: validation_maximum__gt schema: type: array items: @@ -59386,7 +58958,7 @@ paths: explode: true style: form - in: query - name: image_width__gte + name: validation_maximum__gte schema: type: array items: @@ -59395,7 +58967,7 @@ paths: explode: true style: form - in: query - name: image_width__lt + name: validation_maximum__lt schema: type: array items: @@ -59404,7 +58976,7 @@ paths: explode: true style: form - in: query - name: image_width__lte + name: validation_maximum__lte schema: type: array items: @@ -59413,7 +58985,7 @@ paths: explode: true style: form - in: query - name: image_width__n + name: validation_maximum__n schema: type: array items: @@ -59422,81 +58994,65 @@ paths: explode: true style: form - in: query - name: last_updated + name: validation_minimum schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: validation_minimum__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: validation_minimum__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: validation_minimum__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: validation_minimum__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: validation_minimum__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: validation_minimum__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: validation_regex schema: type: array items: @@ -59504,11 +59060,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: validation_regex__empty schema: type: boolean - in: query - name: name__ic + name: validation_regex__ic schema: type: array items: @@ -59516,7 +59072,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: validation_regex__ie schema: type: array items: @@ -59524,7 +59080,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: validation_regex__iew schema: type: array items: @@ -59532,7 +59088,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: validation_regex__isw schema: type: array items: @@ -59540,7 +59096,7 @@ paths: explode: true style: form - in: query - name: name__n + name: validation_regex__n schema: type: array items: @@ -59548,7 +59104,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: validation_regex__nic schema: type: array items: @@ -59556,7 +59112,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: validation_regex__nie schema: type: array items: @@ -59564,7 +59120,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: validation_regex__niew schema: type: array items: @@ -59572,7 +59128,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: validation_regex__nisw schema: type: array items: @@ -59580,7 +59136,7 @@ paths: explode: true style: form - in: query - name: object_id + name: weight schema: type: array items: @@ -59589,11 +59145,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: weight__empty schema: type: boolean - in: query - name: object_id__gt + name: weight__gt schema: type: array items: @@ -59602,7 +59158,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: weight__gte schema: type: array items: @@ -59611,7 +59167,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: weight__lt schema: type: array items: @@ -59620,7 +59176,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: weight__lte schema: type: array items: @@ -59629,7 +59185,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: weight__n schema: type: array items: @@ -59637,44 +59193,6 @@ paths: format: int32 explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type_id - schema: - type: integer - - in: query - name: object_type_id__n - schema: - type: integer - - name: offset - required: false - in: query - 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: @@ -59685,21 +59203,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedImageAttachmentList' + $ref: '#/components/schemas/PaginatedCustomFieldList' description: '' post: - operationId: extras_image_attachments_create - description: Post a list of image attachment objects. + operationId: extras_custom_fields_create + description: Post a list of custom field objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -59709,11 +59227,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_image_attachments_bulk_update - description: Put a list of image attachment objects. + operationId: extras_custom_fields_bulk_update + description: Put a list of custom field objects. tags: - extras requestBody: @@ -59722,12 +59240,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59739,11 +59257,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_image_attachments_bulk_partial_update - description: Patch a list of image attachment objects. + operationId: extras_custom_fields_bulk_partial_update + description: Patch a list of custom field objects. tags: - extras requestBody: @@ -59752,12 +59270,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59769,11 +59287,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_image_attachments_bulk_destroy - description: Delete a list of image attachment objects. + operationId: extras_custom_fields_bulk_destroy + description: Delete a list of custom field objects. tags: - extras requestBody: @@ -59782,12 +59300,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59795,16 +59313,16 @@ paths: responses: '204': description: No response body - /api/extras/image-attachments/{id}/: + /api/extras/custom-fields/{id}/: get: - operationId: extras_image_attachments_retrieve - description: Get a image attachment object. + operationId: extras_custom_fields_retrieve + description: Get a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59816,17 +59334,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_image_attachments_update - description: Put a image attachment object. + operationId: extras_custom_fields_update + description: Put a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59834,10 +59352,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -59847,17 +59365,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_image_attachments_partial_update - description: Patch a image attachment object. + operationId: extras_custom_fields_partial_update + description: Patch a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59865,10 +59383,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -59877,17 +59395,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_image_attachments_destroy - description: Delete a image attachment object. + operationId: extras_custom_fields_destroy + description: Delete a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59897,146 +59415,275 @@ paths: responses: '204': description: No response body - /api/extras/journal-entries/: + /api/extras/custom-links/: get: - operationId: extras_journal_entries_list - description: Get a list of journal entry objects. + operationId: extras_custom_links_list + description: Get a list of custom link objects. parameters: - in: query - name: assigned_object_id + name: button_class schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query - name: assigned_object_id__empty + name: button_class__n schema: - type: boolean + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query - name: assigned_object_id__gt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__lte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + 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: assigned_object_type_id + name: enabled + schema: + type: boolean + - in: query + name: group_name schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: assigned_object_type_id__n + name: group_name__empty + schema: + type: boolean + - in: query + name: group_name__ic schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: created_after + name: group_name__ie schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: created_before + name: group_name__iew schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: created_by + name: group_name__isw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: created_by__n + name: group_name__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: created_by_id + name: group_name__nic schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: created_by_id__n + name: group_name__nie schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: created_by_request + name: group_name__niew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -60095,24 +59742,6 @@ paths: 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__n - schema: - type: array - items: - type: string - x-spec-enum-id: a21af280f632fa34 - explode: true - style: form - in: query name: last_updated schema: @@ -60182,11 +59811,235 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link_text + schema: + type: string + - in: query + name: link_text__ic + schema: + type: string + - in: query + name: link_text__ie + schema: + type: string + - in: query + name: link_text__iew + schema: + type: string + - in: query + name: link_text__isw + schema: + type: string + - in: query + name: link_text__n + schema: + type: string + - in: query + name: link_text__nic + schema: + type: string + - in: query + name: link_text__nie + schema: + type: string + - in: query + name: link_text__niew + schema: + type: string + - in: query + name: link_text__nisw + schema: + type: string + - in: query + name: link_url + schema: + type: string + - in: query + name: link_url__ic + schema: + type: string + - in: query + name: link_url__ie + schema: + type: string + - in: query + name: link_url__iew + schema: + type: string + - in: query + name: link_url__isw + schema: + type: string + - in: query + name: link_url__n + schema: + type: string + - in: query + name: link_url__nic + schema: + type: string + - in: query + name: link_url__nie + schema: + type: string + - in: query + name: link_url__niew + schema: + type: string + - in: query + name: link_url__nisw + schema: + type: string - in: query name: modified_by_request schema: 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: new_window + schema: + type: boolean + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -60205,26 +60058,68 @@ paths: type: string description: Search - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: weight__gte schema: - type: string - format: uuid + 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: @@ -60235,21 +60130,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedJournalEntryList' + $ref: '#/components/schemas/PaginatedCustomLinkList' description: '' post: - operationId: extras_journal_entries_create - description: Post a list of journal entry objects. + operationId: extras_custom_links_create + description: Post a list of custom link objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60259,11 +60154,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_journal_entries_bulk_update - description: Put a list of journal entry objects. + operationId: extras_custom_links_bulk_update + description: Put a list of custom link objects. tags: - extras requestBody: @@ -60272,12 +60167,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60289,11 +60184,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_journal_entries_bulk_partial_update - description: Patch a list of journal entry objects. + operationId: extras_custom_links_bulk_partial_update + description: Patch a list of custom link objects. tags: - extras requestBody: @@ -60302,12 +60197,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60319,11 +60214,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_journal_entries_bulk_destroy - description: Delete a list of journal entry objects. + operationId: extras_custom_links_bulk_destroy + description: Delete a list of custom link objects. tags: - extras requestBody: @@ -60332,12 +60227,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60345,16 +60240,16 @@ paths: responses: '204': description: No response body - /api/extras/journal-entries/{id}/: + /api/extras/custom-links/{id}/: get: - operationId: extras_journal_entries_retrieve - description: Get a journal entry object. + operationId: extras_custom_links_retrieve + description: Get a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60366,17 +60261,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_journal_entries_update - description: Put a journal entry object. + operationId: extras_custom_links_update + description: Put a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60384,10 +60279,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60397,17 +60292,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_journal_entries_partial_update - description: Patch a journal entry object. + operationId: extras_custom_links_partial_update + description: Patch a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60415,10 +60310,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -60427,17 +60322,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_journal_entries_destroy - description: Delete a journal entry object. + operationId: extras_custom_links_destroy + description: Delete a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60447,41 +60342,86 @@ paths: responses: '204': description: No response body - /api/extras/object-changes/: + /api/extras/dashboard/: get: - operationId: extras_object_changes_list - description: Retrieve a list of recent changes. + operationId: extras_dashboard_retrieve + description: Get a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + put: + operationId: extras_dashboard_update + description: Put a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + patch: + operationId: extras_dashboard_partial_update + description: Patch a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + delete: + operationId: extras_dashboard_destroy + description: Delete a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/: + get: + operationId: extras_event_rules_list + description: Get a list of event rule objects. parameters: - in: query - name: action - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: action__n - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: changed_object_id + name: action_object_id schema: type: array items: @@ -60490,11 +60430,16 @@ paths: explode: true style: form - in: query - name: changed_object_id__empty + name: action_object_id__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: changed_object_id__gt + name: action_object_id__gt schema: type: array items: @@ -60503,7 +60448,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__gte + name: action_object_id__gte schema: type: array items: @@ -60512,7 +60457,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lt + name: action_object_id__lt schema: type: array items: @@ -60521,7 +60466,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lte + name: action_object_id__lte schema: type: array items: @@ -60530,7 +60475,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__n + name: action_object_id__n schema: type: array items: @@ -60539,95 +60484,101 @@ paths: explode: true style: form - in: query - name: changed_object_type + name: action_object_type schema: type: string - in: query - name: changed_object_type__n + name: action_object_type__n schema: type: string - in: query - name: changed_object_type_id + name: action_type schema: type: array items: - type: integer + type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: changed_object_type_id__n + name: action_type__n schema: type: array items: - type: integer + type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created_by_request schema: - type: integer + type: string + format: uuid - in: query - name: object_repr + name: description schema: type: array items: @@ -60635,11 +60586,11 @@ paths: explode: true style: form - in: query - name: object_repr__empty + name: description__empty schema: type: boolean - in: query - name: object_repr__ic + name: description__ic schema: type: array items: @@ -60647,7 +60598,7 @@ paths: explode: true style: form - in: query - name: object_repr__ie + name: description__ie schema: type: array items: @@ -60655,7 +60606,7 @@ paths: explode: true style: form - in: query - name: object_repr__iew + name: description__iew schema: type: array items: @@ -60663,7 +60614,7 @@ paths: explode: true style: form - in: query - name: object_repr__isw + name: description__isw schema: type: array items: @@ -60671,7 +60622,7 @@ paths: explode: true style: form - in: query - name: object_repr__n + name: description__n schema: type: array items: @@ -60679,7 +60630,7 @@ paths: explode: true style: form - in: query - name: object_repr__nic + name: description__nic schema: type: array items: @@ -60687,7 +60638,7 @@ paths: explode: true style: form - in: query - name: object_repr__nie + name: description__nie schema: type: array items: @@ -60695,7 +60646,7 @@ paths: explode: true style: form - in: query - name: object_repr__niew + name: description__niew schema: type: array items: @@ -60703,32 +60654,27 @@ paths: explode: true style: form - in: query - name: object_repr__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: enabled schema: - type: string + type: boolean - in: query - name: q + name: event_type schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: related_object_id + name: id schema: type: array items: @@ -60737,11 +60683,11 @@ paths: explode: true style: form - in: query - name: related_object_id__empty + name: id__empty schema: type: boolean - in: query - name: related_object_id__gt + name: id__gt schema: type: array items: @@ -60750,7 +60696,7 @@ paths: explode: true style: form - in: query - name: related_object_id__gte + name: id__gte schema: type: array items: @@ -60759,7 +60705,7 @@ paths: explode: true style: form - in: query - name: related_object_id__lt + name: id__lt schema: type: array items: @@ -60768,7 +60714,7 @@ paths: explode: true style: form - in: query - name: related_object_id__lte + name: id__lte schema: type: array items: @@ -60777,7 +60723,7 @@ paths: explode: true style: form - in: query - name: related_object_id__n + name: id__n schema: type: array items: @@ -60786,104 +60732,81 @@ paths: explode: true style: form - in: query - name: related_object_type - schema: - type: integer - - in: query - name: related_object_type__n - schema: - type: integer - - in: query - name: request_id - schema: - type: string - format: uuid - - in: query - name: time_after - schema: - type: string - format: date-time - - in: query - name: time_before - schema: - type: string - format: date-time - - in: query - name: user + name: last_updated schema: type: array items: type: string - description: User name + format: date-time explode: true style: form - in: query - name: user__n + name: last_updated__empty schema: type: array items: type: string - description: User name + format: date-time explode: true style: form - in: query - name: user_id + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time explode: true style: form - in: query - name: user_id__n + name: last_updated__gte schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time explode: true style: form - in: query - name: user_name + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: user_name__empty - schema: - type: boolean - - in: query - name: user_name__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: user_name__ie + 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: user_name__iew + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: user_name__isw + name: name schema: type: array items: @@ -60891,15 +60814,11 @@ paths: explode: true style: form - in: query - name: user_name__n + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: user_name__nic + name: name__ic schema: type: array items: @@ -60907,7 +60826,7 @@ paths: explode: true style: form - in: query - name: user_name__nie + name: name__ie schema: type: array items: @@ -60915,7 +60834,7 @@ paths: explode: true style: form - in: query - name: user_name__niew + name: name__iew schema: type: array items: @@ -60923,234 +60842,128 @@ paths: explode: true style: form - in: query - name: user_name__nisw + name: name__isw schema: type: array items: type: string explode: true style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' - description: '' - /api/extras/object-changes/{id}/: - get: - operationId: extras_object_changes_retrieve - description: Retrieve a list of recent changes. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this object change. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectChange' - description: '' - /api/extras/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 + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created__n + name: object_type__ic schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created_by_request + name: object_type__ie schema: type: string - format: uuid - in: query - name: description + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: description__empty + name: object_type__isw schema: - type: boolean + type: string - in: query - name: description__ic + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: description__ie + 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 + type: integer explode: true style: form - in: query - name: description__iew + name: object_type_id__n schema: type: array items: - type: string + 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: description__isw + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: @@ -61158,7 +60971,7 @@ paths: explode: true style: form - in: query - name: description__n + name: tag__n schema: type: array items: @@ -61166,101 +60979,368 @@ paths: explode: true style: form - in: query - name: description__nic + name: updated_by_request + schema: + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEventRuleList' + description: '' + post: + operationId: extras_event_rules_create + description: Post a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + put: + operationId: extras_event_rules_bulk_update + description: Put a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRule' + description: '' + patch: + operationId: extras_event_rules_bulk_partial_update + description: Patch a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRule' + description: '' + delete: + operationId: extras_event_rules_bulk_destroy + description: Delete a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/{id}/: + get: + operationId: extras_event_rules_retrieve + description: Get a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + put: + operationId: extras_event_rules_update + description: Put a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + patch: + operationId: extras_event_rules_partial_update + description: Patch a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + delete: + operationId: extras_event_rules_destroy + description: Delete a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/export-templates/: + get: + operationId: extras_export_templates_list + description: Get a list of export template objects. + parameters: + - in: query + name: as_attachment + schema: + type: boolean + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: enabled + name: created__lt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: data_file_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__gte + name: data_file_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__lt + name: data_source_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__lte + name: data_source_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__n + name: data_synced schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: @@ -61269,7 +61349,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: data_synced__gte schema: type: array items: @@ -61278,7 +61358,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: data_synced__lt schema: type: array items: @@ -61287,7 +61367,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: data_synced__lte schema: type: array items: @@ -61296,7 +61376,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: data_synced__n schema: type: array items: @@ -61305,36 +61385,43 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: description__ie schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: modified_by_request + name: description__iew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: name + name: description__isw schema: type: array items: @@ -61342,11 +61429,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: description__nic schema: type: array items: @@ -61354,7 +61445,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__nie schema: type: array items: @@ -61362,7 +61453,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__niew schema: type: array items: @@ -61370,7 +61461,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__nisw schema: type: array items: @@ -61378,7 +61469,7 @@ paths: explode: true style: form - in: query - name: name__n + name: file_extension schema: type: array items: @@ -61386,7 +61477,11 @@ paths: explode: true style: form - in: query - name: name__nic + name: file_extension__empty + schema: + type: boolean + - in: query + name: file_extension__ic schema: type: array items: @@ -61394,7 +61489,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: file_extension__ie schema: type: array items: @@ -61402,7 +61497,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: file_extension__iew schema: type: array items: @@ -61410,7 +61505,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: file_extension__isw schema: type: array items: @@ -61418,96 +61513,186 @@ paths: explode: true style: form - in: query - name: object_type + name: file_extension__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ic + name: file_extension__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ie + name: file_extension__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__iew + name: file_extension__niew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__isw + name: file_extension__nisw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: id schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nic + name: id__empty schema: - type: string + type: boolean - in: query - name: object_type__nie + name: id__gt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__niew + name: id__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nisw + name: id__lt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type_id + name: id__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: object_type_id__n + name: id__n schema: type: array items: type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: last_updated schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: q + name: last_updated__gt schema: - type: string - description: Search + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: shared + name: last_updated__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: slug + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__empty + 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: slug__ic + name: mime_type__ic schema: type: array items: @@ -61515,7 +61700,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: mime_type__ie schema: type: array items: @@ -61523,7 +61708,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: mime_type__iew schema: type: array items: @@ -61531,7 +61716,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: mime_type__isw schema: type: array items: @@ -61539,7 +61724,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: mime_type__n schema: type: array items: @@ -61547,7 +61732,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: mime_type__nic schema: type: array items: @@ -61555,7 +61740,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: mime_type__nie schema: type: array items: @@ -61563,7 +61748,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: mime_type__niew schema: type: array items: @@ -61571,7 +61756,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: mime_type__nisw schema: type: array items: @@ -61579,110 +61764,172 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: usable + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: type: boolean - in: query - name: user + name: name__ic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: name__ie schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: name__iew schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: name__isw schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: weight + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__empty + name: name__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: weight__gt + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__gte + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + 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 - format: int32 explode: true style: form - in: query - name: weight__n + name: object_type_id__n schema: type: array items: type: integer - format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - extras security: @@ -61693,21 +61940,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSavedFilterList' + $ref: '#/components/schemas/PaginatedExportTemplateList' description: '' post: - operationId: extras_saved_filters_create - description: Post a list of saved filter objects. + operationId: extras_export_templates_create + description: Post a list of export template objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61717,11 +61964,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: extras_saved_filters_bulk_update - description: Put a list of saved filter objects. + operationId: extras_export_templates_bulk_update + description: Put a list of export template objects. tags: - extras requestBody: @@ -61730,12 +61977,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61747,11 +61994,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: extras_saved_filters_bulk_partial_update - description: Patch a list of saved filter objects. + operationId: extras_export_templates_bulk_partial_update + description: Patch a list of export template objects. tags: - extras requestBody: @@ -61760,12 +62007,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61777,11 +62024,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: extras_saved_filters_bulk_destroy - description: Delete a list of saved filter objects. + operationId: extras_export_templates_bulk_destroy + description: Delete a list of export template objects. tags: - extras requestBody: @@ -61790,12 +62037,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61803,16 +62050,16 @@ paths: responses: '204': description: No response body - /api/extras/saved-filters/{id}/: + /api/extras/export-templates/{id}/: get: - operationId: extras_saved_filters_retrieve - description: Get a saved filter object. + operationId: extras_export_templates_retrieve + description: Get a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61824,17 +62071,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: extras_saved_filters_update - description: Put a saved filter object. + operationId: extras_export_templates_update + description: Put a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61842,10 +62089,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61855,17 +62102,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: extras_saved_filters_partial_update - description: Patch a saved filter object. + operationId: extras_export_templates_partial_update + description: Patch a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61873,10 +62120,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61885,17 +62132,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: extras_saved_filters_destroy - description: Delete a saved filter object. + operationId: extras_export_templates_destroy + description: Delete a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61905,11 +62152,112 @@ paths: responses: '204': description: No response body - /api/extras/scripts/: + /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_scripts_list - description: Get a list of script objects. + 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: @@ -61969,422 +62317,197 @@ paths: explode: true style: form - in: query - name: is_executable + name: image_height + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_height__empty schema: type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: image_height__gt schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: module_id + name: image_height__gte schema: type: array items: type: integer - description: Script module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: image_height__lt schema: type: array items: type: integer - description: Script module (ID) + format: int32 explode: true style: form - in: query - name: name + name: image_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: image_height__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__empty schema: type: boolean - in: query - name: name__ic + name: image_width__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: image_width__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: image_width__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedScriptList' - description: '' - post: - operationId: extras_scripts_create - description: Post a list of script objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - /api/extras/scripts/{id}/: - get: - operationId: extras_scripts_retrieve - description: Get a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - put: - operationId: extras_scripts_update - description: Put a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - patch: - operationId: extras_scripts_partial_update - description: Patch a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - delete: - operationId: extras_scripts_destroy - description: Delete a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/tags/: - get: - operationId: extras_tags_list - description: Get a list of tag objects. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_type_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: created - schema: - 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 + name: name schema: type: array items: @@ -62392,11 +62515,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -62404,7 +62527,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -62412,7 +62535,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -62420,7 +62543,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -62428,7 +62551,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -62436,7 +62559,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -62444,7 +62567,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -62452,7 +62575,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -62460,7 +62583,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -62468,16 +62591,7 @@ paths: explode: true style: form - in: query - name: for_object_type_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id + name: object_id schema: type: array items: @@ -62486,11 +62600,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: object_id__empty schema: type: boolean - in: query - name: id__gt + name: object_id__gt schema: type: array items: @@ -62499,7 +62613,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: object_id__gte schema: type: array items: @@ -62508,7 +62622,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: object_id__lt schema: type: array items: @@ -62517,7 +62631,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: object_id__lte schema: type: array items: @@ -62526,7 +62640,7 @@ paths: explode: true style: form - in: query - name: id__n + name: object_id__n schema: type: array items: @@ -62535,179 +62649,21 @@ paths: 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 + name: object_type 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 + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: object_types + name: object_type_id schema: - type: array - items: - type: integer - explode: true - style: form + type: integer - in: query - name: object_types__n + name: object_type_id__n schema: - type: array - items: - type: integer - explode: true - style: form + type: integer - name: offset required: false in: query @@ -62725,90 +62681,6 @@ paths: schema: type: string description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: updated_by_request schema: @@ -62824,21 +62696,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagList' + $ref: '#/components/schemas/PaginatedImageAttachmentList' description: '' post: - operationId: extras_tags_create - description: Post a list of tag objects. + operationId: extras_image_attachments_create + description: Post a list of image attachment objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62848,11 +62720,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_tags_bulk_update - description: Put a list of tag objects. + operationId: extras_image_attachments_bulk_update + description: Put a list of image attachment objects. tags: - extras requestBody: @@ -62861,12 +62733,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62878,11 +62750,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_tags_bulk_partial_update - description: Patch a list of tag objects. + operationId: extras_image_attachments_bulk_partial_update + description: Patch a list of image attachment objects. tags: - extras requestBody: @@ -62891,12 +62763,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62908,11 +62780,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_tags_bulk_destroy - description: Delete a list of tag objects. + operationId: extras_image_attachments_bulk_destroy + description: Delete a list of image attachment objects. tags: - extras requestBody: @@ -62921,12 +62793,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62934,16 +62806,16 @@ paths: responses: '204': description: No response body - /api/extras/tags/{id}/: + /api/extras/image-attachments/{id}/: get: - operationId: extras_tags_retrieve - description: Get a tag object. + operationId: extras_image_attachments_retrieve + description: Get a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -62955,17 +62827,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_tags_update - description: Put a tag object. + operationId: extras_image_attachments_update + description: Put a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -62973,10 +62845,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62986,17 +62858,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_tags_partial_update - description: Patch a tag object. + operationId: extras_image_attachments_partial_update + description: Patch a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -63004,10 +62876,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63016,17 +62888,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_tags_destroy - description: Delete a tag object. + operationId: extras_image_attachments_destroy + description: Delete a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -63036,156 +62908,139 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/: + /api/extras/journal-entries/: get: - operationId: extras_webhooks_list - description: Get a list of webhook objects. + operationId: extras_journal_entries_list + description: Get a list of journal entry objects. parameters: - in: query - name: ca_file_path + name: assigned_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__empty + name: assigned_object_id__empty schema: type: boolean - in: query - name: ca_file_path__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ca_file_path__ie + name: assigned_object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__iew + name: assigned_object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__isw + name: assigned_object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__n + name: assigned_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nic + name: assigned_object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nie + name: assigned_object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: ca_file_path__niew + name: assigned_object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: ca_file_path__nisw + name: assigned_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: created + name: assigned_object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__empty + name: created_after schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query - name: created__gt + name: created_before schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query - name: created__gte + name: created_by schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: created__lt + name: created_by__n schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: created__lte + name: created_by_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: created__n + name: created_by_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query @@ -63194,193 +63049,29 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - 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: http_content_type + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: http_content_type__empty + name: id__empty schema: type: boolean - in: query - name: http_content_type__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_method - schema: - type: array - items: - type: string - x-spec-enum-id: a12018571a034921 - explode: true - style: form - - in: query - name: http_method__n + name: id__gt schema: type: array items: - type: string - x-spec-enum-id: a12018571a034921 + type: integer + format: int32 explode: true style: form - in: query - name: id + name: id__gte schema: type: array items: @@ -63389,11 +63080,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__lt schema: type: array items: @@ -63402,7 +63089,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: id__lte schema: type: array items: @@ -63411,7 +63098,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__n schema: type: array items: @@ -63420,21 +63107,21 @@ paths: explode: true style: form - in: query - name: id__lte + name: kind schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: id__n + name: kind__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query @@ -63511,44 +63198,25 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: name__isw + name: tag schema: type: array items: @@ -63556,7 +63224,7 @@ paths: explode: true style: form - in: query - name: name__n + name: tag__n schema: type: array items: @@ -63564,37 +63232,243 @@ paths: explode: true style: form - in: query - name: name__nic + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie + 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: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew + 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: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw + 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: array - items: - type: string - explode: true - style: form + 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 @@ -63607,128 +63481,251 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: payload_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: secret - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__empty - schema: - type: boolean - - in: query - name: secret__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nie + 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: array - items: - type: string - explode: true - style: form - - in: query - name: secret__niew + 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: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nisw + 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: array - items: - type: string - explode: true - style: form - - in: query - name: ssl_verification + 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: boolean - - in: query - name: tag + 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: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid tags: - extras security: @@ -63739,21 +63736,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebhookList' + $ref: '#/components/schemas/PaginatedNotificationList' description: '' post: - operationId: extras_webhooks_create - description: Post a list of webhook objects. + operationId: extras_notifications_create + description: Post a list of notification objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63763,11 +63760,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: extras_webhooks_bulk_update - description: Put a list of webhook objects. + operationId: extras_notifications_bulk_update + description: Put a list of notification objects. tags: - extras requestBody: @@ -63776,12 +63773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63793,11 +63790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: extras_webhooks_bulk_partial_update - description: Patch a list of webhook objects. + operationId: extras_notifications_bulk_partial_update + description: Patch a list of notification objects. tags: - extras requestBody: @@ -63806,12 +63803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63823,11 +63820,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: extras_webhooks_bulk_destroy - description: Delete a list of webhook objects. + operationId: extras_notifications_bulk_destroy + description: Delete a list of notification objects. tags: - extras requestBody: @@ -63836,12 +63833,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63849,16 +63846,16 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/{id}/: + /api/extras/notifications/{id}/: get: - operationId: extras_webhooks_retrieve - description: Get a webhook object. + operationId: extras_notifications_retrieve + description: Get a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63870,17 +63867,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: extras_webhooks_update - description: Put a webhook object. + operationId: extras_notifications_update + description: Put a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63888,10 +63885,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63901,17 +63898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: extras_webhooks_partial_update - description: Patch a webhook object. + 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 webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63919,10 +63916,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63931,17 +63928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: extras_webhooks_destroy - description: Delete a webhook object. + operationId: extras_notifications_destroy + description: Delete a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63951,10 +63948,85 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/: + /api/extras/object-types/: get: - operationId: ipam_aggregates_list - description: Get a list of aggregate objects. + 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 @@ -64024,64 +64096,6 @@ paths: schema: type: string format: uuid - - in: query - name: date_added - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__empty - schema: - type: boolean - - in: query - name: date_added__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: description schema: @@ -64167,9 +64181,9 @@ paths: explode: true style: form - in: query - name: family + name: enabled schema: - type: number + type: boolean - in: query name: id schema: @@ -64302,6 +64316,146 @@ paths: schema: type: string format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + 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 @@ -64314,54 +64468,53 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: prefix - schema: - type: string - description: Prefix - in: query name: q schema: type: string description: Search - in: query - name: rir + name: shared + schema: + type: boolean + - in: query + name: slug schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir_id + name: slug__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: slug__iew schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -64369,7 +64522,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -64377,86 +64530,144 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: usable + schema: + type: boolean + - in: query + name: user + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id schema: type: array items: type: integer - description: Tenant Group (slug) + nullable: true + description: User (ID) explode: true style: form - in: query - name: tenant_group__n + name: user_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + nullable: true + description: User (ID) explode: true style: form - in: query - name: tenant_group_id + name: weight schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: weight__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: weight__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + 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: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64465,21 +64676,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAggregateList' + $ref: '#/components/schemas/PaginatedSavedFilterList' description: '' post: - operationId: ipam_aggregates_create - description: Post a list of aggregate objects. + operationId: extras_saved_filters_create + description: Post a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64489,25 +64700,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_aggregates_bulk_update - description: Put a list of aggregate objects. + operationId: extras_saved_filters_bulk_update + description: Put a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64519,25 +64730,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_aggregates_bulk_partial_update - description: Patch a list of aggregate objects. + operationId: extras_saved_filters_bulk_partial_update + description: Patch a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64549,25 +64760,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_aggregates_bulk_destroy - description: Delete a list of aggregate objects. + operationId: extras_saved_filters_bulk_destroy + description: Delete a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64575,19 +64786,19 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/{id}/: + /api/extras/saved-filters/{id}/: get: - operationId: ipam_aggregates_retrieve - description: Get a aggregate 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 aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64596,28 +64807,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_aggregates_update - description: Put a aggregate 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 aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64627,28 +64838,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_aggregates_partial_update - description: Patch a aggregate 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 aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -64657,101 +64868,119 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_aggregates_destroy - description: Delete a aggregate 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 aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/: + /api/extras/scripts/: get: - operationId: ipam_asn_ranges_list - description: Get a list of ASN range objects. + operationId: extras_scripts_list + description: Get a list of script objects. parameters: - in: query - name: created + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + 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: string - format: date-time + type: integer + description: Script module (ID) explode: true style: form - in: query - name: created_by_request + name: module_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Script module (ID) + explode: true + style: form - in: query - name: description + name: name schema: type: array items: @@ -64759,11 +64988,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -64771,7 +65000,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -64779,7 +65008,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -64787,7 +65016,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -64795,7 +65024,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -64803,7 +65032,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -64811,7 +65040,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -64819,7 +65048,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -64827,122 +65056,503 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: end + name: q + schema: + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedScriptList' + description: '' + post: + operationId: extras_scripts_create + description: Post a list of script objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + /api/extras/scripts/{id}/: + get: + operationId: extras_scripts_retrieve + description: Get a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + put: + operationId: extras_scripts_update + description: Put a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + 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 + 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. + 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/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. + 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: '' + 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}/: + get: + operationId: extras_subscriptions_retrieve + description: Get 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: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + 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 + description: Get a list of tag objects. + parameters: + - in: query + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__empty + name: color__empty schema: type: boolean - in: query - name: end__gt + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__gte + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__lt + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__lte + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__n + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: color__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: content_type schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: content_type_id schema: type: array items: @@ -64951,7 +65561,7 @@ paths: explode: true style: form - in: query - name: last_updated + name: created schema: type: array items: @@ -64960,7 +65570,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__empty schema: type: array items: @@ -64969,7 +65579,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gt schema: type: array items: @@ -64978,7 +65588,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gte schema: type: array items: @@ -64987,7 +65597,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lt schema: type: array items: @@ -64996,7 +65606,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lte schema: type: array items: @@ -65005,7 +65615,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__n schema: type: array items: @@ -65013,19 +65623,13 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -65033,11 +65637,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -65045,7 +65649,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -65053,7 +65657,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -65061,7 +65665,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -65069,7 +65673,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -65077,7 +65681,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -65085,7 +65689,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -65093,7 +65697,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -65101,120 +65705,156 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: for_object_type_id 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: id schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: id__empty schema: - type: string - description: Search + type: boolean - in: query - name: rir + name: id__gt schema: type: array items: - type: string - description: RIR (slug) + type: integer + format: int32 explode: true style: form - in: query - name: rir__n + name: id__gte schema: type: array items: - type: string - description: RIR (slug) + type: integer + format: int32 explode: true style: form - in: query - name: rir_id + name: id__lt schema: type: array items: type: integer - description: RIR (ID) + format: int32 explode: true style: form - in: query - name: rir_id__n + name: id__lte schema: type: array items: type: integer - description: RIR (ID) + format: int32 explode: true style: form - in: query - name: slug + 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: slug__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: slug__ic + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__ie + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__iew + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__isw + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__n + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: slug__nic + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -65222,7 +65862,11 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -65230,7 +65874,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__ie schema: type: array items: @@ -65238,7 +65882,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__iew schema: type: array items: @@ -65246,65 +65890,88 @@ paths: explode: true style: form - in: query - name: start + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__empty + name: name__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: start__gt + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__gte + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__lt + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__lte + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: object_types schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: start__n + name: object_types__n schema: type: array items: type: integer - format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -65312,7 +65979,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -65320,77 +65991,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__ie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__isw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: slug__niew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: slug__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -65399,7 +66060,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65408,21 +66069,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNRangeList' + $ref: '#/components/schemas/PaginatedTagList' description: '' post: - operationId: ipam_asn_ranges_create - description: Post a list of ASN range objects. + operationId: extras_tags_create + description: Post a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65432,25 +66093,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_asn_ranges_bulk_update - description: Put a list of ASN range objects. + operationId: extras_tags_bulk_update + description: Put a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65462,25 +66123,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_asn_ranges_bulk_partial_update - description: Patch a list of ASN range objects. + operationId: extras_tags_bulk_partial_update + description: Patch a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65492,25 +66153,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_asn_ranges_bulk_destroy - description: Delete a list of ASN range objects. + operationId: extras_tags_bulk_destroy + description: Delete a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65518,19 +66179,19 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/: + /api/extras/tags/{id}/: get: - operationId: ipam_asn_ranges_retrieve - description: Get a ASN range object. + operationId: extras_tags_retrieve + description: Get a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65539,28 +66200,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_asn_ranges_update - description: Put a ASN range object. + operationId: extras_tags_update + description: Put a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65570,28 +66231,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_asn_ranges_partial_update - description: Patch a ASN range object. + operationId: extras_tags_partial_update + description: Patch a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedTagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedTagRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -65600,147 +66261,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_asn_ranges_destroy - description: Delete a ASN range object. + operationId: extras_tags_destroy + description: Delete a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/available-asns/: - get: - operationId: ipam_asn_ranges_available_asns_list - description: Get a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableASN' - description: '' - post: - operationId: ipam_asn_ranges_available_asns_create - description: Post a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - /api/ipam/asns/: + /api/extras/webhooks/: get: - operationId: ipam_asns_list - description: Get a list of ASN objects. + operationId: extras_webhooks_list + description: Get a list of webhook objects. parameters: - in: query - name: asn + name: ca_file_path schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__empty + name: ca_file_path__empty schema: type: boolean - in: query - name: asn__gt + name: ca_file_path__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__gte + name: ca_file_path__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lt + name: ca_file_path__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lte + name: ca_file_path__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__n + name: ca_file_path__n schema: type: array items: - type: integer - format: int32 + type: string + explode: true + style: form + - in: query + name: ca_file_path__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -65895,6 +66522,108 @@ paths: type: string explode: true style: form + - in: query + name: http_content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__empty + schema: + type: boolean + - in: query + name: http_content_type__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_method + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form - in: query name: id schema: @@ -66027,133 +66756,137 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: provider + name: name schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: name__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: name__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: name__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: rir + name: name__n schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: name__nic schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir_id + name: name__nie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: name__niew schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: site + name: name__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site__n + name: payload_url schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_id + name: q + schema: + type: string + description: Search + - in: query + name: secret schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: secret__empty + schema: + type: boolean + - in: query + name: secret__ic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: secret__ie schema: type: array items: @@ -66161,7 +66894,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: secret__iew schema: type: array items: @@ -66169,77 +66902,71 @@ paths: explode: true style: form - in: query - name: tenant + name: secret__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: secret__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: secret__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: secret__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: secret__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: secret__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: ssl_verification + schema: + type: boolean + - in: query + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -66248,7 +66975,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66257,21 +66984,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNList' + $ref: '#/components/schemas/PaginatedWebhookList' description: '' post: - operationId: ipam_asns_create - description: Post a list of ASN objects. + operationId: extras_webhooks_create + description: Post a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66281,25 +67008,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_asns_bulk_update - description: Put a list of ASN objects. + operationId: extras_webhooks_bulk_update + description: Put a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66311,25 +67038,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_asns_bulk_partial_update - description: Patch a list of ASN objects. + operationId: extras_webhooks_bulk_partial_update + description: Patch a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66341,25 +67068,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_asns_bulk_destroy - description: Delete a list of ASN objects. + operationId: extras_webhooks_bulk_destroy + description: Delete a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66367,19 +67094,19 @@ paths: responses: '204': description: No response body - /api/ipam/asns/{id}/: + /api/extras/webhooks/{id}/: get: - operationId: ipam_asns_retrieve - description: Get a ASN object. + operationId: extras_webhooks_retrieve + description: Get a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66388,28 +67115,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_asns_update - description: Put a ASN object. + operationId: extras_webhooks_update + description: Put a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66419,28 +67146,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_asns_partial_update - description: Patch a ASN object. + operationId: extras_webhooks_partial_update + description: Patch a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -66449,30 +67176,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_asns_destroy - description: Delete a ASN object. + operationId: extras_webhooks_destroy + description: Delete a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/: + /api/ipam/aggregates/: get: - operationId: ipam_fhrp_group_assignments_list - description: Get a list of FHRP group assignment objects. + operationId: ipam_aggregates_list + description: Get a list of aggregate objects. parameters: - in: query name: created @@ -66543,100 +67270,153 @@ paths: type: string format: uuid - in: query - name: device + name: date_added schema: type: array items: type: string + format: date explode: true style: form - in: query - name: device_id + name: date_added__empty + schema: + type: boolean + - in: query + name: date_added__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date explode: true style: form - in: query - name: group_id + name: date_added__gte schema: type: array items: - type: integer - description: Group (ID) + type: string + format: date explode: true style: form - in: query - name: group_id__n + name: date_added__lt schema: type: array items: - type: integer - description: Group (ID) + type: string + format: date explode: true style: form - in: query - name: id + name: date_added__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date explode: true style: form - in: query - name: id__empty + name: date_added__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_id + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: id schema: type: array items: @@ -66645,11 +67425,11 @@ paths: explode: true style: form - in: query - name: interface_id__empty + name: id__empty schema: type: boolean - in: query - name: interface_id__gt + name: id__gt schema: type: array items: @@ -66658,7 +67438,7 @@ paths: explode: true style: form - in: query - name: interface_id__gte + name: id__gte schema: type: array items: @@ -66667,7 +67447,7 @@ paths: explode: true style: form - in: query - name: interface_id__lt + name: id__lt schema: type: array items: @@ -66676,7 +67456,7 @@ paths: explode: true style: form - in: query - name: interface_id__lte + name: id__lte schema: type: array items: @@ -66685,7 +67465,7 @@ paths: explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: @@ -66693,14 +67473,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_type - schema: - type: string - - in: query - name: interface_type__n - schema: - type: string - in: query name: last_updated schema: @@ -66788,70 +67560,87 @@ paths: schema: type: string - in: query - name: priority + name: prefix + schema: + type: string + description: Prefix + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rir schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: priority__empty + name: rir__n schema: - type: boolean + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form - in: query - name: priority__gt + name: rir_id schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: priority__gte + name: rir_id__n schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: priority__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: priority__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: priority__n + name: tenant schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: updated_by_request + name: tenant__n schema: - type: string - format: uuid + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: virtual_machine + name: tenant_group schema: type: array items: @@ -66859,14 +67648,54 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - ipam security: @@ -66877,21 +67706,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' + $ref: '#/components/schemas/PaginatedAggregateList' description: '' post: - operationId: ipam_fhrp_group_assignments_create - description: Post a list of FHRP group assignment objects. + operationId: ipam_aggregates_create + description: Post a list of aggregate objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -66901,11 +67730,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_fhrp_group_assignments_bulk_update - description: Put a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_update + description: Put a list of aggregate objects. tags: - ipam requestBody: @@ -66914,12 +67743,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66931,11 +67760,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_fhrp_group_assignments_bulk_partial_update - description: Patch a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_partial_update + description: Patch a list of aggregate objects. tags: - ipam requestBody: @@ -66944,12 +67773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66961,11 +67790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_fhrp_group_assignments_bulk_destroy - description: Delete a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_destroy + description: Delete a list of aggregate objects. tags: - ipam requestBody: @@ -66974,12 +67803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66987,16 +67816,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/{id}/: + /api/ipam/aggregates/{id}/: get: - operationId: ipam_fhrp_group_assignments_retrieve - description: Get a FHRP group assignment object. + operationId: ipam_aggregates_retrieve + description: Get a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67008,17 +67837,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_fhrp_group_assignments_update - description: Put a FHRP group assignment object. + operationId: ipam_aggregates_update + description: Put a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67026,10 +67855,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -67039,17 +67868,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_fhrp_group_assignments_partial_update - description: Patch a FHRP group assignment object. + operationId: ipam_aggregates_partial_update + description: Patch a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67057,10 +67886,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67069,17 +67898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_fhrp_group_assignments_destroy - description: Delete a FHRP group assignment object. + operationId: ipam_aggregates_destroy + description: Delete a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67089,115 +67918,11 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/: + /api/ipam/asn-ranges/: get: - operationId: ipam_fhrp_groups_list - description: Get a list of FHRP group objects. + operationId: ipam_asn_ranges_list + description: Get a list of ASN range objects. parameters: - - in: query - name: auth_key - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__empty - schema: - type: boolean - - in: query - name: auth_key__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - in: query name: created schema: @@ -67351,7 +68076,7 @@ paths: explode: true style: form - in: query - name: group_id + name: end schema: type: array items: @@ -67360,11 +68085,11 @@ paths: explode: true style: form - in: query - name: group_id__empty + name: end__empty schema: type: boolean - in: query - name: group_id__gt + name: end__gt schema: type: array items: @@ -67373,7 +68098,7 @@ paths: explode: true style: form - in: query - name: group_id__gte + name: end__gte schema: type: array items: @@ -67382,7 +68107,7 @@ paths: explode: true style: form - in: query - name: group_id__lt + name: end__lt schema: type: array items: @@ -67391,7 +68116,7 @@ paths: explode: true style: form - in: query - name: group_id__lte + name: end__lte schema: type: array items: @@ -67400,7 +68125,7 @@ paths: explode: true style: form - in: query - name: group_id__n + name: end__n schema: type: array items: @@ -67637,36 +68362,188 @@ paths: schema: type: string - in: query - name: protocol + name: q + schema: + type: string + description: Search + - in: query + name: rir schema: type: array items: type: string - x-spec-enum-id: 40dc831c689b4b78 + description: RIR (slug) explode: true style: form - in: query - name: protocol__n + name: rir__n schema: type: array items: type: string - x-spec-enum-id: 40dc831c689b4b78 + description: RIR (slug) explode: true style: form - in: query - name: q + name: rir_id schema: - type: string - description: Search + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form - in: query - name: related_ip + name: rir_id__n + schema: + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: start + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__empty + schema: + type: boolean + - in: query + name: start__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: tag schema: @@ -67683,6 +68560,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -67698,21 +68645,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupList' + $ref: '#/components/schemas/PaginatedASNRangeList' description: '' post: - operationId: ipam_fhrp_groups_create - description: Post a list of FHRP group objects. + operationId: ipam_asn_ranges_create + description: Post a list of ASN range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67722,11 +68669,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_fhrp_groups_bulk_update - description: Put a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_update + description: Put a list of ASN range objects. tags: - ipam requestBody: @@ -67735,12 +68682,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67752,11 +68699,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_fhrp_groups_bulk_partial_update - description: Patch a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_partial_update + description: Patch a list of ASN range objects. tags: - ipam requestBody: @@ -67765,12 +68712,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67782,11 +68729,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_fhrp_groups_bulk_destroy - description: Delete a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_destroy + description: Delete a list of ASN range objects. tags: - ipam requestBody: @@ -67795,12 +68742,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67808,16 +68755,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/{id}/: + /api/ipam/asn-ranges/{id}/: get: - operationId: ipam_fhrp_groups_retrieve - description: Get a FHRP group object. + operationId: ipam_asn_ranges_retrieve + description: Get a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67829,17 +68776,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_fhrp_groups_update - description: Put a FHRP group object. + operationId: ipam_asn_ranges_update + description: Put a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67847,10 +68794,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67860,17 +68807,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_fhrp_groups_partial_update - description: Patch a FHRP group object. + operationId: ipam_asn_ranges_partial_update + description: Patch a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67878,10 +68825,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67890,17 +68837,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_fhrp_groups_destroy - description: Delete a FHRP group object. + operationId: ipam_asn_ranges_destroy + description: Delete a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67910,26 +68857,73 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/: + /api/ipam/asn-ranges/{id}/available-asns/: get: - operationId: ipam_ip_addresses_list - description: Get a list of IP address objects. + operationId: ipam_asn_ranges_available_asns_list + description: Get a ASN object. parameters: - - in: query - name: address + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: assigned + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableASN' + description: '' + post: + operationId: ipam_asn_ranges_available_asns_create + description: Post a ASN object. + parameters: + - in: path + name: id schema: - type: boolean - description: Is assigned + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASN' + description: '' + /api/ipam/asns/: + get: + operationId: ipam_asns_list + description: Get a list of ASN objects. + parameters: - in: query - name: assigned_object_id + name: asn schema: type: array items: @@ -67938,11 +68932,11 @@ paths: explode: true style: form - in: query - name: assigned_object_id__empty + name: asn__empty schema: type: boolean - in: query - name: assigned_object_id__gt + name: asn__gt schema: type: array items: @@ -67951,7 +68945,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__gte + name: asn__gte schema: type: array items: @@ -67960,7 +68954,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lt + name: asn__lt schema: type: array items: @@ -67969,7 +68963,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lte + name: asn__lte schema: type: array items: @@ -67978,7 +68972,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__n + name: asn__n schema: type: array items: @@ -67986,19 +68980,6 @@ paths: format: int32 explode: true style: form - - in: query - name: assigned_object_type - schema: - type: integer - - in: query - name: assigned_object_type__n - schema: - type: integer - - in: query - name: assigned_to_interface - schema: - type: boolean - description: Is assigned to an interface - in: query name: created schema: @@ -68151,129 +69132,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: dns_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__empty - schema: - type: boolean - - in: query - name: dns_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: family - schema: - type: number - - in: query - name: fhrpgroup_id - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - - in: query - name: fhrpgroup_id__n - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - in: query name: id schema: @@ -68332,42 +69190,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -68437,46 +69259,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: nat_inside_id - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - in: query - name: nat_inside_id__n - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - name: offset required: false in: query @@ -68490,181 +69277,120 @@ paths: schema: type: string - in: query - name: parent - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: provider schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP + description: Provider (slug) explode: true style: form - in: query - name: role__n + name: provider__n schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP + description: Provider (slug) explode: true style: form - in: query - name: service_id + name: provider_id schema: type: array items: type: integer - description: Service (ID) + description: Provider (ID) explode: true style: form - in: query - name: service_id__n + name: provider_id__n schema: type: array items: type: integer - description: Service (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string + description: Provider (ID) explode: true style: form - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tenant + name: rir schema: type: array items: type: string - description: Tenant (slug) + description: RIR (slug) explode: true style: form - in: query - name: tenant__n + name: rir__n schema: type: array items: type: string - description: Tenant (slug) + description: RIR (slug) explode: true style: form - in: query - name: tenant_group + name: rir_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: RIR (ID) explode: true style: form - in: query - name: tenant_group__n + name: rir_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: RIR (ID) explode: true style: form - in: query - name: tenant_group_id + name: site schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Site (slug) explode: true style: form - in: query - name: tenant_group_id__n + name: site__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Site (slug) explode: true style: form - in: query - name: tenant_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: tenant_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: tag schema: type: array items: @@ -68672,92 +69398,88 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: vminterface + name: tenant schema: type: array items: type: string - description: VM interface (name) + description: Tenant (slug) explode: true style: form - in: query - name: vminterface__n + name: tenant__n schema: type: array items: type: string - description: VM interface (name) + description: Tenant (slug) explode: true style: form - in: query - name: vminterface_id + name: tenant_group schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: tenant_group__n schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vrf + name: tenant_group_id schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tenant_group_id__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: VRF + description: Tenant (ID) explode: true style: form - in: query - name: vrf_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: VRF + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - ipam security: @@ -68768,21 +69490,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPAddressList' + $ref: '#/components/schemas/PaginatedASNList' description: '' post: - operationId: ipam_ip_addresses_create - description: Post a list of IP address objects. + operationId: ipam_asns_create + description: Post a list of ASN objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68792,11 +69514,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_ip_addresses_bulk_update - description: Put a list of IP address objects. + operationId: ipam_asns_bulk_update + description: Put a list of ASN objects. tags: - ipam requestBody: @@ -68805,12 +69527,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68822,11 +69544,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Patch a list of IP address objects. + operationId: ipam_asns_bulk_partial_update + description: Patch a list of ASN objects. tags: - ipam requestBody: @@ -68835,12 +69557,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68852,11 +69574,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Delete a list of IP address objects. + operationId: ipam_asns_bulk_destroy + description: Delete a list of ASN objects. tags: - ipam requestBody: @@ -68865,12 +69587,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68878,16 +69600,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/{id}/: + /api/ipam/asns/{id}/: get: - operationId: ipam_ip_addresses_retrieve - description: Get a IP address object. + operationId: ipam_asns_retrieve + description: Get a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68899,17 +69621,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_ip_addresses_update - description: Put a IP address object. + operationId: ipam_asns_update + description: Put a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68917,10 +69639,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68930,17 +69652,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_ip_addresses_partial_update - description: Patch a IP address object. + operationId: ipam_asns_partial_update + description: Patch a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68948,10 +69670,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedASNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -68960,17 +69682,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_ip_addresses_destroy - description: Delete a IP address object. + operationId: ipam_asns_destroy + description: Delete a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68980,16 +69702,11 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/: + /api/ipam/fhrp-group-assignments/: get: - operationId: ipam_ip_ranges_list - description: Get a list of IP range objects. + operationId: ipam_fhrp_group_assignments_list + description: Get a list of FHRP group assignment objects. parameters: - - in: query - name: contains - schema: - type: string - description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -69059,7 +69776,7 @@ paths: type: string format: uuid - in: query - name: description + name: device schema: type: array items: @@ -69067,95 +69784,92 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: device_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: group_id schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: description__iew + name: group_id__n schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: description__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: end_address + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: interface_id schema: type: array items: @@ -69164,11 +69878,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: interface_id__empty schema: type: boolean - in: query - name: id__gt + name: interface_id__gt schema: type: array items: @@ -69177,7 +69891,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface_id__gte schema: type: array items: @@ -69186,7 +69900,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: interface_id__lt schema: type: array items: @@ -69195,7 +69909,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: interface_id__lte schema: type: array items: @@ -69204,7 +69918,7 @@ paths: explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: @@ -69212,6 +69926,14 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_type + schema: + type: string + - in: query + name: interface_type__n + schema: + type: string - in: query name: last_updated schema: @@ -69281,10 +70003,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - in: query name: modified_by_request schema: @@ -69303,58 +70021,38 @@ paths: schema: type: string - in: query - name: parent - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: priority schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: priority__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: role_id + name: priority__gt schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: priority__gte schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: size + name: priority__lt schema: type: array items: @@ -69363,11 +70061,7 @@ paths: explode: true style: form - in: query - name: size__empty - schema: - type: boolean - - in: query - name: size__gt + name: priority__lte schema: type: array items: @@ -69376,7 +70070,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: priority__n schema: type: array items: @@ -69385,25 +70079,20 @@ paths: explode: true style: form - in: query - name: size__lt + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: size__lte + name: virtual_machine schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: virtual_machine_id schema: type: array items: @@ -69411,171 +70100,6 @@ paths: format: int32 explode: true style: form - - in: query - name: start_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form tags: - ipam security: @@ -69586,21 +70110,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPRangeList' + $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' description: '' post: - operationId: ipam_ip_ranges_create - description: Post a list of IP range objects. + operationId: ipam_fhrp_group_assignments_create + description: Post a list of FHRP group assignment objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69610,11 +70134,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_ip_ranges_bulk_update - description: Put a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_update + description: Put a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69623,12 +70147,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69640,11 +70164,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_ip_ranges_bulk_partial_update - description: Patch a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_partial_update + description: Patch a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69653,12 +70177,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69670,11 +70194,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_ip_ranges_bulk_destroy - description: Delete a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_destroy + description: Delete a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69683,12 +70207,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69696,16 +70220,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/: + /api/ipam/fhrp-group-assignments/{id}/: get: - operationId: ipam_ip_ranges_retrieve - description: Get a IP range object. + operationId: ipam_fhrp_group_assignments_retrieve + description: Get a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69717,17 +70241,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_ip_ranges_update - description: Put a IP range object. + operationId: ipam_fhrp_group_assignments_update + description: Put a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69735,10 +70259,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69748,17 +70272,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_ip_ranges_partial_update - description: Patch a IP range object. + operationId: ipam_fhrp_group_assignments_partial_update + description: Patch a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69766,10 +70290,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -69778,17 +70302,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_ip_ranges_destroy - description: Delete a IP range object. + operationId: ipam_fhrp_group_assignments_destroy + description: Delete a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69798,195 +70322,117 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/available-ips/: - get: - operationId: ipam_ip_ranges_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_ip_ranges_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/: + /api/ipam/fhrp-groups/: get: - operationId: ipam_prefixes_list - description: Get a list of prefix objects. + operationId: ipam_fhrp_groups_list + description: Get a list of FHRP group objects. parameters: - in: query - name: children + name: auth_key schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__empty + name: auth_key__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: children__gt + name: auth_key__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__gte + name: auth_key__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__lt + name: auth_key__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__lte + name: auth_key__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__n + name: auth_key__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: contains - schema: - type: string - description: Prefixes which contain this prefix or IP - - in: query - name: created + name: auth_key__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: auth_key__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: auth_key__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: auth_key__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: auth_type schema: type: array items: type: string - format: date-time + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type explode: true style: form - in: query - name: created__lte + name: auth_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type explode: true style: form - in: query - name: created__n + name: created schema: type: array items: @@ -69995,73 +70441,64 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: depth + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__empty + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__gte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__lt + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__lte + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__n + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query name: description schema: @@ -70147,11 +70584,7 @@ paths: explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: group_id schema: type: array items: @@ -70160,11 +70593,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: group_id__empty schema: type: boolean - in: query - name: id__gt + name: group_id__gt schema: type: array items: @@ -70173,7 +70606,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: group_id__gte schema: type: array items: @@ -70182,7 +70615,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: group_id__lt schema: type: array items: @@ -70191,7 +70624,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: group_id__lte schema: type: array items: @@ -70200,7 +70633,7 @@ paths: explode: true style: form - in: query - name: id__n + name: group_id__n schema: type: array items: @@ -70209,84 +70642,20 @@ paths: explode: true style: form - in: query - name: is_pool - schema: - type: boolean - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mark_utilized + name: id__empty schema: type: boolean - in: query - name: mask_length + name: id__gt schema: type: array items: @@ -70295,221 +70664,145 @@ paths: explode: true style: form - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: prefix - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: id__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: id__lt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__n schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: last_updated schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role__n + name: last_updated__empty schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: site + name: last_updated__gte schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site__n + name: last_updated__lt schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site_group + name: last_updated__lte schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - in: query - name: site_group__n + name: last_updated__n schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - - in: query - name: site_group_id + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer - in: query - name: site_group_id__n + name: modified_by_request schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: site_id + name: name schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: name__empty schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: boolean - in: query - name: status + name: name__ic schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: status__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -70517,7 +70810,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -70525,191 +70818,109 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group_id + name: name__nie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: name__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: name__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - - in: query - name: tenant_id__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: vlan_id + name: protocol schema: type: array items: - type: integer - nullable: true - description: VLAN (ID) + type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: vlan_id__n + name: protocol__n schema: type: array items: - type: integer - nullable: true - description: VLAN (ID) + type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n + name: q schema: - type: integer - description: VLAN number (1-4094) + type: string + description: Search - in: query - name: vrf + name: related_ip schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF explode: true style: form - in: query - name: vrf_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: VRF + type: string explode: true style: form - in: query - name: within - schema: - type: string - description: Within prefix - - in: query - name: within_include + name: updated_by_request schema: type: string - description: Within and including prefix + format: uuid tags: - ipam security: @@ -70720,21 +70931,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrefixList' + $ref: '#/components/schemas/PaginatedFHRPGroupList' description: '' post: - operationId: ipam_prefixes_create - description: Post a list of prefix objects. + operationId: ipam_fhrp_groups_create + description: Post a list of FHRP group objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70744,11 +70955,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_prefixes_bulk_update - description: Put a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_update + description: Put a list of FHRP group objects. tags: - ipam requestBody: @@ -70757,12 +70968,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70774,11 +70985,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_prefixes_bulk_partial_update - description: Patch a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_partial_update + description: Patch a list of FHRP group objects. tags: - ipam requestBody: @@ -70787,12 +70998,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70804,11 +71015,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_prefixes_bulk_destroy - description: Delete a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_destroy + description: Delete a list of FHRP group objects. tags: - ipam requestBody: @@ -70817,12 +71028,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70830,16 +71041,16 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/: + /api/ipam/fhrp-groups/{id}/: get: - operationId: ipam_prefixes_retrieve - description: Get a prefix object. + operationId: ipam_fhrp_groups_retrieve + description: Get a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70851,17 +71062,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_prefixes_update - description: Put a prefix object. + operationId: ipam_fhrp_groups_update + description: Put a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70869,10 +71080,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70882,17 +71093,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_prefixes_partial_update - description: Patch a prefix object. + operationId: ipam_fhrp_groups_partial_update + description: Patch a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70900,10 +71111,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -70912,17 +71123,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_prefixes_destroy - description: Delete a prefix object. + operationId: ipam_fhrp_groups_destroy + description: Delete a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70932,144 +71143,108 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/available-ips/: - get: - operationId: ipam_prefixes_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: Get a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: Post a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - /api/ipam/rirs/: + /api/ipam/ip-addresses/: get: - operationId: ipam_rirs_list - description: Get a list of RIR objects. + operationId: ipam_ip_addresses_list + description: Get a list of IP address objects. parameters: - in: query - name: created + name: address schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: assigned schema: - type: array + type: boolean + description: Is assigned + - in: query + name: assigned_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean + - in: query + name: assigned_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_type + schema: + type: integer + - in: query + name: assigned_object_type__n + schema: + type: integer + - in: query + name: assigned_to_interface + schema: + type: boolean + description: Is assigned to an interface + - 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 @@ -71209,6 +71384,129 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: dns_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__empty + schema: + type: boolean + - in: query + name: dns_name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: fhrpgroup_id + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form + - in: query + name: fhrpgroup_id__n + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form - in: query name: id schema: @@ -71268,9 +71566,41 @@ paths: explode: true style: form - in: query - name: is_private + name: interface schema: - type: boolean + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -71340,25 +71670,60 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: name + name: nat_inside_id schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) explode: true style: form - in: query - name: name__empty + name: nat_inside_id__n schema: - type: boolean + type: array + items: + type: integer + description: NAT inside IP address (ID) + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name__ic + name: parent schema: type: array items: @@ -71366,55 +71731,78 @@ paths: explode: true style: form - in: query - name: name__ie + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: name__iew + name: role__n schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: name__isw + name: service_id schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__n + name: service_id__n schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__nic + name: status schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__nie + name: status__n schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -71422,44 +71810,41 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: tenant schema: - type: string - description: Search + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: slug + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__empty + name: tenant_group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: tenant_group__n schema: type: array items: @@ -71467,7 +71852,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: tenant_group_id schema: type: array items: @@ -71475,7 +71860,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tenant_group_id__n schema: type: array items: @@ -71483,23 +71868,32 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__nic + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -71507,50 +71901,92 @@ paths: explode: true style: form - in: query - name: slug__nie + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__niew + name: vminterface schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: slug__nisw + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: tag + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tag__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request + name: vrf_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - ipam security: @@ -71561,21 +71997,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRIRList' + $ref: '#/components/schemas/PaginatedIPAddressList' description: '' post: - operationId: ipam_rirs_create - description: Post a list of RIR objects. + operationId: ipam_ip_addresses_create + description: Post a list of IP address objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -71585,11 +72021,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_rirs_bulk_update - description: Put a list of RIR objects. + operationId: ipam_ip_addresses_bulk_update + description: Put a list of IP address objects. tags: - ipam requestBody: @@ -71598,12 +72034,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71615,11 +72051,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_rirs_bulk_partial_update - description: Patch a list of RIR objects. + operationId: ipam_ip_addresses_bulk_partial_update + description: Patch a list of IP address objects. tags: - ipam requestBody: @@ -71628,12 +72064,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71645,11 +72081,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_rirs_bulk_destroy - description: Delete a list of RIR objects. + operationId: ipam_ip_addresses_bulk_destroy + description: Delete a list of IP address objects. tags: - ipam requestBody: @@ -71658,12 +72094,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71671,16 +72107,16 @@ paths: responses: '204': description: No response body - /api/ipam/rirs/{id}/: + /api/ipam/ip-addresses/{id}/: get: - operationId: ipam_rirs_retrieve - description: Get a RIR object. + operationId: ipam_ip_addresses_retrieve + description: Get a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71692,17 +72128,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_rirs_update - description: Put a RIR object. + operationId: ipam_ip_addresses_update + description: Put a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71710,10 +72146,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -71723,17 +72159,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_rirs_partial_update - description: Patch a RIR object. + operationId: ipam_ip_addresses_partial_update + description: Patch a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71741,10 +72177,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -71753,17 +72189,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_rirs_destroy - description: Delete a RIR object. + operationId: ipam_ip_addresses_destroy + description: Delete a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71773,11 +72209,16 @@ paths: responses: '204': description: No response body - /api/ipam/roles/: + /api/ipam/ip-ranges/: get: - operationId: ipam_roles_list - description: Get a list of role objects. + operationId: ipam_ip_ranges_list + description: Get a list of IP range objects. parameters: + - in: query + name: contains + schema: + type: string + description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -71930,6 +72371,18 @@ paths: type: string explode: true style: form + - in: query + name: end_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -72057,13 +72510,29 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: parent schema: type: array items: @@ -72071,112 +72540,108 @@ paths: explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__n + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: slug + name: size__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: start_address schema: type: array items: @@ -72184,23 +72649,27 @@ paths: explode: true style: form - in: query - name: slug__ie + name: status schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__iew + name: status__n schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -72208,7 +72677,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -72216,23 +72685,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -72240,7 +72711,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -72248,7 +72719,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -72256,7 +72727,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: @@ -72264,66 +72735,70 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: weight__gte + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: weight__lt + name: vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: weight__lte + name: vrf_id schema: type: array items: type: integer - format: int32 + nullable: true + description: VRF explode: true style: form - in: query - name: weight__n + name: vrf_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: VRF explode: true style: form tags: @@ -72336,21 +72811,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRoleList' + $ref: '#/components/schemas/PaginatedIPRangeList' description: '' post: - operationId: ipam_roles_create - description: Post a list of role objects. + operationId: ipam_ip_ranges_create + description: Post a list of IP range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -72360,11 +72835,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_roles_bulk_update - description: Put a list of role objects. + operationId: ipam_ip_ranges_bulk_update + description: Put a list of IP range objects. tags: - ipam requestBody: @@ -72373,12 +72848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72390,11 +72865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_roles_bulk_partial_update - description: Patch a list of role objects. + operationId: ipam_ip_ranges_bulk_partial_update + description: Patch a list of IP range objects. tags: - ipam requestBody: @@ -72403,12 +72878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72420,11 +72895,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_roles_bulk_destroy - description: Delete a list of role objects. + operationId: ipam_ip_ranges_bulk_destroy + description: Delete a list of IP range objects. tags: - ipam requestBody: @@ -72433,12 +72908,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72446,16 +72921,16 @@ paths: responses: '204': description: No response body - /api/ipam/roles/{id}/: + /api/ipam/ip-ranges/{id}/: get: - operationId: ipam_roles_retrieve - description: Get a role object. + operationId: ipam_ip_ranges_retrieve + description: Get a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72467,17 +72942,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_roles_update - description: Put a role object. + operationId: ipam_ip_ranges_update + description: Put a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72485,10 +72960,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -72498,17 +72973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_roles_partial_update - description: Patch a role object. + operationId: ipam_ip_ranges_partial_update + description: Patch a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72516,10 +72991,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -72528,17 +73003,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_roles_destroy - description: Delete a role object. + operationId: ipam_ip_ranges_destroy + description: Delete a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72548,389 +73023,420 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/: + /api/ipam/ip-ranges/{id}/available-ips/: get: - operationId: ipam_route_targets_list - description: Get a list of route target objects. + operationId: ipam_ip_ranges_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_ip_ranges_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/: + get: + operationId: ipam_prefixes_list + description: Get a list of prefix objects. parameters: - in: query - name: created + name: children schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: children__empty schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: children__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: children__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: children__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: children__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: children__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: contains schema: type: string - format: uuid + description: Prefixes which contain this prefix or IP - in: query - name: description + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: depth__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: exporting_l2vpn + name: depth__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: exporting_l2vpn__n + name: depth__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: exporting_l2vpn_id + name: depth__lte schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_l2vpn_id__n + name: depth__n schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_vrf + name: description schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) explode: true style: form - in: query - name: exporting_vrf__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) explode: true style: form - in: query - name: exporting_vrf_id + name: description__ie schema: type: array items: - type: integer - description: Exporting VRF + type: string explode: true style: form - in: query - name: exporting_vrf_id__n + name: description__iew schema: type: array items: - type: integer - description: Exporting VRF + type: string explode: true style: form - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: importing_l2vpn + name: family schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form + type: number - in: query - name: importing_l2vpn__n + name: id schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: importing_l2vpn_id + name: id__empty schema: - type: array - items: - type: integer - description: Importing L2VPN - explode: true - style: form + type: boolean - in: query - name: importing_l2vpn_id__n + name: id__gt schema: type: array items: type: integer - description: Importing L2VPN + format: int32 explode: true style: form - in: query - name: importing_vrf + name: id__gte schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf__n + name: id__lt schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf_id + name: id__lte schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form - in: query - name: importing_vrf_id__n + name: id__n schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form + - in: query + name: is_pool + schema: + type: boolean - in: query name: last_updated schema: @@ -73000,13 +73506,46 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: prefix schema: type: array items: @@ -73014,11 +73553,20 @@ paths: explode: true style: form - in: query - name: name__empty + name: present_in_vrf schema: - type: boolean + type: string - in: query - name: name__ic + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -73026,7 +73574,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: region__n schema: type: array items: @@ -73034,7 +73582,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: region_id schema: type: array items: @@ -73042,7 +73590,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: region_id__n schema: type: array items: @@ -73050,62 +73598,133 @@ paths: explode: true style: form - in: query - name: name__n + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nie + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__niew + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nisw + name: site_group 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_group__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: site_group_id__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix + explode: true + style: form - in: query name: tag schema: @@ -73145,8 +73764,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -73154,8 +73772,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -73163,8 +73780,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -73172,8 +73788,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -73201,6 +73816,113 @@ paths: schema: type: string format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: within + schema: + type: string + description: Within prefix + - in: query + name: within_include + schema: + type: string + description: Within and including prefix tags: - ipam security: @@ -73211,21 +73933,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' + $ref: '#/components/schemas/PaginatedPrefixList' description: '' post: - operationId: ipam_route_targets_create - description: Post a list of route target objects. + operationId: ipam_prefixes_create + description: Post a list of prefix objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -73235,11 +73957,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_route_targets_bulk_update - description: Put a list of route target objects. + operationId: ipam_prefixes_bulk_update + description: Put a list of prefix objects. tags: - ipam requestBody: @@ -73248,12 +73970,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73265,11 +73987,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_route_targets_bulk_partial_update - description: Patch a list of route target objects. + operationId: ipam_prefixes_bulk_partial_update + description: Patch a list of prefix objects. tags: - ipam requestBody: @@ -73278,12 +74000,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73295,11 +74017,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_route_targets_bulk_destroy - description: Delete a list of route target objects. + operationId: ipam_prefixes_bulk_destroy + description: Delete a list of prefix objects. tags: - ipam requestBody: @@ -73308,12 +74030,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73321,16 +74043,16 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/{id}/: + /api/ipam/prefixes/{id}/: get: - operationId: ipam_route_targets_retrieve - description: Get a route target object. + operationId: ipam_prefixes_retrieve + description: Get a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73342,17 +74064,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_route_targets_update - description: Put a route target object. + operationId: ipam_prefixes_update + description: Put a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73360,10 +74082,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -73373,17 +74095,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_route_targets_partial_update - description: Patch a route target object. + operationId: ipam_prefixes_partial_update + description: Patch a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73391,10 +74113,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -73403,17 +74125,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_route_targets_destroy - description: Delete a route target object. + operationId: ipam_prefixes_destroy + description: Delete a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73423,10 +74145,130 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/: + /api/ipam/prefixes/{id}/available-ips/: get: - operationId: ipam_service_templates_list - description: Get a list of service template objects. + operationId: ipam_prefixes_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_prefixes_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/{id}/available-prefixes/: + get: + operationId: ipam_prefixes_available_prefixes_list + description: Get a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailablePrefix' + description: '' + post: + operationId: ipam_prefixes_available_prefixes_create + description: Post a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Prefix' + description: '' + /api/ipam/rirs/: + get: + operationId: ipam_rirs_list + description: Get a list of RIR objects. parameters: - in: query name: created @@ -73638,6 +74480,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_private + schema: + type: boolean - in: query name: last_updated schema: @@ -73809,42 +74655,94 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: slug schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: slug__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: slug__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -73876,21 +74774,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceTemplateList' + $ref: '#/components/schemas/PaginatedRIRList' description: '' post: - operationId: ipam_service_templates_create - description: Post a list of service template objects. + operationId: ipam_rirs_create + description: Post a list of RIR objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73900,11 +74798,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_service_templates_bulk_update - description: Put a list of service template objects. + operationId: ipam_rirs_bulk_update + description: Put a list of RIR objects. tags: - ipam requestBody: @@ -73913,12 +74811,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73930,11 +74828,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_service_templates_bulk_partial_update - description: Patch a list of service template objects. + operationId: ipam_rirs_bulk_partial_update + description: Patch a list of RIR objects. tags: - ipam requestBody: @@ -73943,12 +74841,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73960,11 +74858,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_service_templates_bulk_destroy - description: Delete a list of service template objects. + operationId: ipam_rirs_bulk_destroy + description: Delete a list of RIR objects. tags: - ipam requestBody: @@ -73973,12 +74871,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73986,16 +74884,16 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/{id}/: + /api/ipam/rirs/{id}/: get: - operationId: ipam_service_templates_retrieve - description: Get a service template object. + operationId: ipam_rirs_retrieve + description: Get a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74007,17 +74905,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_service_templates_update - description: Put a service template object. + operationId: ipam_rirs_update + description: Put a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74025,10 +74923,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -74038,17 +74936,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_service_templates_partial_update - description: Patch a service template object. + operationId: ipam_rirs_partial_update + description: Patch a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74056,10 +74954,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedRIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedRIRRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74068,17 +74966,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_service_templates_destroy - description: Delete a service template object. + operationId: ipam_rirs_destroy + description: Delete a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74088,10 +74986,10 @@ paths: responses: '204': description: No response body - /api/ipam/services/: + /api/ipam/roles/: get: - operationId: ipam_services_list - description: Get a list of service objects. + operationId: ipam_roles_list + description: Get a list of role objects. parameters: - in: query name: created @@ -74245,46 +75143,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - in: query name: id schema: @@ -74343,78 +75201,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ip_address - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ip_address__n - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ip_address_id - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ip_address_id__n - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ipaddress - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ipaddress__n - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ipaddress_id - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ipaddress_id__n - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -74586,42 +75372,94 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: slug schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: slug__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: slug__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -74644,41 +75482,61 @@ paths: type: string format: uuid - in: query - name: virtual_machine + name: weight schema: type: array items: - type: string - description: Virtual machine (name) + type: integer + format: int32 explode: true style: form - in: query - name: virtual_machine__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string - description: Virtual machine (name) + type: integer + format: int32 explode: true style: form - in: query - name: virtual_machine_id + name: weight__gte schema: type: array items: type: integer - nullable: true - description: Virtual machine (ID) + format: int32 explode: true style: form - in: query - name: virtual_machine_id__n + name: weight__lt schema: type: array items: type: integer - nullable: true - description: Virtual machine (ID) + 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: @@ -74691,21 +75549,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceList' + $ref: '#/components/schemas/PaginatedRoleList' description: '' post: - operationId: ipam_services_create - description: Post a list of service objects. + operationId: ipam_roles_create + description: Post a list of role objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74715,11 +75573,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_services_bulk_update - description: Put a list of service objects. + operationId: ipam_roles_bulk_update + description: Put a list of role objects. tags: - ipam requestBody: @@ -74728,12 +75586,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74745,11 +75603,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_services_bulk_partial_update - description: Patch a list of service objects. + operationId: ipam_roles_bulk_partial_update + description: Patch a list of role objects. tags: - ipam requestBody: @@ -74758,12 +75616,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74775,11 +75633,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_services_bulk_destroy - description: Delete a list of service objects. + operationId: ipam_roles_bulk_destroy + description: Delete a list of role objects. tags: - ipam requestBody: @@ -74788,12 +75646,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74801,16 +75659,16 @@ paths: responses: '204': description: No response body - /api/ipam/services/{id}/: + /api/ipam/roles/{id}/: get: - operationId: ipam_services_retrieve - description: Get a service object. + operationId: ipam_roles_retrieve + description: Get a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74822,17 +75680,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_services_update - description: Put a service object. + operationId: ipam_roles_update + description: Put a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74840,10 +75698,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74853,17 +75711,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_services_partial_update - description: Patch a service object. + operationId: ipam_roles_partial_update + description: Patch a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74871,10 +75729,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74883,17 +75741,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_services_destroy - description: Delete a service object. + operationId: ipam_roles_destroy + description: Delete a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74903,23 +75761,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/: + /api/ipam/route-targets/: get: - operationId: ipam_vlan_groups_list - description: Get a list of VLAN group objects. + operationId: ipam_route_targets_list + description: Get a list of route target objects. parameters: - - in: query - name: cluster - schema: - type: integer - - in: query - name: cluster_group - schema: - type: integer - - in: query - name: clustergroup - schema: - type: integer - in: query name: created schema: @@ -75073,252 +75919,300 @@ paths: explode: true style: form - in: query - name: id + name: exporting_l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: id__empty + name: exporting_l2vpn__n schema: - type: boolean + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) + explode: true + style: form - in: query - name: id__gt + name: exporting_l2vpn_id schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: id__gte + name: exporting_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: id__lt + name: exporting_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: id__lte + name: exporting_vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: id__n + name: exporting_vrf_id schema: type: array items: type: integer - format: int32 + description: Exporting VRF explode: true style: form - in: query - name: last_updated + name: exporting_vrf_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Exporting VRF explode: true style: form - in: query - name: last_updated__empty + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: importing_l2vpn schema: - type: integer + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) + explode: true + style: form - in: query - name: max_vid + name: importing_l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: max_vid__empty + name: importing_l2vpn_id schema: - type: boolean + type: array + items: + type: integer + description: Importing L2VPN + explode: true + style: form - in: query - name: max_vid__gt + name: importing_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: max_vid__gte + name: importing_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: max_vid__lt + name: importing_vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: max_vid__lte + name: importing_vrf_id schema: type: array items: type: integer - format: int32 + description: Importing VRF explode: true style: form - in: query - name: max_vid__n + name: importing_vrf_id__n schema: type: array items: type: integer - format: int32 + description: Importing VRF explode: true style: form - in: query - name: min_vid + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: min_vid__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query name: modified_by_request schema: @@ -75426,113 +76320,7 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: integer - - in: query - name: region - schema: - type: integer - - in: query - name: scope_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__empty - schema: - type: boolean - - in: query - name: scope_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_type - schema: - type: string - - in: query - name: scope_type__n - schema: - type: string - - in: query - name: site - schema: - type: integer - - in: query - name: site_group - schema: - type: integer - - in: query - name: sitegroup - schema: - type: integer - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: tag schema: type: array items: @@ -75540,7 +76328,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tag__n schema: type: array items: @@ -75548,23 +76336,25 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nic + name: tenant_group schema: type: array items: @@ -75572,7 +76362,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_group__n schema: type: array items: @@ -75580,7 +76370,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tenant_group_id schema: type: array items: @@ -75588,7 +76378,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group_id__n schema: type: array items: @@ -75596,19 +76386,23 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -75626,21 +76420,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' + $ref: '#/components/schemas/PaginatedRouteTargetList' description: '' post: - operationId: ipam_vlan_groups_create - description: Post a list of VLAN group objects. + operationId: ipam_route_targets_create + description: Post a list of route target objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75650,11 +76444,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_vlan_groups_bulk_update - description: Put a list of VLAN group objects. + operationId: ipam_route_targets_bulk_update + description: Put a list of route target objects. tags: - ipam requestBody: @@ -75663,12 +76457,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75680,11 +76474,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: Patch a list of VLAN group objects. + operationId: ipam_route_targets_bulk_partial_update + description: Patch a list of route target objects. tags: - ipam requestBody: @@ -75693,12 +76487,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75710,11 +76504,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_vlan_groups_bulk_destroy - description: Delete a list of VLAN group objects. + operationId: ipam_route_targets_bulk_destroy + description: Delete a list of route target objects. tags: - ipam requestBody: @@ -75723,12 +76517,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75736,16 +76530,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/: + /api/ipam/route-targets/{id}/: get: - operationId: ipam_vlan_groups_retrieve - description: Get a VLAN group object. + operationId: ipam_route_targets_retrieve + description: Get a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75757,17 +76551,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_vlan_groups_update - description: Put a VLAN group object. + operationId: ipam_route_targets_update + description: Put a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75775,10 +76569,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75788,17 +76582,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_vlan_groups_partial_update - description: Patch a VLAN group object. + operationId: ipam_route_targets_partial_update + description: Patch a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75806,10 +76600,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -75818,17 +76612,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_vlan_groups_destroy - description: Delete a VLAN group object. + operationId: ipam_route_targets_destroy + description: Delete a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75838,83 +76632,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/available-vlans/: - get: - operationId: ipam_vlan_groups_available_vlans_list - description: Get a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableVLAN' - description: '' - post: - operationId: ipam_vlan_groups_available_vlans_create - description: Post a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - /api/ipam/vlans/: + /api/ipam/service-templates/: get: - operationId: ipam_vlans_list - description: Get a list of VLAN objects. + operationId: ipam_service_templates_list + description: Get a list of service template objects. parameters: - - in: query - name: available_at_site - schema: - type: string - - in: query - name: available_on_device - schema: - type: string - - in: query - name: available_on_virtualmachine - schema: - type: string - in: query name: created schema: @@ -76067,44 +76789,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - in: query name: id schema: @@ -76163,50 +76847,6 @@ paths: format: int32 explode: true style: form - - in: query - name: l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn_id - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - - in: query - name: l2vpn_id__n - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -76378,178 +77018,42 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id + name: port schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: number - in: query - name: site_id__n + name: protocol schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: status + name: protocol__n schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: status__n + name: q schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -76566,143 +77070,11 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__empty - schema: - type: boolean - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - ipam security: @@ -76713,21 +77085,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANList' + $ref: '#/components/schemas/PaginatedServiceTemplateList' description: '' post: - operationId: ipam_vlans_create - description: Post a list of VLAN objects. + operationId: ipam_service_templates_create + description: Post a list of service template objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76737,11 +77109,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_vlans_bulk_update - description: Put a list of VLAN objects. + operationId: ipam_service_templates_bulk_update + description: Put a list of service template objects. tags: - ipam requestBody: @@ -76750,12 +77122,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76767,11 +77139,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_vlans_bulk_partial_update - description: Patch a list of VLAN objects. + operationId: ipam_service_templates_bulk_partial_update + description: Patch a list of service template objects. tags: - ipam requestBody: @@ -76780,12 +77152,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76797,11 +77169,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_vlans_bulk_destroy - description: Delete a list of VLAN objects. + operationId: ipam_service_templates_bulk_destroy + description: Delete a list of service template objects. tags: - ipam requestBody: @@ -76810,12 +77182,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76823,16 +77195,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlans/{id}/: + /api/ipam/service-templates/{id}/: get: - operationId: ipam_vlans_retrieve - description: Get a VLAN object. + operationId: ipam_service_templates_retrieve + description: Get a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76844,17 +77216,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_vlans_update - description: Put a VLAN object. + operationId: ipam_service_templates_update + description: Put a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76862,10 +77234,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76875,17 +77247,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_vlans_partial_update - description: Patch a VLAN object. + operationId: ipam_service_templates_partial_update + description: Patch a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76893,10 +77265,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -76905,17 +77277,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_vlans_destroy - description: Delete a VLAN object. + operationId: ipam_service_templates_destroy + description: Delete a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76925,10 +77297,10 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/: + /api/ipam/services/: get: - operationId: ipam_vrfs_list - description: Get a list of VRF objects. + operationId: ipam_services_list + description: Get a list of service objects. parameters: - in: query name: created @@ -77083,43 +77455,43 @@ paths: explode: true style: form - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target + name: device schema: type: array items: type: string - description: Export target (name) + nullable: true + description: Device (name) explode: true style: form - in: query - name: export_target__n + name: device__n schema: type: array items: type: string - description: Export target (name) + nullable: true + description: Device (name) explode: true style: form - in: query - name: export_target_id + name: device_id schema: type: array items: type: integer - description: Export target + nullable: true + description: Device (ID) explode: true style: form - in: query - name: export_target_id__n + name: device_id__n schema: type: array items: type: integer - description: Export target + nullable: true + description: Device (ID) explode: true style: form - in: query @@ -77181,39 +77553,39 @@ paths: explode: true style: form - in: query - name: import_target + name: ip_address schema: type: array items: type: string - description: Import target (name) + description: IP address explode: true style: form - in: query - name: import_target__n + name: ip_address__n schema: type: array items: type: string - description: Import target (name) + description: IP address explode: true style: form - in: query - name: import_target_id + name: ip_address_id schema: type: array items: type: integer - description: Import target + description: IP address (ID) explode: true style: form - in: query - name: import_target_id__n + name: ip_address_id__n schema: type: array items: type: integer - description: Import target + description: IP address (ID) explode: true style: form - in: query @@ -77387,94 +77759,42 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rd - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__empty - schema: - type: boolean - - in: query - name: rd__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nic + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: rd__nie + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: rd__niew + name: protocol__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: rd__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -77492,84 +77812,48 @@ paths: explode: true style: form - in: query - name: tenant + name: updated_by_request schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: tenant__n + name: virtual_machine schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) + description: Virtual machine (name) explode: true style: form - in: query - name: tenant_group_id__n + name: virtual_machine__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Virtual machine (name) explode: true style: form - in: query - name: tenant_id + name: virtual_machine_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - in: query - name: tenant_id__n + name: virtual_machine_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - ipam security: @@ -77580,21 +77864,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVRFList' + $ref: '#/components/schemas/PaginatedServiceList' description: '' post: - operationId: ipam_vrfs_create - description: Post a list of VRF objects. + operationId: ipam_services_create + description: Post a list of service objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -77604,11 +77888,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_vrfs_bulk_update - description: Put a list of VRF objects. + operationId: ipam_services_bulk_update + description: Put a list of service objects. tags: - ipam requestBody: @@ -77617,12 +77901,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77634,11 +77918,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_vrfs_bulk_partial_update - description: Patch a list of VRF objects. + operationId: ipam_services_bulk_partial_update + description: Patch a list of service objects. tags: - ipam requestBody: @@ -77647,12 +77931,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77664,11 +77948,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_vrfs_bulk_destroy - description: Delete a list of VRF objects. + operationId: ipam_services_bulk_destroy + description: Delete a list of service objects. tags: - ipam requestBody: @@ -77677,12 +77961,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77690,16 +77974,16 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/{id}/: + /api/ipam/services/{id}/: get: - operationId: ipam_vrfs_retrieve - description: Get a VRF object. + operationId: ipam_services_retrieve + description: Get a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77711,17 +77995,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_vrfs_update - description: Put a VRF object. + operationId: ipam_services_update + description: Put a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77729,10 +78013,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -77742,17 +78026,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_vrfs_partial_update - description: Patch a VRF object. + operationId: ipam_services_partial_update + description: Patch a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77760,10 +78044,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -77772,17 +78056,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_vrfs_destroy - description: Delete a VRF object. + operationId: ipam_services_destroy + description: Delete a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77792,106 +78076,23 @@ paths: responses: '204': description: No response body - /api/schema/: + /api/ipam/vlan-groups/: get: - operationId: schema_retrieve - description: 'OpenApi3 schema for this API. Format can be selected via content - negotiation. - - - - YAML: application/vnd.oai.openapi - - - JSON: application/vnd.oai.openapi+json' + operationId: ipam_vlan_groups_list + description: Get a list of VLAN group objects. parameters: - in: query - name: format - schema: - type: string - enum: - - json - - yaml - - in: query - name: lang + name: cluster schema: - type: string - enum: - - de - - en - - es - - fr - - ja - - pt - - ru - - tr - - uk - - zh - tags: - - schema - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi: - schema: - type: object - additionalProperties: {} - application/yaml: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json: - schema: - type: object - additionalProperties: {} - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying NetBox's current - operational status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/tenancy/contact-assignments/: - get: - operationId: tenancy_contact_assignments_list - description: Get a list of contact assignment objects. - parameters: + type: integer - in: query - name: contact_id + name: cluster_group schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form + type: integer - in: query - name: contact_id__n + name: contains_vid schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form + type: number - in: query name: created schema: @@ -77961,39 +78162,87 @@ paths: type: string format: uuid - in: query - name: group + name: description schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group_id + name: description__ie schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__iew schema: type: array items: - type: integer - description: Contact group (ID) + 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 @@ -78123,85 +78372,99 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: integer - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: object_id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__empty + name: name__empty schema: type: boolean - in: query - name: object_id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type + name: name__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: name__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: name__niew schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id__n + name: name__nisw schema: - type: integer + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -78215,126 +78478,222 @@ paths: schema: type: string - in: query - name: priority + name: q schema: type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + description: Search - in: query - name: priority__n + name: rack schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: integer - in: query - name: q + name: region schema: - type: string - description: Search + type: integer - in: query - name: role + name: scope_id schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: scope_id__gte schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: scope_id__lt schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: tag + name: scope_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: scope_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: scope_type schema: type: string - format: uuid - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedContactAssignmentList' - description: '' - post: - operationId: tenancy_contact_assignments_create - description: Post a list of contact assignment objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' - multipart/form-data: + - in: query + name: scope_type__n + schema: + type: string + - in: query + name: site + schema: + type: integer + - in: query + name: site_group + schema: + type: integer + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVLANGroupList' + description: '' + post: + operationId: ipam_vlan_groups_create + description: Post a list of VLAN group objects. + tags: + - ipam + requestBody: + content: + application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78344,25 +78703,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: tenancy_contact_assignments_bulk_update - description: Put a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_update + description: Put a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78374,25 +78733,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: tenancy_contact_assignments_bulk_partial_update - description: Patch a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_partial_update + description: Patch a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78404,25 +78763,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: tenancy_contact_assignments_bulk_destroy - description: Delete a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_destroy + description: Delete a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78430,19 +78789,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-assignments/{id}/: + /api/ipam/vlan-groups/{id}/: get: - operationId: tenancy_contact_assignments_retrieve - description: Get a contact assignment object. + operationId: ipam_vlan_groups_retrieve + description: Get a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78451,28 +78810,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: tenancy_contact_assignments_update - description: Put a contact assignment object. + operationId: ipam_vlan_groups_update + description: Put a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78482,28 +78841,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: tenancy_contact_assignments_partial_update - description: Patch a contact assignment object. + operationId: ipam_vlan_groups_partial_update + description: Patch a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78512,67 +78871,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: tenancy_contact_assignments_destroy - description: Delete a contact assignment object. + operationId: ipam_vlan_groups_destroy + description: Delete a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-groups/: + /api/ipam/vlan-groups/{id}/available-vlans/: get: - operationId: tenancy_contact_groups_list - description: Get a list of contact group objects. + operationId: ipam_vlan_groups_available_vlans_list + description: Get a VLAN object. parameters: - - in: query - name: ancestor + - in: path + name: id schema: - type: array - items: - type: integer - description: Contact group (slug) - explode: true - style: form + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableVLAN' + description: '' + post: + operationId: ipam_vlan_groups_available_vlans_create + description: Post a VLAN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLAN' + description: '' + /api/ipam/vlans/: + get: + operationId: ipam_vlans_list + description: Get a list of VLAN objects. + parameters: - in: query - name: ancestor__n + name: available_at_site schema: - type: array - items: - type: integer - description: Contact group (slug) - explode: true - style: form + type: string - in: query - name: ancestor_id + name: available_on_device schema: - type: array - items: - type: integer - description: Contact group (ID) - explode: true - style: form + type: string - in: query - name: ancestor_id__n + name: available_on_virtualmachine schema: - type: array - items: - type: integer - description: Contact group (ID) - explode: true - style: form + type: string - in: query name: created schema: @@ -78725,6 +79120,44 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form - in: query name: id schema: @@ -78783,6 +79216,50 @@ paths: format: int32 explode: true style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -78954,62 +79431,108 @@ paths: schema: type: string - in: query - name: parent + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent__n + name: region__n schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent_id + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id schema: type: array items: type: integer nullable: true - description: Parent contact group (ID) + description: Role (ID) explode: true style: form - in: query - name: parent_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Parent contact group (ID) + description: Role (ID) explode: true style: form - in: query - name: q + name: site schema: - type: string - description: Search + type: array + items: + type: string + description: Site (slug) + explode: true + style: form - in: query - name: slug + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: slug__empty + name: site_group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: site_group__n schema: type: array items: @@ -79017,7 +79540,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: site_group_id schema: type: array items: @@ -79025,7 +79548,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: site_group_id__n schema: type: array items: @@ -79033,15 +79556,47 @@ paths: explode: true style: form - in: query - name: slug__isw + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: slug__n + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN + explode: true + style: form + - in: query + name: tag schema: type: array items: @@ -79049,7 +79604,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tag__n schema: type: array items: @@ -79057,15 +79612,25 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + 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: @@ -79073,7 +79638,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -79081,7 +79646,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -79089,20 +79654,98 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: vid + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__empty + schema: + type: boolean + - in: query + name: vid__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79111,21 +79754,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactGroupList' + $ref: '#/components/schemas/PaginatedVLANList' description: '' post: - operationId: tenancy_contact_groups_create - description: Post a list of contact group objects. + operationId: ipam_vlans_create + description: Post a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -79135,25 +79778,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: tenancy_contact_groups_bulk_update - description: Put a list of contact group objects. + operationId: ipam_vlans_bulk_update + description: Put a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79165,25 +79808,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: tenancy_contact_groups_bulk_partial_update - description: Patch a list of contact group objects. + operationId: ipam_vlans_bulk_partial_update + description: Patch a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79195,25 +79838,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: tenancy_contact_groups_bulk_destroy - description: Delete a list of contact group objects. + operationId: ipam_vlans_bulk_destroy + description: Delete a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79221,19 +79864,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-groups/{id}/: + /api/ipam/vlans/{id}/: get: - operationId: tenancy_contact_groups_retrieve - description: Get a contact group object. + operationId: ipam_vlans_retrieve + description: Get a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79242,28 +79885,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: tenancy_contact_groups_update - description: Put a contact group object. + operationId: ipam_vlans_update + description: Put a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -79273,28 +79916,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: tenancy_contact_groups_partial_update - description: Patch a contact group object. + operationId: ipam_vlans_partial_update + description: Patch a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -79303,30 +79946,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: tenancy_contact_groups_destroy - description: Delete a contact group object. + operationId: ipam_vlans_destroy + description: Delete a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-roles/: + /api/ipam/vrfs/: get: - operationId: tenancy_contact_roles_list - description: Get a list of contact role objects. + operationId: ipam_vrfs_list + description: Get a list of VRF objects. parameters: - in: query name: created @@ -79480,6 +80123,46 @@ paths: type: string explode: true style: form + - in: query + name: enforce_unique + schema: + type: boolean + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -79538,6 +80221,42 @@ paths: format: int32 explode: true style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form - in: query name: last_updated schema: @@ -79714,7 +80433,7 @@ paths: type: string description: Search - in: query - name: slug + name: rd schema: type: array items: @@ -79722,11 +80441,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: rd__empty schema: type: boolean - in: query - name: slug__ic + name: rd__ic schema: type: array items: @@ -79734,7 +80453,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: rd__ie schema: type: array items: @@ -79742,7 +80461,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: rd__iew schema: type: array items: @@ -79750,7 +80469,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: rd__isw schema: type: array items: @@ -79758,7 +80477,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: rd__n schema: type: array items: @@ -79766,7 +80485,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: rd__nic schema: type: array items: @@ -79774,7 +80493,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: rd__nie schema: type: array items: @@ -79782,7 +80501,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: rd__niew schema: type: array items: @@ -79790,7 +80509,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: rd__nisw schema: type: array items: @@ -79813,13 +80532,83 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79828,21 +80617,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactRoleList' + $ref: '#/components/schemas/PaginatedVRFList' description: '' post: - operationId: tenancy_contact_roles_create - description: Post a list of contact role objects. + operationId: ipam_vrfs_create + description: Post a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79852,25 +80641,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: tenancy_contact_roles_bulk_update - description: Put a list of contact role objects. + operationId: ipam_vrfs_bulk_update + description: Put a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79882,25 +80671,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: tenancy_contact_roles_bulk_partial_update - description: Patch a list of contact role objects. + operationId: ipam_vrfs_bulk_partial_update + description: Patch a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79912,25 +80701,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: tenancy_contact_roles_bulk_destroy - description: Delete a list of contact role objects. + operationId: ipam_vrfs_bulk_destroy + description: Delete a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79938,19 +80727,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/{id}/: + /api/ipam/vrfs/{id}/: get: - operationId: tenancy_contact_roles_retrieve - description: Get a contact role object. + operationId: ipam_vrfs_retrieve + description: Get a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79959,28 +80748,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: tenancy_contact_roles_update - description: Put a contact role object. + operationId: ipam_vrfs_update + description: Put a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79990,28 +80779,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: tenancy_contact_roles_partial_update - description: Patch a contact role object. + operationId: ipam_vrfs_partial_update + description: Patch a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedVRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedVRFRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -80020,113 +80809,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: tenancy_contact_roles_destroy - description: Delete a contact role object. + operationId: ipam_vrfs_destroy + description: Delete a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contacts/: + /api/schema/: get: - operationId: tenancy_contacts_list - description: Get a list of contact objects. + operationId: schema_retrieve + description: 'OpenApi3 schema for this API. Format can be selected via content + negotiation. + + + - YAML: application/vnd.oai.openapi + + - JSON: application/vnd.oai.openapi+json' parameters: - in: query - name: address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__empty + name: format schema: - type: boolean + type: string + enum: + - json + - yaml - in: query - name: address__ic + name: lang schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nie - schema: - type: array - items: - type: string - explode: true - style: form + type: string + enum: + - cs + - da + - de + - en + - es + - fr + - it + - ja + - nl + - pl + - pt + - ru + - tr + - uk + - zh + tags: + - schema + security: + - cookieAuth: [] + - tokenAuth: [] + - {} + responses: + '200': + content: + application/vnd.oai.openapi: + schema: + type: object + additionalProperties: {} + application/yaml: + schema: + type: object + additionalProperties: {} + application/vnd.oai.openapi+json: + schema: + type: object + additionalProperties: {} + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/status/: + get: + operationId: status_retrieve + description: A lightweight read-only endpoint for conveying NetBox's current + operational status. + tags: + - status + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/tenancy/contact-assignments/: + get: + operationId: tenancy_contact_assignments_list + description: Get a list of contact assignment objects. + parameters: - in: query - name: address__niew + name: contact_id schema: type: array items: - type: string + type: integer + description: Contact (ID) explode: true style: form - in: query - name: address__nisw + name: contact_id__n schema: type: array items: - type: string + type: integer + description: Contact (ID) explode: true style: form - in: query @@ -80197,181 +81002,12 @@ paths: schema: type: string format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: group schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query @@ -80379,8 +81015,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query @@ -80388,8 +81023,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query @@ -80397,8 +81031,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query @@ -80528,179 +81161,85 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: link - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__empty - schema: - type: boolean - - in: query - name: link__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: name + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: object_id__empty schema: type: boolean - in: query - name: name__ic + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__niew + name: object_type_id schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: object_type_id__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -80714,180 +81253,82 @@ paths: schema: type: string - in: query - name: phone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__empty - schema: - type: boolean - - in: query - name: phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__niew + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: phone__nisw + name: priority__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: q schema: type: string description: Search - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__empty - schema: - type: boolean - - in: query - name: title__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__isw + name: role schema: type: array items: type: string + description: Contact role (slug) explode: true style: form - in: query - name: title__n + name: role__n schema: type: array items: type: string + description: Contact role (slug) explode: true style: form - in: query - name: title__nic + name: role_id schema: type: array items: - type: string + type: integer + description: Contact role (ID) explode: true style: form - in: query - name: title__nie + name: role_id__n schema: type: array items: - type: string + type: integer + description: Contact role (ID) explode: true style: form - in: query - name: title__niew + name: tag schema: type: array items: @@ -80895,7 +81336,7 @@ paths: explode: true style: form - in: query - name: title__nisw + name: tag__n schema: type: array items: @@ -80917,21 +81358,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactList' + $ref: '#/components/schemas/PaginatedContactAssignmentList' description: '' post: - operationId: tenancy_contacts_create - description: Post a list of contact objects. + operationId: tenancy_contact_assignments_create + description: Post a list of contact assignment objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -80941,11 +81382,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: tenancy_contacts_bulk_update - description: Put a list of contact objects. + operationId: tenancy_contact_assignments_bulk_update + description: Put a list of contact assignment objects. tags: - tenancy requestBody: @@ -80954,12 +81395,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -80971,11 +81412,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: tenancy_contacts_bulk_partial_update - description: Patch a list of contact objects. + operationId: tenancy_contact_assignments_bulk_partial_update + description: Patch a list of contact assignment objects. tags: - tenancy requestBody: @@ -80984,12 +81425,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81001,11 +81442,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: tenancy_contacts_bulk_destroy - description: Delete a list of contact objects. + operationId: tenancy_contact_assignments_bulk_destroy + description: Delete a list of contact assignment objects. tags: - tenancy requestBody: @@ -81014,12 +81455,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81027,16 +81468,16 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/{id}/: + /api/tenancy/contact-assignments/{id}/: get: - operationId: tenancy_contacts_retrieve - description: Get a contact object. + operationId: tenancy_contact_assignments_retrieve + description: Get a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81048,17 +81489,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: tenancy_contacts_update - description: Put a contact object. + operationId: tenancy_contact_assignments_update + description: Put a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81066,10 +81507,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81079,17 +81520,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: tenancy_contacts_partial_update - description: Patch a contact object. + operationId: tenancy_contact_assignments_partial_update + description: Patch a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81097,10 +81538,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81109,17 +81550,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: tenancy_contacts_destroy - description: Delete a contact object. + operationId: tenancy_contact_assignments_destroy + description: Delete a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81129,18 +81570,17 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/: + /api/tenancy/contact-groups/: get: - operationId: tenancy_tenant_groups_list - description: Get a list of tenant group objects. + operationId: tenancy_contact_groups_list + description: Get a list of contact group objects. parameters: - in: query name: ancestor schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query @@ -81148,8 +81588,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query @@ -81157,8 +81596,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query @@ -81166,8 +81604,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query @@ -81556,7 +81993,7 @@ paths: type: array items: type: string - description: Parent tenant group (slug) + description: Parent contact group (slug) explode: true style: form - in: query @@ -81565,7 +82002,7 @@ paths: type: array items: type: string - description: Parent tenant group (slug) + description: Parent contact group (slug) explode: true style: form - in: query @@ -81575,7 +82012,7 @@ paths: items: type: integer nullable: true - description: Parent tenant group (ID) + description: Parent contact group (ID) explode: true style: form - in: query @@ -81585,7 +82022,7 @@ paths: items: type: integer nullable: true - description: Parent tenant group (ID) + description: Parent contact group (ID) explode: true style: form - in: query @@ -81708,21 +82145,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' + $ref: '#/components/schemas/PaginatedContactGroupList' description: '' post: - operationId: tenancy_tenant_groups_create - description: Post a list of tenant group objects. + operationId: tenancy_contact_groups_create + description: Post a list of contact group objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -81732,11 +82169,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: tenancy_tenant_groups_bulk_update - description: Put a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_update + description: Put a list of contact group objects. tags: - tenancy requestBody: @@ -81745,12 +82182,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81762,11 +82199,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: Patch a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_partial_update + description: Patch a list of contact group objects. tags: - tenancy requestBody: @@ -81775,12 +82212,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81792,11 +82229,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: Delete a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_destroy + description: Delete a list of contact group objects. tags: - tenancy requestBody: @@ -81805,12 +82242,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81818,16 +82255,16 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/{id}/: + /api/tenancy/contact-groups/{id}/: get: - operationId: tenancy_tenant_groups_retrieve - description: Get a tenant group object. + operationId: tenancy_contact_groups_retrieve + description: Get a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81839,17 +82276,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: tenancy_tenant_groups_update - description: Put a tenant group object. + operationId: tenancy_contact_groups_update + description: Put a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81857,10 +82294,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -81870,17 +82307,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: tenancy_tenant_groups_partial_update - description: Patch a tenant group object. + operationId: tenancy_contact_groups_partial_update + description: Patch a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81888,10 +82325,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81900,17 +82337,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: tenancy_tenant_groups_destroy - description: Delete a tenant group object. + operationId: tenancy_contact_groups_destroy + description: Delete a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81920,65 +82357,11 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/: + /api/tenancy/contact-roles/: get: - operationId: tenancy_tenants_list - description: Get a list of tenant objects. + operationId: tenancy_contact_roles_list + description: Get a list of contact role objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -82131,42 +82514,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - in: query name: id schema: @@ -82515,21 +82862,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantList' + $ref: '#/components/schemas/PaginatedContactRoleList' description: '' post: - operationId: tenancy_tenants_create - description: Post a list of tenant objects. + operationId: tenancy_contact_roles_create + description: Post a list of contact role objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82539,11 +82886,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: tenancy_tenants_bulk_update - description: Put a list of tenant objects. + operationId: tenancy_contact_roles_bulk_update + description: Put a list of contact role objects. tags: - tenancy requestBody: @@ -82552,12 +82899,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82569,11 +82916,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: tenancy_tenants_bulk_partial_update - description: Patch a list of tenant objects. + operationId: tenancy_contact_roles_bulk_partial_update + description: Patch a list of contact role objects. tags: - tenancy requestBody: @@ -82582,12 +82929,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82599,11 +82946,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: tenancy_tenants_bulk_destroy - description: Delete a list of tenant objects. + operationId: tenancy_contact_roles_bulk_destroy + description: Delete a list of contact role objects. tags: - tenancy requestBody: @@ -82612,12 +82959,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82625,16 +82972,16 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/{id}/: + /api/tenancy/contact-roles/{id}/: get: - operationId: tenancy_tenants_retrieve - description: Get a tenant object. + operationId: tenancy_contact_roles_retrieve + description: Get a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82646,17 +82993,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: tenancy_tenants_update - description: Put a tenant object. + operationId: tenancy_contact_roles_update + description: Put a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82664,10 +83011,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82677,17 +83024,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: tenancy_tenants_partial_update - description: Patch a tenant object. + operationId: tenancy_contact_roles_partial_update + description: Patch a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82695,10 +83042,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -82707,17 +83054,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: tenancy_tenants_destroy - description: Delete a tenant object. + operationId: tenancy_contact_roles_destroy + description: Delete a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82727,31 +83074,13 @@ paths: responses: '204': description: No response body - /api/users/config/: - get: - operationId: users_config_retrieve - description: An API endpoint via which a user can update his or her own UserConfig - data (but no one else's). - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/groups/: + /api/tenancy/contacts/: get: - operationId: users_groups_list - description: Get a list of group objects. + operationId: tenancy_contacts_list + description: Get a list of contact objects. parameters: - in: query - name: description + name: address schema: type: array items: @@ -82759,11 +83088,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: address__empty schema: type: boolean - in: query - name: description__ic + name: address__ic schema: type: array items: @@ -82771,7 +83100,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: address__ie schema: type: array items: @@ -82779,7 +83108,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: address__iew schema: type: array items: @@ -82787,7 +83116,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: address__isw schema: type: array items: @@ -82795,7 +83124,7 @@ paths: explode: true style: form - in: query - name: description__n + name: address__n schema: type: array items: @@ -82803,7 +83132,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: address__nic schema: type: array items: @@ -82811,7 +83140,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: address__nie schema: type: array items: @@ -82819,7 +83148,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: address__niew schema: type: array items: @@ -82827,7 +83156,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: address__nisw schema: type: array items: @@ -82835,71 +83164,75 @@ paths: explode: true style: form - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created_by_request schema: - type: integer + type: string + format: uuid - in: query - name: name + name: description schema: type: array items: @@ -82907,11 +83240,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -82919,7 +83252,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -82927,7 +83260,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -82935,7 +83268,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -82943,7 +83276,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -82951,7 +83284,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -82959,7 +83292,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -82967,7 +83300,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -82975,311 +83308,123 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: email schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__empty schema: - type: string + type: boolean - in: query - name: permission_id + name: email__ic schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: permission_id__n + name: email__ie schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q + name: email__iew schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user_id + name: email__isw schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: email__n schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedGroupList' - description: '' - post: - operationId: users_groups_create - description: Post a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_bulk_update - description: Put a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_bulk_partial_update - description: Patch a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_bulk_destroy - description: Delete a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/users/groups/{id}/: - get: - operationId: users_groups_retrieve - description: Get a group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_update - description: Put a group object. - parameters: - - in: path - name: id + - in: query + name: email__nic schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_partial_update - description: Patch a group object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nie schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_destroy - description: Delete a group object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/users/permissions/: - get: - operationId: users_permissions_list - description: Get a list of permission objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: can_add + name: email__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_change + name: group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_delete + name: group__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_view + name: group_id schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: group_id__n schema: type: array items: @@ -83287,185 +83432,221 @@ paths: explode: true style: form - in: query - name: description__empty + 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: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + 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: description__nic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: enabled + name: last_updated__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: group + name: last_updated__n schema: type: array items: type: string - description: Group (name) + 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: group__n + name: link schema: type: array items: type: string - description: Group (name) explode: true style: form - in: query - name: group_id + name: link__empty + schema: + type: boolean + - in: query + name: link__ic schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query - name: group_id__n + name: link__ie schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query - name: id + name: link__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: link__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: link__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: link__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: link__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: link__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: link__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: modified_by_request schema: - type: integer + type: string + format: uuid - in: query name: name schema: @@ -83550,133 +83731,214 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ic + name: phone schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ie + name: phone__empty schema: - type: string + type: boolean - in: query - name: object_type__iew + name: phone__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__isw + name: phone__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: phone__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nic + name: phone__isw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nie + name: phone__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: phone__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: phone__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q schema: type: string + description: Search - in: query - name: object_type_id + name: tag schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: tag__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types + name: title schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types__n + name: title__empty + schema: + type: boolean + - in: query + name: title__ic schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: title__ie schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: title__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: title__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: title__nic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: title__nie schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: title__niew schema: type: array items: - type: integer - description: User + type: string + explode: true + style: form + - in: query + name: title__nisw + schema: + type: array + items: + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -83685,21 +83947,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' + $ref: '#/components/schemas/PaginatedContactList' description: '' post: - operationId: users_permissions_create - description: Post a list of permission objects. + operationId: tenancy_contacts_create + description: Post a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83709,25 +83971,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: users_permissions_bulk_update - description: Put a list of permission objects. + operationId: tenancy_contacts_bulk_update + description: Put a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83739,25 +84001,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: users_permissions_bulk_partial_update - description: Patch a list of permission objects. + operationId: tenancy_contacts_bulk_partial_update + description: Patch a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83769,25 +84031,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: users_permissions_bulk_destroy - description: Delete a list of permission objects. + operationId: tenancy_contacts_bulk_destroy + description: Delete a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83795,19 +84057,19 @@ paths: responses: '204': description: No response body - /api/users/permissions/{id}/: + /api/tenancy/contacts/{id}/: get: - operationId: users_permissions_retrieve - description: Get a permission object. + operationId: tenancy_contacts_retrieve + description: Get a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -83816,28 +84078,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: users_permissions_update - description: Put a permission object. + operationId: tenancy_contacts_update + description: Put a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83847,28 +84109,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: users_permissions_partial_update - description: Patch a permission object. + operationId: tenancy_contacts_partial_update + description: Patch a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedContactRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83877,48 +84139,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: users_permissions_destroy - description: Delete a permission object. + operationId: tenancy_contacts_destroy + description: Delete a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/: + /api/tenancy/tenant-groups/: get: - operationId: users_tokens_list - description: Get a list of token objects. + operationId: tenancy_tenant_groups_list + description: Get a list of tenant group objects. parameters: - in: query - name: created - schema: - type: string - format: date-time - - in: query - name: created__gte - schema: - type: string - format: date-time - - in: query - name: created__lte - schema: - type: string - format: date-time - - in: query - name: description + name: ancestor schema: type: array items: @@ -83926,11 +84173,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: ancestor__n schema: type: array items: @@ -83938,7 +84181,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: ancestor_id schema: type: array items: @@ -83946,7 +84189,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: ancestor_id__n schema: type: array items: @@ -83954,79 +84197,168 @@ paths: explode: true style: form - in: query - name: description__isw + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: expires - schema: - type: string - format: date-time - - in: query - name: expires__gte + name: created__n schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: expires__lte + name: created_by_request schema: type: string - format: date-time + format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query @@ -84075,67 +84407,81 @@ paths: explode: true style: form - in: query - name: key + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__empty - schema: - type: boolean - - in: query - name: key__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: key__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84143,7 +84489,11 @@ paths: explode: true style: form - in: query - name: key__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -84151,7 +84501,7 @@ paths: explode: true style: form - in: query - name: key__nisw + name: name__ie schema: type: array items: @@ -84159,69 +84509,61 @@ paths: explode: true style: form - in: query - name: last_used + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__empty + name: name__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_used__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -84234,53 +84576,156 @@ 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 tenant group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent tenant group (slug) + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent tenant group (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent tenant group (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: user + name: slug schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: slug__ie schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: slug__iew schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: write_enabled + name: slug__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -84289,21 +84734,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTokenList' + $ref: '#/components/schemas/PaginatedTenantGroupList' description: '' post: - operationId: users_tokens_create - description: Post a list of token objects. + operationId: tenancy_tenant_groups_create + description: Post a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -84313,25 +84758,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: users_tokens_bulk_update - description: Put a list of token objects. + operationId: tenancy_tenant_groups_bulk_update + description: Put a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84343,25 +84788,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: users_tokens_bulk_partial_update - description: Patch a list of token objects. + operationId: tenancy_tenant_groups_bulk_partial_update + description: Patch a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84373,25 +84818,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: users_tokens_bulk_destroy - description: Delete a list of token objects. + operationId: tenancy_tenant_groups_bulk_destroy + description: Delete a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84399,19 +84844,19 @@ paths: responses: '204': description: No response body - /api/users/tokens/{id}/: + /api/tenancy/tenant-groups/{id}/: get: - operationId: users_tokens_retrieve - description: Get a token object. + operationId: tenancy_tenant_groups_retrieve + description: Get a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -84420,28 +84865,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: users_tokens_update - description: Put a token object. + operationId: tenancy_tenant_groups_update + description: Put a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -84451,28 +84896,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: users_tokens_partial_update - description: Patch a token object. + operationId: tenancy_tenant_groups_partial_update + description: Patch a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84481,208 +84926,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: users_tokens_destroy - description: Delete a token object. + operationId: tenancy_tenant_groups_destroy + description: Delete a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/provision/: - post: - operationId: users_tokens_provision_create - description: Non-authenticated REST API endpoint via which a user may create - a Token. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvision' - description: '' - '401': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/users/: + /api/tenancy/tenants/: get: - operationId: users_users_list - description: Get a list of user objects. + operationId: tenancy_tenants_list + description: Get a list of tenant objects. parameters: - in: query - name: date_joined - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: date_joined__empty - schema: - type: boolean - - in: query - name: date_joined__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: date_joined__gte + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: date_joined__lt + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: date_joined__lte + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: date_joined__n + name: contact_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: email + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: email__ie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__iew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__isw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__n + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__niew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nisw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: first_name + name: description schema: type: array items: @@ -84690,11 +85080,11 @@ paths: explode: true style: form - in: query - name: first_name__empty + name: description__empty schema: type: boolean - in: query - name: first_name__ic + name: description__ic schema: type: array items: @@ -84702,7 +85092,7 @@ paths: explode: true style: form - in: query - name: first_name__ie + name: description__ie schema: type: array items: @@ -84710,7 +85100,7 @@ paths: explode: true style: form - in: query - name: first_name__iew + name: description__iew schema: type: array items: @@ -84718,7 +85108,7 @@ paths: explode: true style: form - in: query - name: first_name__isw + name: description__isw schema: type: array items: @@ -84726,7 +85116,7 @@ paths: explode: true style: form - in: query - name: first_name__n + name: description__n schema: type: array items: @@ -84734,7 +85124,7 @@ paths: explode: true style: form - in: query - name: first_name__nic + name: description__nic schema: type: array items: @@ -84742,7 +85132,7 @@ paths: explode: true style: form - in: query - name: first_name__nie + name: description__nie schema: type: array items: @@ -84750,7 +85140,7 @@ paths: explode: true style: form - in: query - name: first_name__niew + name: description__niew schema: type: array items: @@ -84758,7 +85148,7 @@ paths: explode: true style: form - in: query - name: first_name__nisw + name: description__nisw schema: type: array items: @@ -84771,7 +85161,6 @@ paths: type: array items: type: string - description: Group (name) explode: true style: form - in: query @@ -84780,7 +85169,6 @@ paths: type: array items: type: string - description: Group (name) explode: true style: form - in: query @@ -84788,8 +85176,7 @@ paths: schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query @@ -84797,8 +85184,7 @@ paths: schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query @@ -84860,19 +85246,7 @@ paths: explode: true style: form - in: query - name: is_active - schema: - type: boolean - - in: query - name: is_staff - schema: - type: boolean - - in: query - name: is_superuser - schema: - type: boolean - - in: query - name: last_login + name: last_updated schema: type: array items: @@ -84881,11 +85255,16 @@ paths: explode: true style: form - in: query - name: last_login__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: last_login__gt + name: last_updated__gt schema: type: array items: @@ -84894,7 +85273,7 @@ paths: explode: true style: form - in: query - name: last_login__gte + name: last_updated__gte schema: type: array items: @@ -84903,7 +85282,7 @@ paths: explode: true style: form - in: query - name: last_login__lt + name: last_updated__lt schema: type: array items: @@ -84912,7 +85291,7 @@ paths: explode: true style: form - in: query - name: last_login__lte + name: last_updated__lte schema: type: array items: @@ -84921,7 +85300,7 @@ paths: explode: true style: form - in: query - name: last_login__n + name: last_updated__n schema: type: array items: @@ -84929,8 +85308,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: last_name + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84938,11 +85328,11 @@ paths: explode: true style: form - in: query - name: last_name__empty + name: name__empty schema: type: boolean - in: query - name: last_name__ic + name: name__ic schema: type: array items: @@ -84950,7 +85340,7 @@ paths: explode: true style: form - in: query - name: last_name__ie + name: name__ie schema: type: array items: @@ -84958,7 +85348,7 @@ paths: explode: true style: form - in: query - name: last_name__iew + name: name__iew schema: type: array items: @@ -84966,7 +85356,7 @@ paths: explode: true style: form - in: query - name: last_name__isw + name: name__isw schema: type: array items: @@ -84974,7 +85364,7 @@ paths: explode: true style: form - in: query - name: last_name__n + name: name__n schema: type: array items: @@ -84982,7 +85372,7 @@ paths: explode: true style: form - in: query - name: last_name__nic + name: name__nic schema: type: array items: @@ -84990,7 +85380,7 @@ paths: explode: true style: form - in: query - name: last_name__nie + name: name__nie schema: type: array items: @@ -84998,7 +85388,7 @@ paths: explode: true style: form - in: query - name: last_name__niew + name: name__niew schema: type: array items: @@ -85006,19 +85396,13 @@ paths: explode: true style: form - in: query - name: last_name__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -85032,30 +85416,24 @@ paths: schema: type: string - in: query - name: permission_id + name: q schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form + type: string + description: Search - in: query - name: permission_id__n + name: slug schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q + name: slug__empty schema: - type: string - description: Search + type: boolean - in: query - name: username + name: slug__ic schema: type: array items: @@ -85063,11 +85441,15 @@ paths: explode: true style: form - in: query - name: username__empty + name: slug__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: username__ic + name: slug__iew schema: type: array items: @@ -85075,7 +85457,7 @@ paths: explode: true style: form - in: query - name: username__ie + name: slug__isw schema: type: array items: @@ -85083,7 +85465,7 @@ paths: explode: true style: form - in: query - name: username__iew + name: slug__n schema: type: array items: @@ -85091,7 +85473,7 @@ paths: explode: true style: form - in: query - name: username__isw + name: slug__nic schema: type: array items: @@ -85099,7 +85481,7 @@ paths: explode: true style: form - in: query - name: username__n + name: slug__nie schema: type: array items: @@ -85107,7 +85489,7 @@ paths: explode: true style: form - in: query - name: username__nic + name: slug__niew schema: type: array items: @@ -85115,7 +85497,7 @@ paths: explode: true style: form - in: query - name: username__nie + name: slug__nisw schema: type: array items: @@ -85123,7 +85505,7 @@ paths: explode: true style: form - in: query - name: username__niew + name: tag schema: type: array items: @@ -85131,15 +85513,20 @@ paths: explode: true style: form - in: query - name: username__nisw + name: tag__n schema: type: array items: type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -85148,21 +85535,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUserList' + $ref: '#/components/schemas/PaginatedTenantList' description: '' post: - operationId: users_users_create - description: Post a list of user objects. + operationId: tenancy_tenants_create + description: Post a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85172,25 +85559,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: users_users_bulk_update - description: Put a list of user objects. + operationId: tenancy_tenants_bulk_update + description: Put a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85202,25 +85589,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: users_users_bulk_partial_update - description: Patch a list of user objects. + operationId: tenancy_tenants_bulk_partial_update + description: Patch a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85232,25 +85619,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: users_users_bulk_destroy - description: Delete a list of user objects. + operationId: tenancy_tenants_bulk_destroy + description: Delete a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85258,19 +85645,19 @@ paths: responses: '204': description: No response body - /api/users/users/{id}/: + /api/tenancy/tenants/{id}/: get: - operationId: users_users_retrieve - description: Get a user object. + operationId: tenancy_tenants_retrieve + description: Get a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -85279,28 +85666,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: users_users_update - description: Put a user object. + operationId: tenancy_tenants_update + description: Put a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85310,28 +85697,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: users_users_partial_update - description: Patch a user object. + operationId: tenancy_tenants_partial_update + description: Patch a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedTenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedTenantRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -85340,153 +85727,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: users_users_destroy - description: Delete a user object. + operationId: tenancy_tenants_destroy + description: Delete a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-groups/: + /api/users/config/: get: - operationId: virtualization_cluster_groups_list - description: Get a list of cluster group objects. + operationId: users_config_retrieve + description: An API endpoint via which a user can update his or her own UserConfig + data (but no one else's). + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/groups/: + get: + operationId: users_groups_list + description: Get a list of group objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - in: query name: description schema: @@ -85629,80 +85912,12 @@ paths: format: int32 explode: true style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -85787,6 +86002,24 @@ paths: type: string explode: true style: form + - in: query + name: notification_group_id + schema: + type: array + items: + type: integer + description: Notification group (ID) + explode: true + style: form + - in: query + name: notification_group_id__n + schema: + type: array + items: + type: integer + description: Notification group (ID) + explode: true + style: form - name: offset required: false in: query @@ -85800,117 +86033,48 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__ie + name: q + schema: + type: string + description: Search + - in: query + name: user_id schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - in: query - name: slug__iew + name: user_id__n schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -85919,21 +86083,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' + $ref: '#/components/schemas/PaginatedGroupList' description: '' post: - operationId: virtualization_cluster_groups_create - description: Post a list of cluster group objects. + operationId: users_groups_create + description: Post a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -85943,25 +86107,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: virtualization_cluster_groups_bulk_update - description: Put a list of cluster group objects. + operationId: users_groups_bulk_update + description: Put a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -85973,25 +86137,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: Patch a list of cluster group objects. + operationId: users_groups_bulk_partial_update + description: Patch a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86003,25 +86167,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: Delete a list of cluster group objects. + operationId: users_groups_bulk_destroy + description: Delete a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86029,19 +86193,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-groups/{id}/: + /api/users/groups/{id}/: get: - operationId: virtualization_cluster_groups_retrieve - description: Get a cluster group object. + operationId: users_groups_retrieve + description: Get a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86050,28 +86214,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: virtualization_cluster_groups_update - description: Put a cluster group object. + operationId: users_groups_update + description: Put a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86081,28 +86245,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: virtualization_cluster_groups_partial_update - description: Patch a cluster group object. + operationId: users_groups_partial_update + description: Patch a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86111,99 +86275,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: virtualization_cluster_groups_destroy - description: Delete a cluster group object. + operationId: users_groups_destroy + description: Delete a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-types/: + /api/users/permissions/: get: - operationId: virtualization_cluster_types_list - description: Get a list of cluster type objects. + operationId: users_permissions_list + description: Get a list of permission 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 + name: can_add schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__lte + name: can_change schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__n + name: can_delete schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created_by_request + name: can_view schema: - type: string - format: uuid + type: boolean - in: query name: description schema: @@ -86289,56 +86401,47 @@ paths: explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty + name: enabled schema: type: boolean - in: query - name: id__gt + name: group schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__gte + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__lt + name: group_id schema: type: array items: type: integer - format: int32 + description: Group explode: true style: form - in: query - name: id__lte + name: group_id__n schema: type: array items: type: integer - format: int32 + description: Group explode: true style: form - in: query - name: id__n + name: id schema: type: array items: @@ -86347,66 +86450,52 @@ paths: 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: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - name: limit @@ -86415,11 +86504,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -86504,130 +86588,133 @@ paths: 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: object_type schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + - in: query + name: object_type__ic schema: type: string - in: query - name: q + name: object_type__ie schema: type: string - description: Search - in: query - name: slug + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__empty + name: object_type__isw schema: - type: boolean + type: string - in: query - name: slug__ic + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__ie + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__iew + name: object_type__nie schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__isw + 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 + type: integer explode: true style: form - in: query - name: slug__n + name: object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__nic + name: object_types schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__nie + name: object_types__n schema: type: array items: - type: string + 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: slug__niew + name: q + schema: + type: string + description: Search + - in: query + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: slug__nisw + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag + name: user_id schema: type: array items: - type: string + type: integer + description: User explode: true style: form - in: query - name: tag__n + name: user_id__n schema: type: array items: - type: string + type: integer + description: User explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86636,21 +86723,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' + $ref: '#/components/schemas/PaginatedObjectPermissionList' description: '' post: - operationId: virtualization_cluster_types_create - description: Post a list of cluster type objects. + operationId: users_permissions_create + description: Post a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86660,25 +86747,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: virtualization_cluster_types_bulk_update - description: Put a list of cluster type objects. + operationId: users_permissions_bulk_update + description: Put a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86690,25 +86777,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: Patch a list of cluster type objects. + operationId: users_permissions_bulk_partial_update + description: Patch a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86720,25 +86807,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: virtualization_cluster_types_bulk_destroy - description: Delete a list of cluster type objects. + operationId: users_permissions_bulk_destroy + description: Delete a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86746,19 +86833,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-types/{id}/: + /api/users/permissions/{id}/: get: - operationId: virtualization_cluster_types_retrieve - description: Get a cluster type object. + operationId: users_permissions_retrieve + description: Get a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86767,28 +86854,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: virtualization_cluster_types_update - description: Put a cluster type object. + operationId: users_permissions_update + description: Put a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86798,28 +86885,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: virtualization_cluster_types_partial_update - description: Patch a cluster type object. + operationId: users_permissions_partial_update + description: Patch a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86828,153 +86915,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: virtualization_cluster_types_destroy - description: Delete a cluster type object. + operationId: users_permissions_destroy + description: Delete a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/clusters/: + /api/users/tokens/: get: - operationId: virtualization_clusters_list - description: Get a list of cluster objects. + operationId: users_tokens_list + description: Get a list of token objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - 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 + type: string + format: date-time - 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 + format: date-time - in: query name: description schema: @@ -87060,43 +87040,20 @@ paths: explode: true style: form - in: query - name: group - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group__n + name: expires schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id + name: expires__gte schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id__n + name: expires__lte schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form + type: string + format: date-time - in: query name: id schema: @@ -87156,81 +87113,59 @@ paths: explode: true style: form - in: query - name: last_updated + name: key schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: key__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: key__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: key__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: key__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: key__n schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: key__nic schema: type: array items: @@ -87238,11 +87173,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: key__nie schema: type: array items: @@ -87250,7 +87181,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: key__niew schema: type: array items: @@ -87258,7 +87189,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: key__nisw schema: type: array items: @@ -87266,53 +87197,69 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_used schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_used__empty + schema: + type: boolean + - in: query + name: last_used__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_used__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_used__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_used__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_used__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 - name: offset required: false in: query @@ -87331,266 +87278,47 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type + name: user schema: type: array items: type: string - description: Cluster type (slug) + description: User (name) explode: true style: form - in: query - name: type__n + name: user__n schema: type: array items: type: string - description: Cluster type (slug) + description: User (name) explode: true style: form - in: query - name: type_id + name: user_id schema: type: array items: type: integer - description: Cluster type (ID) + description: User explode: true style: form - in: query - name: type_id__n + name: user_id__n schema: type: array items: type: integer - description: Cluster type (ID) + description: User explode: true style: form - in: query - name: updated_by_request + name: write_enabled schema: - type: string - format: uuid + type: boolean tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -87599,21 +87327,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterList' + $ref: '#/components/schemas/PaginatedTokenList' description: '' post: - operationId: virtualization_clusters_create - description: Post a list of cluster objects. + operationId: users_tokens_create + description: Post a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87623,25 +87351,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' put: - operationId: virtualization_clusters_bulk_update - description: Put a list of cluster objects. + operationId: users_tokens_bulk_update + description: Put a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87653,25 +87381,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: virtualization_clusters_bulk_partial_update - description: Patch a list of cluster objects. + operationId: users_tokens_bulk_partial_update + description: Patch a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87683,25 +87411,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: virtualization_clusters_bulk_destroy - description: Delete a list of cluster objects. + operationId: users_tokens_bulk_destroy + description: Delete a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87709,19 +87437,19 @@ paths: responses: '204': description: No response body - /api/virtualization/clusters/{id}/: + /api/users/tokens/{id}/: get: - operationId: virtualization_clusters_retrieve - description: Get a cluster object. + operationId: users_tokens_retrieve + description: Get a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -87730,28 +87458,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' put: - operationId: virtualization_clusters_update - description: Put a cluster object. + operationId: users_tokens_update + description: Put a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87761,28 +87489,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: virtualization_clusters_partial_update - description: Patch a cluster object. + operationId: users_tokens_partial_update + description: Patch a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedTokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedTokenRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -87791,87 +87519,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: virtualization_clusters_destroy - description: Delete a cluster object. + operationId: users_tokens_destroy + description: Delete a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/interfaces/: + /api/users/tokens/provision/: + post: + operationId: users_tokens_provision_create + description: Non-authenticated REST API endpoint via which a user may create + a Token. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/users/: get: - operationId: virtualization_interfaces_list - description: Get a list of interface objects. + operationId: users_users_list + description: Get a list of user objects. parameters: - in: query - name: bridge_id + name: date_joined schema: type: array items: - type: integer - description: Bridged interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: bridge_id__n + name: date_joined__empty schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form + type: boolean - in: query - name: cluster + name: date_joined__gt schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster__n + name: date_joined__gte schema: type: array items: type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - description: Cluster (ID) + format: date-time explode: true style: form - in: query - name: cluster_id__n + name: date_joined__lt schema: type: array items: - type: integer - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: created + name: date_joined__lte schema: type: array items: @@ -87880,7 +87627,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: date_joined__n schema: type: array items: @@ -87889,57 +87636,51 @@ paths: explode: true style: form - in: query - name: created__gt + name: email schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: email__empty + schema: + type: boolean + - in: query + name: email__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: email__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: email__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: email__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: email__n schema: type: array items: @@ -87947,11 +87688,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: email__nic schema: type: array items: @@ -87959,7 +87696,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: email__nie schema: type: array items: @@ -87967,7 +87704,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: email__niew schema: type: array items: @@ -87975,7 +87712,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: email__nisw schema: type: array items: @@ -87983,7 +87720,7 @@ paths: explode: true style: form - in: query - name: description__n + name: first_name schema: type: array items: @@ -87991,7 +87728,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: first_name__empty + schema: + type: boolean + - in: query + name: first_name__ic schema: type: array items: @@ -87999,7 +87740,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: first_name__ie schema: type: array items: @@ -88007,7 +87748,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: first_name__iew schema: type: array items: @@ -88015,7 +87756,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: first_name__isw schema: type: array items: @@ -88023,254 +87764,211 @@ paths: explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: first_name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: first_name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: first_name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: first_name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: first_name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: group schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: l2vpn + name: group__n schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + description: Group (name) explode: true style: form - in: query - name: l2vpn__n + name: group_id schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + description: Group explode: true style: form - in: query - name: l2vpn_id + name: group_id__n schema: type: array items: type: integer - description: L2VPN (ID) + description: Group explode: true style: form - in: query - name: l2vpn_id__n + name: id schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: last_updated + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__empty + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 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. + name: is_active schema: - type: integer + type: boolean - in: query - name: mac_address + name: is_staff schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__ic + name: is_superuser schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__ie + name: last_login schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__iew + name: last_login__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__isw + name: last_login__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__n + name: last_login__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nic + name: last_login__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nie + name: last_login__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__niew + name: last_login__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nisw + name: last_name schema: type: array items: @@ -88278,104 +87976,19 @@ paths: explode: true style: form - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty + name: last_name__empty schema: type: boolean - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n + name: last_name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: name + name: last_name__ie schema: type: array items: @@ -88383,11 +87996,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: last_name__iew schema: type: array items: @@ -88395,7 +88004,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_name__isw schema: type: array items: @@ -88403,7 +88012,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_name__n schema: type: array items: @@ -88411,7 +88020,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_name__nic schema: type: array items: @@ -88419,7 +88028,7 @@ paths: explode: true style: form - in: query - name: name__n + name: last_name__nie schema: type: array items: @@ -88427,7 +88036,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: last_name__niew schema: type: array items: @@ -88435,27 +88044,35 @@ paths: explode: true style: form - in: query - name: name__nie + name: last_name__nisw schema: type: array items: type: string explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: name__niew + name: notification_group_id schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - in: query - name: name__nisw + name: notification_group_id__n schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - name: offset @@ -88471,21 +88088,21 @@ paths: schema: type: string - in: query - name: parent_id + name: permission_id schema: type: array items: type: integer - description: Parent interface (ID) + description: Permission (ID) explode: true style: form - in: query - name: parent_id__n + name: permission_id__n schema: type: array items: type: integer - description: Parent interface (ID) + description: Permission (ID) explode: true style: form - in: query @@ -88494,7 +88111,7 @@ paths: type: string description: Search - in: query - name: tag + name: username schema: type: array items: @@ -88502,7 +88119,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: username__empty + schema: + type: boolean + - in: query + name: username__ic schema: type: array items: @@ -88510,98 +88131,71 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: username__ie schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine__n + name: username__iew schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine_id + name: username__isw schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: username__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf + name: username__nic schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: username__nie schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: username__niew schema: type: array items: - type: integer - description: VRF + type: string explode: true style: form - in: query - name: vrf_id__n + name: username__nisw schema: type: array items: - type: integer - description: VRF + type: string explode: true style: form tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -88610,21 +88204,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVMInterfaceList' + $ref: '#/components/schemas/PaginatedUserList' description: '' post: - operationId: virtualization_interfaces_create - description: Post a list of interface objects. + operationId: users_users_create + description: Post a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88634,25 +88228,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' put: - operationId: virtualization_interfaces_bulk_update - description: Put a list of interface objects. + operationId: users_users_bulk_update + description: Put a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88664,25 +88258,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: users_users_bulk_partial_update + description: Patch a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88694,25 +88288,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' delete: - operationId: virtualization_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: users_users_bulk_destroy + description: Delete a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88720,19 +88314,19 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/{id}/: + /api/users/users/{id}/: get: - operationId: virtualization_interfaces_retrieve - description: Get a interface object. + operationId: users_users_retrieve + description: Get a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -88741,28 +88335,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' put: - operationId: virtualization_interfaces_update - description: Put a interface object. + operationId: users_users_update + description: Put a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88772,28 +88366,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' patch: - operationId: virtualization_interfaces_partial_update - description: Patch a interface object. + operationId: users_users_partial_update + description: Patch a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedUserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedUserRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -88802,31 +88396,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' delete: - operationId: virtualization_interfaces_destroy - description: Delete a interface object. + operationId: users_users_destroy + description: Delete a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-disks/: + /api/virtualization/cluster-groups/: get: - operationId: virtualization_virtual_disks_list - description: Get a list of virtual disk objects. + operationId: virtualization_cluster_groups_list + description: Get a list of cluster group objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: 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: @@ -89213,65 +88859,59 @@ paths: type: string description: Search - in: query - name: size + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: slug__empty schema: type: boolean - in: query - name: size__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: slug__nic schema: type: array items: @@ -89279,7 +88919,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nie schema: type: array items: @@ -89287,46 +88927,42 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: slug__niew schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine__n + name: slug__nisw schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine_id + name: tag schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: tag__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - virtualization security: @@ -89337,21 +88973,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDiskList' + $ref: '#/components/schemas/PaginatedClusterGroupList' description: '' post: - operationId: virtualization_virtual_disks_create - description: Post a list of virtual disk objects. + operationId: virtualization_cluster_groups_create + description: Post a list of cluster group objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89361,11 +88997,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: virtualization_virtual_disks_bulk_update - description: Put a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_update + description: Put a list of cluster group objects. tags: - virtualization requestBody: @@ -89374,12 +89010,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89391,11 +89027,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: virtualization_virtual_disks_bulk_partial_update - description: Patch a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_partial_update + description: Patch a list of cluster group objects. tags: - virtualization requestBody: @@ -89404,12 +89040,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89421,11 +89057,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: virtualization_virtual_disks_bulk_destroy - description: Delete a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_destroy + description: Delete a list of cluster group objects. tags: - virtualization requestBody: @@ -89434,12 +89070,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89447,16 +89083,16 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-disks/{id}/: + /api/virtualization/cluster-groups/{id}/: get: - operationId: virtualization_virtual_disks_retrieve - description: Get a virtual disk object. + operationId: virtualization_cluster_groups_retrieve + description: Get a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89468,17 +89104,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: virtualization_virtual_disks_update - description: Put a virtual disk object. + operationId: virtualization_cluster_groups_update + description: Put a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89486,10 +89122,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89499,17 +89135,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: virtualization_virtual_disks_partial_update - description: Patch a virtual disk object. + operationId: virtualization_cluster_groups_partial_update + description: Patch a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89517,10 +89153,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -89529,17 +89165,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: virtualization_virtual_disks_destroy - description: Delete a virtual disk object. + operationId: virtualization_cluster_groups_destroy + description: Delete a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89549,197 +89185,223 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/: + /api/virtualization/cluster-types/: get: - operationId: virtualization_virtual_machines_list - description: Get a list of virtual machine objects. + operationId: virtualization_cluster_types_list + description: Get a list of cluster type objects. parameters: - in: query - name: cluster + name: created schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster__n + name: created__empty schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster_group + name: created__gt schema: type: array items: type: string - description: Cluster group (slug) + format: date-time explode: true style: form - in: query - name: cluster_group__n + name: created__gte schema: type: array items: type: string - description: Cluster group (slug) + format: date-time explode: true style: form - in: query - name: cluster_group_id + name: created__lt schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_group_id__n + name: created__lte schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id + name: created__n schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string explode: true style: form - in: query - name: cluster_type + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: description__ie schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type_id + name: description__iew schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query - name: cluster_type_id__n + name: description__isw schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query - name: config_template_id + name: description__n schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: config_template_id__n + name: description__nic schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: contact + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -89748,7 +89410,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -89757,7 +89419,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -89766,7 +89428,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -89775,7 +89437,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -89784,7 +89446,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -89793,7 +89455,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -89801,13 +89463,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -89815,11 +89483,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -89827,7 +89495,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -89835,7 +89503,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -89843,7 +89511,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -89851,7 +89519,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -89859,7 +89527,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -89867,7 +89535,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -89875,7 +89543,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -89883,234 +89551,425 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device + name: q schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form + type: string + description: Search - in: query - name: device__n + name: slug schema: type: array items: type: string - nullable: true - description: Device explode: true style: form - in: query - name: device_id + name: slug__empty schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form + type: boolean - in: query - name: device_id__n + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: disk + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__empty - schema: - type: boolean - - in: query - name: disk__gt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__gte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__lt + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__lte + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__n + name: slug__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterTypeList' + description: '' + post: + operationId: virtualization_cluster_types_create + description: Post a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + put: + operationId: virtualization_cluster_types_bulk_update + description: Put a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterType' + description: '' + patch: + operationId: virtualization_cluster_types_bulk_partial_update + description: Patch a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterType' + description: '' + delete: + operationId: virtualization_cluster_types_bulk_destroy + description: Delete a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/cluster-types/{id}/: + get: + operationId: virtualization_cluster_types_retrieve + description: Get a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + put: + operationId: virtualization_cluster_types_update + description: Put a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + patch: + operationId: virtualization_cluster_types_partial_update + description: Patch a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedClusterTypeRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + delete: + operationId: virtualization_cluster_types_destroy + description: Delete a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/clusters/: + get: + operationId: virtualization_clusters_list + description: Get a list of cluster objects. + parameters: - in: query - name: id__n + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: interface_count + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__gte + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: interface_count__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: interface_count__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: created__empty schema: type: array items: @@ -90119,7 +89978,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__gt schema: type: array items: @@ -90128,7 +89987,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gte schema: type: array items: @@ -90137,7 +89996,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__lt schema: type: array items: @@ -90146,7 +90005,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lte schema: type: array items: @@ -90155,7 +90014,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__n schema: type: array items: @@ -90164,27 +90023,24 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: local_context_data + name: description__empty schema: type: boolean - description: Has local config context data - in: query - name: mac_address + name: description__ic schema: type: array items: @@ -90192,7 +90048,7 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: description__ie schema: type: array items: @@ -90200,7 +90056,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: description__iew schema: type: array items: @@ -90208,7 +90064,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: description__isw schema: type: array items: @@ -90216,7 +90072,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: description__n schema: type: array items: @@ -90224,7 +90080,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: description__nic schema: type: array items: @@ -90232,7 +90088,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: description__nie schema: type: array items: @@ -90240,7 +90096,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: description__niew schema: type: array items: @@ -90248,7 +90104,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: description__nisw schema: type: array items: @@ -90256,46 +90112,45 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: group schema: type: array items: type: string + description: Parent group (slug) explode: true style: form - in: query - name: memory + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Parent group (slug) explode: true style: form - in: query - name: memory__empty - schema: - type: boolean - - in: query - name: memory__gt + name: group_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent group (ID) explode: true style: form - in: query - name: memory__gte + name: group_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent group (ID) explode: true style: form - in: query - name: memory__lt + name: id schema: type: array items: @@ -90304,7 +90159,11 @@ paths: explode: true style: form - in: query - name: memory__lte + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -90313,7 +90172,7 @@ paths: explode: true style: form - in: query - name: memory__n + name: id__gte schema: type: array items: @@ -90322,257 +90181,237 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: platform + name: name schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: name__empty schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form + type: boolean - in: query - name: platform_id + name: name__ic schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: name__ie schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id + name: name__iew schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: name__isw schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: name__n schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: name__nic schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: name__nie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: name__niew schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: name__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: region_id__n + name: q schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: string + description: Search - in: query - name: role + name: region schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: region__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: region_id schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: region_id__n schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query @@ -90598,8 +90437,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -90607,8 +90445,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -90616,8 +90453,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -90625,8 +90461,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -90655,7 +90490,7 @@ paths: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 79d20a734d0eecbb explode: true style: form - in: query @@ -90664,7 +90499,7 @@ paths: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 79d20a734d0eecbb explode: true style: form - in: query @@ -90706,8 +90541,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90715,8 +90549,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90724,8 +90557,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90733,8 +90565,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90758,126 +90589,46 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vcpus - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__empty - schema: - type: boolean - - in: query - name: vcpus__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lt + name: type schema: type: array items: - type: number - format: double + type: string + description: Cluster type (slug) explode: true style: form - in: query - name: vcpus__lte + name: type__n schema: type: array items: - type: number - format: double + type: string + description: Cluster type (slug) explode: true style: form - in: query - name: vcpus__n + name: type_id schema: type: array items: - type: number - format: double + type: integer + description: Cluster type (ID) explode: true style: form - in: query - name: virtual_disk_count + name: type_id__n schema: type: array items: type: integer - format: int32 + description: Cluster type (ID) explode: true style: form - in: query - name: virtual_disk_count__empty - schema: - type: boolean - - in: query - name: virtual_disk_count__gt + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - virtualization security: @@ -90888,21 +90639,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + $ref: '#/components/schemas/PaginatedClusterList' description: '' post: - operationId: virtualization_virtual_machines_create - description: Post a list of virtual machine objects. + operationId: virtualization_clusters_create + description: Post a list of cluster objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -90912,11 +90663,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: virtualization_virtual_machines_bulk_update - description: Put a list of virtual machine objects. + operationId: virtualization_clusters_bulk_update + description: Put a list of cluster objects. tags: - virtualization requestBody: @@ -90925,12 +90676,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90942,11 +90693,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: Patch a list of virtual machine objects. + operationId: virtualization_clusters_bulk_partial_update + description: Patch a list of cluster objects. tags: - virtualization requestBody: @@ -90955,12 +90706,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90972,11 +90723,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: Delete a list of virtual machine objects. + operationId: virtualization_clusters_bulk_destroy + description: Delete a list of cluster objects. tags: - virtualization requestBody: @@ -90985,12 +90736,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90998,16 +90749,16 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/: + /api/virtualization/clusters/{id}/: get: - operationId: virtualization_virtual_machines_retrieve - description: Get a virtual machine object. + operationId: virtualization_clusters_retrieve + description: Get a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91019,17 +90770,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: virtualization_virtual_machines_update - description: Put a virtual machine object. + operationId: virtualization_clusters_update + description: Put a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91037,10 +90788,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -91050,17 +90801,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: virtualization_virtual_machines_partial_update - description: Patch a virtual machine object. + operationId: virtualization_clusters_partial_update + description: Patch a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91068,10 +90819,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91080,17 +90831,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: virtualization_virtual_machines_destroy - description: Delete a virtual machine object. + operationId: virtualization_clusters_destroy + description: Delete a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91100,53 +90851,65 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/render-config/: - post: - operationId: virtualization_virtual_machines_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/virtualization/interfaces/: + get: + operationId: virtualization_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: format + name: bridge_id schema: - type: string - enum: - - json - - txt - - in: path - name: id + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: bridge_id__n schema: - type: integer - description: A unique integer value identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - /api/vpn/ike-policies/: - get: - operationId: vpn_ike_policies_list - description: Get a list of IKE policy objects. - parameters: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + description: Cluster (ID) + explode: true + style: form - in: query name: created schema: @@ -91299,6 +91062,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -91358,35 +91125,47 @@ paths: explode: true style: form - in: query - name: ike_proposal + name: l2vpn schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: ike_proposal__n + name: l2vpn__n schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: ike_proposal_id + name: l2vpn_id schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query - name: ike_proposal_id__n + name: l2vpn_id__n schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query @@ -91459,28 +91238,182 @@ paths: schema: type: integer - in: query - name: mode + name: mac_address schema: type: array items: type: string - x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form - in: query - name: mode__n + name: mac_address__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__iew schema: type: array items: type: string - x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form + - in: query + name: mac_address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: mode__n + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: mtu + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__empty + schema: + type: boolean + - in: query + name: mtu__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: name schema: @@ -91578,123 +91511,137 @@ paths: schema: type: string - in: query - name: preshared_key - schema: - type: string - - in: query - name: preshared_key__ic - schema: - type: string - - in: query - name: preshared_key__ie - schema: - type: string - - in: query - name: preshared_key__iew - schema: - type: string - - in: query - name: preshared_key__isw + name: parent_id schema: - type: string + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form - in: query - name: preshared_key__n + name: parent_id__n schema: - type: string + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form - in: query - name: preshared_key__nic + name: q schema: type: string + description: Search - in: query - name: preshared_key__nie + name: tag schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__niew + name: tag__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nisw + name: updated_by_request schema: type: string + format: uuid - in: query - name: proposal + name: virtual_machine schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: proposal__n + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: proposal_id + name: virtual_machine_id schema: type: array items: type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: proposal_id__n + name: virtual_machine_id__n schema: type: array items: type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: q + name: vlan schema: type: string - description: Search + description: Assigned VID - in: query - name: tag + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tag__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: version + name: vrf_id schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + description: VRF explode: true style: form - in: query - name: version__n + name: vrf_id__n schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + description: VRF explode: true style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -91703,21 +91650,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEPolicyList' + $ref: '#/components/schemas/PaginatedVMInterfaceList' description: '' post: - operationId: vpn_ike_policies_create - description: Post a list of IKE policy objects. + operationId: virtualization_interfaces_create + description: Post a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91727,25 +91674,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: vpn_ike_policies_bulk_update - description: Put a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_update + description: Put a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91757,25 +91704,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: vpn_ike_policies_bulk_partial_update - description: Patch a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91787,25 +91734,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: vpn_ike_policies_bulk_destroy - description: Delete a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91813,19 +91760,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-policies/{id}/: + /api/virtualization/interfaces/{id}/: get: - operationId: vpn_ike_policies_retrieve - description: Get a IKE policy object. + operationId: virtualization_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -91834,28 +91781,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: vpn_ike_policies_update - description: Put a IKE policy object. + operationId: virtualization_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91865,28 +91812,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: vpn_ike_policies_partial_update - description: Patch a IKE policy object. + operationId: virtualization_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91895,67 +91842,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: vpn_ike_policies_destroy - description: Delete a IKE policy object. + operationId: virtualization_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ike-proposals/: + /api/virtualization/virtual-disks/: get: - operationId: vpn_ike_proposals_list - description: Get a list of IKE proposal objects. + operationId: virtualization_virtual_disks_list + description: Get a list of virtual disk objects. parameters: - - in: query - name: authentication_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form - - in: query - name: authentication_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form - - in: query - name: authentication_method - schema: - type: array - items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 - explode: true - style: form - - in: query - name: authentication_method__n - schema: - type: array - items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 - explode: true - style: form - in: query name: created schema: @@ -92108,44 +92019,6 @@ paths: type: string explode: true style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID - explode: true - style: form - in: query name: id schema: @@ -92204,42 +92077,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy_id - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ike_policy_id__n - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -92416,7 +92253,7 @@ paths: type: string description: Search - in: query - name: sa_lifetime + name: size schema: type: array items: @@ -92425,11 +92262,11 @@ paths: explode: true style: form - in: query - name: sa_lifetime__empty + name: size__empty schema: type: boolean - in: query - name: sa_lifetime__gt + name: size__gt schema: type: array items: @@ -92438,7 +92275,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__gte + name: size__gte schema: type: array items: @@ -92447,7 +92284,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__lt + name: size__lt schema: type: array items: @@ -92456,7 +92293,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__lte + name: size__lte schema: type: array items: @@ -92465,7 +92302,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__n + name: size__n schema: type: array items: @@ -92494,8 +92331,44 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -92504,21 +92377,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEProposalList' + $ref: '#/components/schemas/PaginatedVirtualDiskList' description: '' post: - operationId: vpn_ike_proposals_create - description: Post a list of IKE proposal objects. + operationId: virtualization_virtual_disks_create + description: Post a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92528,25 +92401,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: vpn_ike_proposals_bulk_update - description: Put a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_update + description: Put a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92558,25 +92431,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: vpn_ike_proposals_bulk_partial_update - description: Patch a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_partial_update + description: Patch a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92588,25 +92461,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: vpn_ike_proposals_bulk_destroy - description: Delete a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_destroy + description: Delete a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92614,19 +92487,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/{id}/: + /api/virtualization/virtual-disks/{id}/: get: - operationId: vpn_ike_proposals_retrieve - description: Get a IKE proposal object. + operationId: virtualization_virtual_disks_retrieve + description: Get a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -92635,28 +92508,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: vpn_ike_proposals_update - description: Put a IKE proposal object. + operationId: virtualization_virtual_disks_update + description: Put a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92666,28 +92539,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: vpn_ike_proposals_partial_update - description: Patch a IKE proposal object. + operationId: virtualization_virtual_disks_partial_update + description: Patch a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -92696,31 +92569,213 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: vpn_ike_proposals_destroy - description: Delete a IKE proposal object. + operationId: virtualization_virtual_disks_destroy + description: Delete a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-policies/: + /api/virtualization/virtual-machines/: get: - operationId: vpn_ipsec_policies_list - description: Get a list of IPSec policy objects. + operationId: virtualization_virtual_machines_list + description: Get a list of virtual machine objects. parameters: + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_group + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group__n + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group_id + schema: + type: array + items: + type: integer + description: Cluster group (ID) + explode: true + style: form + - in: query + name: cluster_group_id__n + schema: + type: array + items: + type: integer + description: Cluster group (ID) + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -92873,6 +92928,109 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: disk + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__empty + schema: + type: boolean + - in: query + name: disk__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP - in: query name: id schema: @@ -92932,35 +93090,61 @@ paths: explode: true style: form - in: query - name: ipsec_proposal + name: interface_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal__n + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal_id + name: interface_count__gte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal_id__n + name: interface_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__n schema: type: array items: type: integer + format: int32 explode: true style: form - in: query @@ -93033,12 +93217,12 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: local_context_data schema: - type: string - format: uuid + type: boolean + description: Has local config context data - in: query - name: name + name: mac_address schema: type: array items: @@ -93046,11 +93230,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__ic schema: type: array items: @@ -93058,7 +93238,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__ie schema: type: array items: @@ -93066,7 +93246,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__iew schema: type: array items: @@ -93074,7 +93254,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__isw schema: type: array items: @@ -93082,7 +93262,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__n schema: type: array items: @@ -93090,7 +93270,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__nic schema: type: array items: @@ -93098,7 +93278,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nie schema: type: array items: @@ -93106,7 +93286,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: mac_address__niew schema: type: array items: @@ -93114,86 +93294,78 @@ paths: explode: true style: form - in: query - name: name__nisw + name: mac_address__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: pfs_group + name: memory schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + format: int32 explode: true style: form - in: query - name: pfs_group__n + name: memory__empty + schema: + type: boolean + - in: query + name: memory__gt schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + format: int32 explode: true style: form - in: query - name: proposal + name: memory__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: proposal__n + name: memory__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: proposal_id + name: memory__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: proposal_id__n + name: memory__n schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: tag + name: name schema: type: array items: @@ -93201,7 +93373,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -93209,375 +93385,162 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedIPSecPolicyList' - description: '' - post: - operationId: vpn_ipsec_policies_create - description: Post a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - put: - operationId: vpn_ipsec_policies_bulk_update - description: Put a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - patch: - operationId: vpn_ipsec_policies_bulk_partial_update - description: Patch a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - delete: - operationId: vpn_ipsec_policies_bulk_destroy - description: Delete a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/ipsec-policies/{id}/: - get: - operationId: vpn_ipsec_policies_retrieve - description: Get a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - put: - operationId: vpn_ipsec_policies_update - description: Put a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - patch: - operationId: vpn_ipsec_policies_partial_update - description: Patch a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - delete: - operationId: vpn_ipsec_policies_destroy - description: Delete a IPSec policy object. - parameters: - - in: path - name: id + name: name__ie schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/ipsec-profiles/: - get: - operationId: vpn_ipsec_profiles_list - description: Get a list of IPSec profile objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: created + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - in: query - name: created_by_request + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: description + name: platform schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: platform__n schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: description__ie + name: platform_id schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: description__iew + name: platform_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: description__isw + name: primary_ip4_id schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: description__n + name: primary_ip4_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: description__nic + name: primary_ip6_id schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: description__nie + name: primary_ip6_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: description__niew + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -93585,7 +93548,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: region__n schema: type: array items: @@ -93593,257 +93556,233 @@ paths: explode: true style: form - in: query - name: id + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: id__lt + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: id__lte + name: role_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Role (ID) explode: true style: form - in: query - name: id__n + name: role_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Role (ID) explode: true style: form - in: query - name: ike_policy + name: serial schema: type: array items: type: string - description: IKE policy (name) explode: true style: form - in: query - name: ike_policy__n + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - description: IKE policy (name) explode: true style: form - in: query - name: ike_policy_id + name: serial__ie schema: type: array items: - type: integer - description: IKE policy (ID) + type: string explode: true style: form - in: query - name: ike_policy_id__n + name: serial__iew schema: type: array items: - type: integer - description: IKE policy (ID) + type: string explode: true style: form - in: query - name: ipsec_policy + name: serial__isw schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy__n + name: serial__n schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy_id + name: serial__nic schema: type: array items: - type: integer - description: IPSec policy (ID) + type: string explode: true style: form - in: query - name: ipsec_policy_id__n + name: serial__nie schema: type: array items: - type: integer - description: IPSec policy (ID) + type: string explode: true style: form - in: query - name: last_updated + name: serial__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: serial__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: site schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__gte + name: site__n schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__lt + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: site_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: site_group_id schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mode + name: site_group_id__n schema: type: array items: type: string - x-spec-enum-id: 1136c2cdfee84436 explode: true style: form - in: query - name: mode__n + name: site_id schema: type: array items: - type: string - x-spec-enum-id: 1136c2cdfee84436 + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__ie + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__iew + name: tag schema: type: array items: @@ -93851,7 +93790,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: tag__n schema: type: array items: @@ -93859,23 +93798,25 @@ paths: explode: true style: form - in: query - name: name__n + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nic + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nie + name: tenant_group schema: type: array items: @@ -93883,7 +93824,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tenant_group__n schema: type: array items: @@ -93891,44 +93832,39 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tenant_group_id schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: tenant_group_id__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -93936,8 +93872,124 @@ paths: schema: type: string format: uuid + - in: query + name: vcpus + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__empty + schema: + type: boolean + - in: query + name: vcpus__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: virtual_disk_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__empty + schema: + type: boolean + - in: query + name: virtual_disk_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -93946,21 +93998,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProfileList' + $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' description: '' post: - operationId: vpn_ipsec_profiles_create - description: Post a list of IPSec profile objects. + operationId: virtualization_virtual_machines_create + description: Post a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -93970,25 +94022,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: vpn_ipsec_profiles_bulk_update - description: Put a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_update + description: Put a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94000,25 +94052,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: vpn_ipsec_profiles_bulk_partial_update - description: Patch a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_partial_update + description: Patch a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94030,25 +94082,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: vpn_ipsec_profiles_bulk_destroy - description: Delete a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_destroy + description: Delete a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94056,19 +94108,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/{id}/: + /api/virtualization/virtual-machines/{id}/: get: - operationId: vpn_ipsec_profiles_retrieve - description: Get a IPSec profile object. + operationId: virtualization_virtual_machines_retrieve + description: Get a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -94077,28 +94129,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: vpn_ipsec_profiles_update - description: Put a IPSec profile object. + operationId: virtualization_virtual_machines_update + description: Put a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94108,28 +94160,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: vpn_ipsec_profiles_partial_update - description: Patch a IPSec profile object. + operationId: virtualization_virtual_machines_partial_update + description: Patch a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94138,51 +94190,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: vpn_ipsec_profiles_destroy - description: Delete a IPSec profile object. + operationId: virtualization_virtual_machines_destroy + description: Delete a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-proposals/: - get: - operationId: vpn_ipsec_proposals_list - description: Get a list of IPSec proposal objects. + /api/virtualization/virtual-machines/{id}/render-config/: + post: + operationId: virtualization_virtual_machines_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: - in: query - name: authentication_algorithm + name: format schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - - in: query - name: authentication_algorithm__n + type: string + enum: + - json + - txt + - in: path + name: id schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + /api/vpn/ike-policies/: + get: + operationId: vpn_ike_policies_list + description: Get a list of IKE policy objects. + parameters: - in: query name: created schema: @@ -94335,26 +94409,6 @@ paths: type: string explode: true style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - in: query name: id schema: @@ -94414,39 +94468,35 @@ paths: explode: true style: form - in: query - name: ipsec_policy + name: ike_proposal schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy__n + name: ike_proposal__n schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy_id + name: ike_proposal_id schema: type: array items: type: integer - description: IPSec policy (ID) explode: true style: form - in: query - name: ipsec_policy_id__n + name: ike_proposal_id__n schema: type: array items: type: integer - description: IPSec policy (ID) explode: true style: form - in: query @@ -94518,6 +94568,24 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + explode: true + style: form - in: query name: modified_by_request schema: @@ -94620,147 +94688,89 @@ paths: schema: type: string - in: query - name: q + name: preshared_key schema: type: string - description: Search - in: query - name: sa_lifetime_data + name: preshared_key__ic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__empty + name: preshared_key__ie schema: - type: boolean + type: string - in: query - name: sa_lifetime_data__gt + name: preshared_key__iew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__gte + name: preshared_key__isw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__lt + name: preshared_key__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__lte + name: preshared_key__nic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__n + name: preshared_key__nie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_seconds + name: preshared_key__niew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_seconds__empty + name: preshared_key__nisw schema: - type: boolean + type: string - in: query - name: sa_lifetime_seconds__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: sa_lifetime_seconds__gte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lte + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: sa_lifetime_seconds__n + name: version schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string + x-spec-enum-id: 00872b77916a1fde explode: true style: form - in: query - name: tag__n + name: version__n schema: type: array items: - type: string + type: integer + x-spec-enum-id: 00872b77916a1fde explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - vpn security: @@ -94771,21 +94781,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProposalList' + $ref: '#/components/schemas/PaginatedIKEPolicyList' description: '' post: - operationId: vpn_ipsec_proposals_create - description: Post a list of IPSec proposal objects. + operationId: vpn_ike_policies_create + description: Post a list of IKE policy objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94795,11 +94805,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: vpn_ipsec_proposals_bulk_update - description: Put a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_update + description: Put a list of IKE policy objects. tags: - vpn requestBody: @@ -94808,12 +94818,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94825,11 +94835,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: vpn_ipsec_proposals_bulk_partial_update - description: Patch a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_partial_update + description: Patch a list of IKE policy objects. tags: - vpn requestBody: @@ -94838,12 +94848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94855,11 +94865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: vpn_ipsec_proposals_bulk_destroy - description: Delete a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_destroy + description: Delete a list of IKE policy objects. tags: - vpn requestBody: @@ -94868,12 +94878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94881,16 +94891,16 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/{id}/: + /api/vpn/ike-policies/{id}/: get: - operationId: vpn_ipsec_proposals_retrieve - description: Get a IPSec proposal object. + operationId: vpn_ike_policies_retrieve + description: Get a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94902,17 +94912,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: vpn_ipsec_proposals_update - description: Put a IPSec proposal object. + operationId: vpn_ike_policies_update + description: Put a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94920,10 +94930,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94933,17 +94943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: vpn_ipsec_proposals_partial_update - description: Patch a IPSec proposal object. + operationId: vpn_ike_policies_partial_update + description: Patch a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94951,10 +94961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94963,17 +94973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: vpn_ipsec_proposals_destroy - description: Delete a IPSec proposal object. + operationId: vpn_ike_policies_destroy + description: Delete a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94983,79 +94993,85 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/: + /api/vpn/ike-proposals/: get: - operationId: vpn_l2vpn_terminations_list - description: Get a list of L2VPN termination objects. + operationId: vpn_ike_proposals_list + description: Get a list of IKE proposal objects. parameters: - in: query - name: assigned_object_id + name: authentication_algorithm schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: authentication_algorithm__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: assigned_object_id__gte + name: authentication_method schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query - name: assigned_object_id__lt + name: authentication_method__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query - name: assigned_object_id__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + name: created__gte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created + name: created__lt schema: type: array items: @@ -95064,7 +95080,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: created__lte schema: type: array items: @@ -95073,7 +95089,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: created__n schema: type: array items: @@ -95082,126 +95098,134 @@ paths: explode: true style: form - in: query - name: created__gte + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: description__isw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: device + name: description__n schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__nic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__nie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__niew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: encryption_algorithm schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form - in: query - name: id__gt + name: encryption_algorithm__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b022535cfdee79fe explode: true style: form - in: query - name: id__gte + name: group schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID explode: true style: form - in: query - name: id__lt + name: group__n schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -95210,7 +95234,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -95219,75 +95247,75 @@ paths: explode: true style: form - in: query - name: interface + name: id__gte schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface__n + name: id__lt schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface_id + name: id__lte schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: l2vpn + name: ike_policy schema: type: array items: type: string - description: L2VPN (slug) + description: IKE policy (name) explode: true style: form - in: query - name: l2vpn__n + name: ike_policy__n schema: type: array items: type: string - description: L2VPN (slug) + description: IKE policy (name) explode: true style: form - in: query - name: l2vpn_id + name: ike_policy_id schema: type: array items: type: integer - description: L2VPN (ID) + description: IKE policy (ID) explode: true style: form - in: query - name: l2vpn_id__n + name: ike_policy_id__n schema: type: array items: type: integer - description: L2VPN (ID) + description: IKE policy (ID) explode: true style: form - in: query @@ -95364,25 +95392,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: name schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: region + name: name__ic schema: type: array items: @@ -95390,16 +95413,15 @@ paths: explode: true style: form - in: query - name: region_id + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: site + name: name__iew schema: type: array items: @@ -95407,16 +95429,15 @@ paths: explode: true style: form - in: query - name: site_id + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -95424,7 +95445,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -95432,153 +95453,125 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: name__nie schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine__n + name: name__niew schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine_id + name: name__nisw schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: virtual_machine_id__n + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime schema: type: array items: type: integer - description: Virtual machine (ID) + format: int32 explode: true style: form - in: query - name: vlan + name: sa_lifetime__empty + schema: + type: boolean + - in: query + name: sa_lifetime__gt schema: type: array items: - type: string - description: VLAN (name) + type: integer + format: int32 explode: true style: form - in: query - name: vlan__n + name: sa_lifetime__gte schema: type: array items: - type: string - description: VLAN (name) + type: integer + format: int32 explode: true style: form - in: query - name: vlan_id + name: sa_lifetime__lt schema: type: array items: type: integer - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_id__n + name: sa_lifetime__lte schema: type: array items: type: integer - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vminterface + name: sa_lifetime__n schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface__n + name: tag schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: tag__n schema: type: array items: - type: integer - description: VM Interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: VM Interface (ID) - explode: true - style: form + type: string + format: uuid tags: - vpn security: @@ -95589,21 +95582,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + $ref: '#/components/schemas/PaginatedIKEProposalList' description: '' post: - operationId: vpn_l2vpn_terminations_create - description: Post a list of L2VPN termination objects. + operationId: vpn_ike_proposals_create + description: Post a list of IKE proposal objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -95613,11 +95606,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: vpn_l2vpn_terminations_bulk_update - description: Put a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_update + description: Put a list of IKE proposal objects. tags: - vpn requestBody: @@ -95626,12 +95619,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95643,11 +95636,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: vpn_l2vpn_terminations_bulk_partial_update - description: Patch a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_partial_update + description: Patch a list of IKE proposal objects. tags: - vpn requestBody: @@ -95656,12 +95649,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95673,11 +95666,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: vpn_l2vpn_terminations_bulk_destroy - description: Delete a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_destroy + description: Delete a list of IKE proposal objects. tags: - vpn requestBody: @@ -95686,12 +95679,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95699,16 +95692,16 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/{id}/: + /api/vpn/ike-proposals/{id}/: get: - operationId: vpn_l2vpn_terminations_retrieve - description: Get a L2VPN termination object. + operationId: vpn_ike_proposals_retrieve + description: Get a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95720,17 +95713,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: vpn_l2vpn_terminations_update - description: Put a L2VPN termination object. + operationId: vpn_ike_proposals_update + description: Put a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95738,10 +95731,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -95751,17 +95744,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: vpn_l2vpn_terminations_partial_update - description: Patch a L2VPN termination object. + operationId: vpn_ike_proposals_partial_update + description: Patch a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95769,10 +95762,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -95781,17 +95774,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: vpn_l2vpn_terminations_destroy - description: Delete a L2VPN termination object. + operationId: vpn_ike_proposals_destroy + description: Delete a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95801,10 +95794,10 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/: + /api/vpn/ipsec-policies/: get: - operationId: vpn_l2vpns_list - description: Get a list of L2VPN objects. + operationId: vpn_ipsec_policies_list + description: Get a list of IPSec policy objects. parameters: - in: query name: created @@ -95958,42 +95951,6 @@ paths: type: string explode: true style: form - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -96053,97 +96010,35 @@ paths: explode: true style: form - in: query - name: identifier - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__empty - schema: - type: boolean - - in: query - name: identifier__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: import_target + name: ipsec_proposal schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target__n + name: ipsec_proposal__n schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target_id + name: ipsec_proposal_id schema: type: array items: type: integer - description: Import target explode: true style: form - in: query - name: import_target_id__n + name: ipsec_proposal_id__n schema: type: array items: type: integer - description: Import target explode: true style: form - in: query @@ -96317,200 +96212,46 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n + name: pfs_group schema: type: array items: type: integer - description: Tenant Group (ID) + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: tenant_id + name: pfs_group__n schema: type: array items: type: integer + x-spec-enum-id: dbef43be795462a8 nullable: true - description: Tenant (ID) + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: tenant_id__n + name: q schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string + description: Search - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query @@ -96528,21 +96269,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNList' + $ref: '#/components/schemas/PaginatedIPSecPolicyList' description: '' post: - operationId: vpn_l2vpns_create - description: Post a list of L2VPN objects. + operationId: vpn_ipsec_policies_create + description: Post a list of IPSec policy objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96552,11 +96293,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' put: - operationId: vpn_l2vpns_bulk_update - description: Put a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_update + description: Put a list of IPSec policy objects. tags: - vpn requestBody: @@ -96565,12 +96306,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96582,11 +96323,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' patch: - operationId: vpn_l2vpns_bulk_partial_update - description: Patch a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_partial_update + description: Patch a list of IPSec policy objects. tags: - vpn requestBody: @@ -96595,12 +96336,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96612,11 +96353,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' delete: - operationId: vpn_l2vpns_bulk_destroy - description: Delete a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_destroy + description: Delete a list of IPSec policy objects. tags: - vpn requestBody: @@ -96625,12 +96366,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96638,16 +96379,16 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/{id}/: + /api/vpn/ipsec-policies/{id}/: get: - operationId: vpn_l2vpns_retrieve - description: Get a L2VPN object. + operationId: vpn_ipsec_policies_retrieve + description: Get a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96659,17 +96400,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' put: - operationId: vpn_l2vpns_update - description: Put a L2VPN object. + operationId: vpn_ipsec_policies_update + description: Put a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96677,10 +96418,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96690,17 +96431,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' patch: - operationId: vpn_l2vpns_partial_update - description: Patch a L2VPN object. + operationId: vpn_ipsec_policies_partial_update + description: Patch a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96708,10 +96449,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -96720,17 +96461,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' delete: - operationId: vpn_l2vpns_destroy - description: Delete a L2VPN object. + operationId: vpn_ipsec_policies_destroy + description: Delete a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96740,10 +96481,10 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/: + /api/vpn/ipsec-profiles/: get: - operationId: vpn_tunnel_groups_list - description: Get a list of tunnel group objects. + operationId: vpn_ipsec_profiles_list + description: Get a list of IPSec profile objects. parameters: - in: query name: created @@ -96955,6 +96696,78 @@ paths: format: int32 explode: true style: form + - in: query + name: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -97024,6 +96837,24 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form - in: query name: modified_by_request schema: @@ -97130,90 +96961,6 @@ paths: schema: type: string description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: tag schema: @@ -97245,21 +96992,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelGroupList' + $ref: '#/components/schemas/PaginatedIPSecProfileList' description: '' post: - operationId: vpn_tunnel_groups_create - description: Post a list of tunnel group objects. + operationId: vpn_ipsec_profiles_create + description: Post a list of IPSec profile objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97269,11 +97016,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: vpn_tunnel_groups_bulk_update - description: Put a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_update + description: Put a list of IPSec profile objects. tags: - vpn requestBody: @@ -97282,12 +97029,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97299,11 +97046,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: vpn_tunnel_groups_bulk_partial_update - description: Patch a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_partial_update + description: Patch a list of IPSec profile objects. tags: - vpn requestBody: @@ -97312,12 +97059,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97329,11 +97076,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: vpn_tunnel_groups_bulk_destroy - description: Delete a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_destroy + description: Delete a list of IPSec profile objects. tags: - vpn requestBody: @@ -97342,12 +97089,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97355,16 +97102,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/{id}/: + /api/vpn/ipsec-profiles/{id}/: get: - operationId: vpn_tunnel_groups_retrieve - description: Get a tunnel group object. + operationId: vpn_ipsec_profiles_retrieve + description: Get a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97376,17 +97123,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: vpn_tunnel_groups_update - description: Put a tunnel group object. + operationId: vpn_ipsec_profiles_update + description: Put a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97394,10 +97141,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97407,17 +97154,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: vpn_tunnel_groups_partial_update - description: Patch a tunnel group object. + operationId: vpn_ipsec_profiles_partial_update + description: Patch a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97425,10 +97172,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -97437,17 +97184,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: vpn_tunnel_groups_destroy - description: Delete a tunnel group object. + operationId: vpn_ipsec_profiles_destroy + description: Delete a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97457,11 +97204,31 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/: + /api/vpn/ipsec-proposals/: get: - operationId: vpn_tunnel_terminations_list - description: Get a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_list + description: Get a list of IPSec proposal objects. parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form - in: query name: created schema: @@ -97530,6 +97297,110 @@ paths: schema: type: string format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form - in: query name: id schema: @@ -97589,39 +97460,39 @@ paths: explode: true style: form - in: query - name: interface + name: ipsec_policy schema: type: array items: type: string - description: Interface (name) + description: IPSec policy (name) explode: true style: form - in: query - name: interface__n + name: ipsec_policy__n schema: type: array items: type: string - description: Interface (name) + description: IPSec policy (name) explode: true style: form - in: query - name: interface_id + name: ipsec_policy_id schema: type: array items: type: integer - description: Interface (ID) + description: IPSec policy (ID) explode: true style: form - in: query - name: interface_id__n + name: ipsec_policy_id__n schema: type: array items: type: integer - description: Interface (ID) + description: IPSec policy (ID) explode: true style: form - in: query @@ -97698,61 +97569,60 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: outside_ip_id + name: name__ic schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: outside_ip_id__n + name: name__ie schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: q + name: name__iew schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: role + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: role__n + name: name__n schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -97760,7 +97630,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -97768,7 +97638,40 @@ paths: explode: true style: form - in: query - name: termination_id + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime_data schema: type: array items: @@ -97777,11 +97680,11 @@ paths: explode: true style: form - in: query - name: termination_id__empty + name: sa_lifetime_data__empty schema: type: boolean - in: query - name: termination_id__gt + name: sa_lifetime_data__gt schema: type: array items: @@ -97790,7 +97693,7 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: sa_lifetime_data__gte schema: type: array items: @@ -97799,7 +97702,7 @@ paths: explode: true style: form - in: query - name: termination_id__lt + name: sa_lifetime_data__lt schema: type: array items: @@ -97808,7 +97711,7 @@ paths: explode: true style: form - in: query - name: termination_id__lte + name: sa_lifetime_data__lte schema: type: array items: @@ -97817,7 +97720,7 @@ paths: explode: true style: form - in: query - name: termination_id__n + name: sa_lifetime_data__n schema: type: array items: @@ -97826,90 +97729,84 @@ paths: explode: true style: form - in: query - name: termination_type + name: sa_lifetime_seconds schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: termination_type__n + name: sa_lifetime_seconds__empty schema: - type: string + type: boolean - in: query - name: tunnel + name: sa_lifetime_seconds__gt schema: type: array items: - type: string - description: Tunnel (name) + type: integer + format: int32 explode: true style: form - in: query - name: tunnel__n + name: sa_lifetime_seconds__gte schema: type: array items: - type: string - description: Tunnel (name) + type: integer + format: int32 explode: true style: form - in: query - name: tunnel_id + name: sa_lifetime_seconds__lt schema: type: array items: type: integer - description: Tunnel (ID) + format: int32 explode: true style: form - in: query - name: tunnel_id__n + name: sa_lifetime_seconds__lte schema: type: array items: type: integer - description: Tunnel (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vminterface + name: sa_lifetime_seconds__n schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface__n + name: tag schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: tag__n schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: VM interface (ID) - explode: true - style: form + type: string + format: uuid tags: - vpn security: @@ -97920,21 +97817,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelTerminationList' + $ref: '#/components/schemas/PaginatedIPSecProposalList' description: '' post: - operationId: vpn_tunnel_terminations_create - description: Post a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_create + description: Post a list of IPSec proposal objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -97944,11 +97841,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_tunnel_terminations_bulk_update - description: Put a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_update + description: Put a list of IPSec proposal objects. tags: - vpn requestBody: @@ -97957,12 +97854,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -97974,11 +97871,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_tunnel_terminations_bulk_partial_update - description: Patch a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_partial_update + description: Patch a list of IPSec proposal objects. tags: - vpn requestBody: @@ -97987,12 +97884,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98004,11 +97901,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_tunnel_terminations_bulk_destroy - description: Delete a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_destroy + description: Delete a list of IPSec proposal objects. tags: - vpn requestBody: @@ -98017,12 +97914,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98030,16 +97927,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/{id}/: + /api/vpn/ipsec-proposals/{id}/: get: - operationId: vpn_tunnel_terminations_retrieve - description: Get a tunnel termination object. + operationId: vpn_ipsec_proposals_retrieve + description: Get a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98051,17 +97948,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_tunnel_terminations_update - description: Put a tunnel termination object. + operationId: vpn_ipsec_proposals_update + description: Put a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98069,10 +97966,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98082,17 +97979,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_tunnel_terminations_partial_update - description: Patch a tunnel termination object. + operationId: vpn_ipsec_proposals_partial_update + description: Patch a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98100,10 +97997,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98112,17 +98009,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_tunnel_terminations_destroy - description: Delete a tunnel termination object. + operationId: vpn_ipsec_proposals_destroy + description: Delete a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98132,221 +98029,225 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/: + /api/vpn/l2vpn-terminations/: get: - operationId: vpn_tunnels_list - description: Get a list of tunnel objects. + operationId: vpn_l2vpn_terminations_list + description: Get a list of L2VPN termination objects. parameters: - in: query - name: created + name: assigned_object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: assigned_object_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: assigned_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: assigned_object_type schema: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: description__empty + name: assigned_object_type__n schema: - type: boolean + type: string - in: query - name: description__ic + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: description__nisw + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: encapsulation + name: device_id schema: type: array items: - type: string - x-spec-enum-id: 5fc36bb745852746 + type: integer + description: Device (ID) explode: true style: form - in: query - name: encapsulation__n + name: device_id__n schema: type: array items: - type: string - x-spec-enum-id: 5fc36bb745852746 + type: integer + description: Device (ID) explode: true style: form - in: query - name: group + name: id schema: type: array items: - type: string - description: Tunnel group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - description: Tunnel group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__gte schema: type: array items: type: integer - nullable: true - description: Tunnel group (ID) + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lt schema: type: array items: type: integer - nullable: true - description: Tunnel group (ID) + format: int32 explode: true style: form - in: query - name: id + name: id__lte schema: type: array items: @@ -98355,11 +98256,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -98368,77 +98265,75 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lt + name: interface__n schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lte + name: interface_id schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: ipsec_profile + name: l2vpn schema: type: array items: type: string - description: IPSec profile (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ipsec_profile__n + name: l2vpn__n schema: type: array items: type: string - description: IPSec profile (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ipsec_profile_id + name: l2vpn_id schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) + description: L2VPN (ID) explode: true style: form - in: query - name: ipsec_profile_id__n + name: l2vpn_id__n schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) + description: L2VPN (ID) explode: true style: form - in: query @@ -98515,44 +98410,25 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: name__isw + name: region schema: type: array items: @@ -98560,15 +98436,16 @@ paths: explode: true style: form - in: query - name: name__n + name: region_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: site schema: type: array items: @@ -98576,15 +98453,16 @@ paths: explode: true style: form - in: query - name: name__nie + name: site_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -98592,201 +98470,161 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: updated_by_request schema: type: string - description: Search + format: uuid - in: query - name: status + name: virtual_machine schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + description: Virtual machine (name) explode: true style: form - in: query - name: status__n + name: virtual_machine__n schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + description: Virtual machine (name) explode: true style: form - in: query - name: tag + name: virtual_machine_id schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: tag__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: tenant + name: vlan schema: type: array items: type: string - description: Tenant (slug) + description: VLAN (name) explode: true style: form - in: query - name: tenant__n + name: vlan__n schema: type: array items: type: string - description: Tenant (slug) + description: VLAN (name) explode: true style: form - in: query - name: tenant_group + name: vlan_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: VLAN (ID) explode: true style: form - in: query - name: tenant_group__n + name: vlan_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: VLAN (ID) explode: true style: form - in: query - name: tenant_group_id + name: vlan_vid schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_group_id__n + name: vlan_vid__empty schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_id + name: vlan_vid__gt schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_id__n + name: vlan_vid__gte schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id + name: vlan_vid__lt schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__empty + name: vlan_vid__lte schema: - type: boolean + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__gt + name: vlan_vid__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__gte + name: vminterface schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tunnel_id__lt + name: vminterface__n schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tunnel_id__lte + name: vminterface_id schema: type: array items: type: integer - format: int32 + description: VM Interface (ID) explode: true style: form - in: query - name: tunnel_id__n + name: vminterface_id__n schema: type: array items: type: integer - format: int32 + description: VM Interface (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - vpn security: @@ -98797,21 +98635,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelList' + $ref: '#/components/schemas/PaginatedL2VPNTerminationList' description: '' post: - operationId: vpn_tunnels_create - description: Post a list of tunnel objects. + operationId: vpn_l2vpn_terminations_create + description: Post a list of L2VPN termination objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98821,11 +98659,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_tunnels_bulk_update - description: Put a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_update + description: Put a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98834,12 +98672,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98851,11 +98689,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_tunnels_bulk_partial_update - description: Patch a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_partial_update + description: Patch a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98864,12 +98702,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98881,11 +98719,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_tunnels_bulk_destroy - description: Delete a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_destroy + description: Delete a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98894,12 +98732,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98907,16 +98745,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/{id}/: + /api/vpn/l2vpn-terminations/{id}/: get: - operationId: vpn_tunnels_retrieve - description: Get a tunnel object. + operationId: vpn_l2vpn_terminations_retrieve + description: Get a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98928,17 +98766,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_tunnels_update - description: Put a tunnel object. + operationId: vpn_l2vpn_terminations_update + description: Put a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98946,10 +98784,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98959,17 +98797,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_tunnels_partial_update - description: Patch a tunnel object. + operationId: vpn_l2vpn_terminations_partial_update + description: Patch a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98977,10 +98815,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98989,17 +98827,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_tunnels_destroy - description: Delete a tunnel object. + operationId: vpn_l2vpn_terminations_destroy + description: Delete a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -99009,50 +98847,18 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/: + /api/vpn/l2vpns/: get: - operationId: wireless_wireless_lan_groups_list - description: Get a list of wireless LAN group objects. + operationId: vpn_l2vpns_list + description: Get a list of L2VPN objects. parameters: - in: query - name: ancestor + name: created schema: type: array items: - type: integer - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time + type: string + format: date-time explode: true style: form - in: query @@ -99198,6 +99004,42 @@ paths: type: string explode: true style: form + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -99256,6 +99098,100 @@ paths: format: int32 explode: true style: form + - in: query + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form - in: query name: last_updated schema: @@ -99427,7 +99363,12 @@ paths: schema: type: string - in: query - name: parent + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -99435,7 +99376,11 @@ paths: explode: true style: form - in: query - name: parent__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -99443,30 +99388,31 @@ paths: explode: true style: form - in: query - name: parent_id + name: slug__ie schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: parent_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: slug + name: slug__n schema: type: array items: @@ -99474,11 +99420,15 @@ paths: explode: true style: form - in: query - name: slug__empty + name: slug__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: slug__nie schema: type: array items: @@ -99486,7 +99436,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: slug__niew schema: type: array items: @@ -99494,7 +99444,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: slug__nisw schema: type: array items: @@ -99502,7 +99452,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -99510,7 +99460,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -99518,23 +99468,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -99542,7 +99494,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -99550,7 +99502,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -99558,20 +99510,58 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -99580,21 +99570,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + $ref: '#/components/schemas/PaginatedL2VPNList' description: '' post: - operationId: wireless_wireless_lan_groups_create - description: Post a list of wireless LAN group objects. + operationId: vpn_l2vpns_create + description: Post a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -99604,25 +99594,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_update + description: Put a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99634,25 +99624,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_partial_update + description: Patch a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99664,25 +99654,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_destroy + description: Delete a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99690,19 +99680,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/{id}/: + /api/vpn/l2vpns/{id}/: get: - operationId: wireless_wireless_lan_groups_retrieve - description: Get a wireless LAN group object. + operationId: vpn_l2vpns_retrieve + description: Get a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -99711,28 +99701,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: wireless_wireless_lan_groups_update - description: Put a wireless LAN group object. + operationId: vpn_l2vpns_update + description: Put a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -99742,28 +99732,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: wireless_wireless_lan_groups_partial_update - description: Patch a wireless LAN group object. + operationId: vpn_l2vpns_partial_update + description: Patch a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -99772,155 +99762,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: wireless_wireless_lan_groups_destroy - description: Delete a wireless LAN group object. + operationId: vpn_l2vpns_destroy + description: Delete a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lans/: + /api/vpn/tunnel-groups/: get: - operationId: wireless_wireless_lans_list - description: Get a list of wireless LAN objects. + operationId: vpn_tunnel_groups_list + description: Get a list of tunnel group objects. parameters: - - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - in: query name: created schema: @@ -100073,38 +99939,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: id schema: @@ -100163,22 +99997,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -100253,25 +100071,8 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -100279,11 +100080,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -100291,7 +100092,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -100299,7 +100100,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -100307,7 +100108,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -100315,7 +100116,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -100323,7 +100124,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -100331,7 +100132,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -100339,7 +100140,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -100347,33 +100148,52 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: status + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -100381,7 +100201,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -100389,77 +100209,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -100467,26 +100277,8 @@ paths: schema: type: string format: uuid - - in: query - name: vlan_id - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -100495,21 +100287,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANList' + $ref: '#/components/schemas/PaginatedTunnelGroupList' description: '' post: - operationId: wireless_wireless_lans_create - description: Post a list of wireless LAN objects. + operationId: vpn_tunnel_groups_create + description: Post a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100519,25 +100311,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: wireless_wireless_lans_bulk_update - description: Put a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_update + description: Put a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100549,25 +100341,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_partial_update + description: Patch a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100579,25 +100371,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_destroy + description: Delete a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100605,19 +100397,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lans/{id}/: + /api/vpn/tunnel-groups/{id}/: get: - operationId: wireless_wireless_lans_retrieve - description: Get a wireless LAN object. + operationId: vpn_tunnel_groups_retrieve + description: Get a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -100626,28 +100418,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: wireless_wireless_lans_update - description: Put a wireless LAN object. + operationId: vpn_tunnel_groups_update + description: Put a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100657,28 +100449,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: wireless_wireless_lans_partial_update - description: Patch a wireless LAN object. + operationId: vpn_tunnel_groups_partial_update + description: Patch a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -100687,155 +100479,706 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: wireless_wireless_lans_destroy - description: Delete a wireless LAN object. + operationId: vpn_tunnel_groups_destroy + description: Delete a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-links/: + /api/vpn/tunnel-terminations/: get: - operationId: wireless_wireless_links_list - description: Get a list of wireless link objects. + operationId: vpn_tunnel_terminations_list + description: Get a list of tunnel termination objects. parameters: - in: query - name: auth_cipher + name: created schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_cipher__n + name: created__empty schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_psk + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__empty + 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: auth_psk__ic + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: auth_psk__ie + name: interface__n schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: auth_psk__iew + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: auth_type + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: outside_ip_id + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: outside_ip_id__n + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: auth_type__n + name: role__n schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: termination_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: tunnel + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel__n + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel_id + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) explode: true style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelTerminationList' + description: '' + post: + operationId: vpn_tunnel_terminations_create + description: Post a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_bulk_update + description: Put a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_bulk_partial_update + description: Patch a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_bulk_destroy + description: Delete a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/{id}/: + get: + operationId: vpn_tunnel_terminations_retrieve + description: Get a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_update + description: Put a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_partial_update + description: Patch a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_destroy + description: Delete a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/: + get: + operationId: vpn_tunnels_list + description: Get a list of tunnel objects. + parameters: - in: query name: created schema: @@ -100988,6 +101331,62 @@ paths: type: string explode: true style: form + - in: query + name: encapsulation + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + explode: true + style: form + - in: query + name: encapsulation__n + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form - in: query name: id schema: @@ -101047,35 +101446,41 @@ paths: explode: true style: form - in: query - name: interface_a_id + name: ipsec_profile schema: type: array items: - type: integer + type: string + description: IPSec profile (name) explode: true style: form - in: query - name: interface_a_id__n + name: ipsec_profile__n schema: type: array items: - type: integer + type: string + description: IPSec profile (name) explode: true style: form - in: query - name: interface_b_id + name: ipsec_profile_id schema: type: array items: type: integer + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query - name: interface_b_id__n + name: ipsec_profile_id__n schema: type: array items: type: integer + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query @@ -101152,25 +101557,8 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -101178,11 +101566,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -101190,7 +101578,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -101198,7 +101586,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -101206,7 +101594,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -101214,7 +101602,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -101222,7 +101610,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -101230,7 +101618,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -101238,7 +101626,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -101246,20 +101634,37 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search - in: query name: status schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query @@ -101268,7 +101673,7 @@ paths: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query @@ -101310,8 +101715,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -101319,8 +101723,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -101328,8 +101731,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -101337,8 +101739,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -101362,35 +101763,93 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tunnel_id schema: - type: string - format: uuid - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__empty + schema: + type: boolean + - in: query + name: tunnel_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLinkList' + $ref: '#/components/schemas/PaginatedTunnelList' description: '' post: - operationId: wireless_wireless_links_create - description: Post a list of wireless link objects. + operationId: vpn_tunnels_create + description: Post a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -101400,25 +101859,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: wireless_wireless_links_bulk_update - description: Put a list of wireless link objects. + operationId: vpn_tunnels_bulk_update + description: Put a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101430,25 +101889,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: wireless_wireless_links_bulk_partial_update - description: Patch a list of wireless link objects. + operationId: vpn_tunnels_bulk_partial_update + description: Patch a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101460,25 +101919,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: wireless_wireless_links_bulk_destroy - description: Delete a list of wireless link objects. + operationId: vpn_tunnels_bulk_destroy + description: Delete a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101486,19 +101945,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-links/{id}/: + /api/vpn/tunnels/{id}/: get: - operationId: wireless_wireless_links_retrieve - description: Get a wireless link object. + operationId: vpn_tunnels_retrieve + description: Get a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -101507,28 +101966,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: wireless_wireless_links_update - description: Put a wireless link object. + operationId: vpn_tunnels_update + description: Put a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -101538,28 +101997,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: wireless_wireless_links_partial_update - description: Patch a wireless link object. + operationId: vpn_tunnels_partial_update + description: Patch a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -101568,862 +102027,7381 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: wireless_wireless_links_destroy - description: Delete a wireless link object. + operationId: vpn_tunnels_destroy + description: Delete a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body -components: - schemas: - ASN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIR' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + /api/wireless/wireless-lan-groups/: + get: + operationId: wireless_wireless_lan_groups_list + description: Get a list of wireless LAN group objects. + parameters: + - in: query + name: ancestor + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - site_count: - type: integer - format: int64 - readOnly: true - provider_count: - type: integer - format: int64 - readOnly: true - required: - - asn - - created - - display - - id - - last_updated - - provider_count - - site_count - - url - ASNRange: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIR' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - asn_count: - type: integer - readOnly: true - required: - - asn_count - - created - - display - - end - - id - - last_updated - - name - - rir - - slug - - start - - url - ASNRangeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIRRequest' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - end - - name - - rir - - slug - - start - ASNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIRRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - Aggregate: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: object - properties: - value: - enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 - - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/RIR' - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: created + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - family - - id - - last_updated - - prefix - - rir - - url - AggregateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - prefix - - rir - AvailableASN: - type: object - description: Representation of an ASN which does not exist in the database. - properties: - asn: - type: integer - readOnly: true - description: - type: string - required: - - asn - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer - readOnly: true - address: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - description: - type: string - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: - type: integer - readOnly: true - prefix: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - required: - - family - - prefix - - vrf - AvailableVLAN: - type: object - description: Representation of a VLAN which does not exist in the database. - properties: - vid: - type: integer - readOnly: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroup' - readOnly: true - nullable: true - required: - - group - - vid - Bookmark: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true - readOnly: true - user: - $ref: '#/components/schemas/User' - created: - type: string - format: date-time - readOnly: true - required: - - created - - display - - id - - object - - object_id - - object_type - - url - - user - BookmarkRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/UserRequest' - required: - - object_id - - object_type - - user - Cable: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - url - CableRequest: - type: object - description: Adds support for custom fields and tags. - properties: - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - CableTermination: - 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 - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - termination: - nullable: true - readOnly: true - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - cable - - cable_end - - created - - display - - id - - last_updated - - termination - - termination_id - - termination_type - - url - CableTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - required: - - cable - - cable_end - - termination_id - - termination_type - Circuit: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cid: - type: string - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - cid - - display - - id - - url - CircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - cid - CircuitTermination: - 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 - circuit: - $ref: '#/components/schemas/Circuit' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/Site' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetwork' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - tags: + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - cable_end - - circuit - - created - - display - - id - - last_updated - - link_peers - - link_peers_type - - term_side - - url - CircuitTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - circuit: - $ref: '#/components/schemas/CircuitRequest' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - circuit - - term_side - CircuitType: - 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_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + description: '' + post: + operationId: wireless_wireless_lan_groups_create + description: Post a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_bulk_update + description: Put a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_bulk_partial_update + description: Patch a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_bulk_destroy + description: Delete a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/{id}/: + get: + operationId: wireless_wireless_lan_groups_retrieve + description: Get a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_update + description: Put a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_partial_update + description: Patch a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_destroy + description: Delete a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/: + get: + operationId: wireless_wireless_lans_list + description: Get a list of wireless LAN objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANList' + description: '' + post: + operationId: wireless_wireless_lans_create + description: Post a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_bulk_update + description: Put a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_bulk_partial_update + description: Patch a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_bulk_destroy + description: Delete a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/{id}/: + get: + operationId: wireless_wireless_lans_retrieve + description: Get a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_update + description: Put a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_partial_update + description: Patch a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_destroy + description: Delete a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/: + get: + operationId: wireless_wireless_links_list + description: Get a list of wireless link objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: distance + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__empty + schema: + type: boolean + - in: query + name: distance__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance_unit + schema: + type: string + x-spec-enum-id: 53542e7902f946af + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - in: query + name: distance_unit__n + schema: + type: string + x-spec-enum-id: 53542e7902f946af + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_a_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_a_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLinkList' + description: '' + post: + operationId: wireless_wireless_links_create + description: Post a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_bulk_update + description: Put a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_bulk_partial_update + description: Patch a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_bulk_destroy + description: Delete a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/{id}/: + get: + operationId: wireless_wireless_links_retrieve + description: Get a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_update + description: Put a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_partial_update + description: Patch a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_destroy + description: Delete a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body +components: + schemas: + ASN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIR' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + site_count: + type: integer + format: int64 + readOnly: true + provider_count: + type: integer + format: int64 + readOnly: true + required: + - asn + - created + - display + - display_url + - id + - last_updated + - provider_count + - site_count + - url + ASNRange: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIR' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + asn_count: + type: integer + readOnly: true + required: + - asn_count + - created + - display + - display_url + - end + - id + - last_updated + - name + - rir + - slug + - start + - url + ASNRangeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIRRequest' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - end + - name + - rir + - slug + - start + ASNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIRRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - asn + Aggregate: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + prefix: + type: string + rir: + $ref: '#/components/schemas/BriefRIR' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - family + - id + - last_updated + - prefix + - rir + - url + AggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - prefix + - rir + AvailableASN: + type: object + description: Representation of an ASN which does not exist in the database. + properties: + asn: + type: integer + readOnly: true + description: + type: string + required: + - asn + AvailableIP: + type: object + description: Representation of an IP address which does not exist in the database. + properties: + family: + type: integer + readOnly: true + address: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + description: + type: string + required: + - address + - family + - vrf + AvailablePrefix: + type: object + description: Representation of a prefix which does not exist in the database. + properties: + family: + type: integer + readOnly: true + prefix: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + required: + - family + - prefix + - vrf + AvailableVLAN: + type: object + description: Representation of a VLAN which does not exist in the database. + properties: + vid: + type: integer + readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + readOnly: true + nullable: true + required: + - group + - vid + Bookmark: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + BookmarkRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user + BriefCable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefCableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + BriefCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - provider + - url + BriefCircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + required: + - display + - id + - name + - url + BriefCircuitGroupAssignmentSerializer_: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + required: + - display + - group + - id + - url + BriefCircuitGroupAssignmentSerializer_Request: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + required: + - group + BriefCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + required: + - name + BriefCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + description: + type: string + maxLength: 200 + required: + - cid + - provider + BriefCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCluster: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + - virtualmachine_count + BriefClusterGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefClusterRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefClusterType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefConfigTemplate: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefConfigTemplateRequest: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContact: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefContactGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + contact_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - contact_count + - display + - id + - name + - slug + - url + BriefContactGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefContactRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContactRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefContactRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCustomFieldChoiceSet: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + choices_count: + type: string + readOnly: true + required: + - choices_count + - display + - id + - name + - url + BriefCustomFieldChoiceSetRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDataFile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + path: + type: string + readOnly: true + description: File path relative to the data source's root + required: + - display + - id + - path + - url + BriefDataSource: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefDataSourceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDevice: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefDeviceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + BriefDeviceRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - device_count + - display + - id + - name + - slug + - url + - virtualmachine_count + BriefDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefDeviceType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - device_count + - display + - id + - manufacturer + - model + - slug + - url + BriefDeviceTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefFHRPGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - display + - group_id + - id + - protocol + - url + BriefFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - group_id + - protocol + BriefIKEPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIKEPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + address: + type: string + description: + type: string + maxLength: 200 + required: + - address + - display + - family + - id + - url + BriefIPAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + address: + type: string + minLength: 1 + description: + type: string + maxLength: 200 + required: + - address + BriefIPSecPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPSecProfile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecProfileRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefInterface: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefInterfaceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefInventoryItemRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + inventoryitem_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - inventoryitem_count + - name + - slug + - url + BriefInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefJob: + type: object + properties: + url: + type: string + format: uri + readOnly: true + status: + type: object + properties: + value: + enum: + - pending + - scheduled + - running + - completed + - errored + - failed + type: string + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' + x-spec-enum-id: e33887d83efcc138 + label: + type: string + enum: + - Pending + - Scheduled + - Running + - Completed + - Errored + - Failed + readOnly: true + created: + type: string + format: date-time + readOnly: true + completed: + type: string + format: date-time + nullable: true + user: + allOf: + - $ref: '#/components/schemas/BriefUser' + readOnly: true + required: + - created + - status + - url + - user + BriefJobRequest: + type: object + properties: + completed: + type: string + format: date-time + nullable: true + BriefL2VPN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + type: object + properties: + value: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + label: + type: string + enum: + - VPWS + - VPLS + - VXLAN + - VXLAN-EVPN + - MPLS EVPN + - PBB EVPN + - EPL + - EVPL + - Ethernet Private LAN + - Ethernet Virtual Private LAN + - Ethernet Private Tree + - Ethernet Virtual Private Tree + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefL2VPNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefL2VPNTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + l2vpn: + $ref: '#/components/schemas/BriefL2VPN' + required: + - display + - id + - l2vpn + - url + BriefL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + required: + - l2vpn + BriefLocation: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - rack_count + - slug + - url + BriefLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefManufacturer: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + devicetype_count: + type: integer + format: int64 + readOnly: true + required: + - devicetype_count + - display + - id + - name + - slug + - url + BriefManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefModule: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module_bay: + $ref: '#/components/schemas/NestedModuleBay' + required: + - device + - display + - id + - module_bay + - url + BriefModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + $ref: '#/components/schemas/NestedModuleBayRequest' + required: + - device + - module_bay + BriefModuleType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - url + BriefModuleTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + BriefPlatform: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - device_count + - display + - id + - name + - slug + - url + - virtualmachine_count + BriefPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefPowerPanel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - url + BriefPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefPowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefPowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefPowerPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefPowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefProvider: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the provider + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefProviderAccount: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + default: '' + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + - display + - id + - url + BriefProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + BriefProviderNetwork: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRIR: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - display + - id + - name + - slug + - url + BriefRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - device_count + - display + - id + - name + - url + BriefRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefRackRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - rack_count + - slug + - url + BriefRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefRearPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefRegion: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - site_count + - slug + - url + BriefRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - prefix_count + - slug + - url + - vlan_count + 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 + - site_count + - slug + - url + BriefSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenant: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefTenantGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - tenant_count + - url + BriefTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefTunnelGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tunnel_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - tunnel_count + - url + BriefTunnelGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefUser: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + username: + type: string + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - display + - id + - url + - username + BriefUserRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + username: + type: string + minLength: 1 + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - username + BriefVLAN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + - vid + BriefVLANGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + - vlan_count + BriefVLANGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + - vid + BriefVRF: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - prefix_count + - url + BriefVRFRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualChassis: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDevice' + nullable: true + description: + type: string + maxLength: 200 + member_count: + type: integer + readOnly: true + required: + - display + - id + - member_count + - name + - url + BriefVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDeviceRequest' + nullable: true + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualMachine: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefVirtualMachineRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefWirelessLANGroup: + 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 + wirelesslan_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + - wirelesslan_count + BriefWirelessLANGroupRequest: + 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 + Cable: + 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 + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + label: + type: string + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + type: object + properties: + value: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + label: + type: string + enum: + - Kilometers + - Meters + - Centimeters + - Miles + - Feet + - Inches + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - last_updated + - url + CableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + label: + type: string + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + CableTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + termination: + nullable: true + readOnly: true + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - cable + - cable_end + - created + - display + - id + - last_updated + - termination + - termination_id + - termination_type + - url + CableTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + required: + - cable + - cable_end + - termination_id + - termination_type + Circuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccount' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitType' + status: + type: object + properties: + value: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + label: + type: string + enum: + - Planned + - Provisioning + - Active + - Offline + - Deprovisioning + - Decommissioned + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + termination_a: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + termination_z: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_' + required: + - cid + - created + - display + - display_url + - id + - last_updated + - provider + - termination_a + - termination_z + - type + - url + CircuitCircuitTermination: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + required: + - display + - display_url + - id + - provider_network + - site + - url + CircuitCircuitTerminationRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + required: + - provider_network + - site + CircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - created + - display + - display_url + - id + - last_updated + - name + - slug + - url + CircuitGroupAssignment: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + circuit: + $ref: '#/components/schemas/BriefCircuit' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - circuit + - created + - display + - display_url + - group + - id + - last_updated + - url + CircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group + CircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + CircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' + required: + - cid + - provider + - type + CircuitTermination: + type: object + description: Adds support for custom fields and tags. + 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 + circuit: + $ref: '#/components/schemas/BriefCircuit' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - circuit + - created + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - term_side + - url + CircuitTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - circuit + - term_side + CircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true nullable: true circuit_count: type: integer @@ -102433,6 +109411,7 @@ components: - circuit_count - created - display + - display_url - id - last_updated - name @@ -102479,23 +109458,98 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterType' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroup' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Offline + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true virtualmachine_count: type: integer format: int64 readOnly: true required: + - created + - device_count - display + - display_url - id + - last_updated - name + - type - url - virtualmachine_count ClusterGroup: @@ -102509,6 +109563,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102547,6 +109605,7 @@ components: - cluster_count - created - display + - display_url - id - last_updated - name @@ -102586,11 +109645,53 @@ components: type: string minLength: 1 maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - type ClusterType: type: object description: Adds support for custom fields and tags. @@ -102602,6 +109703,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102640,6 +109745,7 @@ components: - cluster_count - created - display + - display_url - id - last_updated - name @@ -102685,6 +109791,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102753,14 +109863,14 @@ components: items: type: string data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -102786,6 +109896,7 @@ components: - data_path - data_synced - display + - display_url - id - last_updated - name @@ -102864,7 +109975,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} required: - data @@ -102883,6 +109994,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102892,10 +110007,52 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSource' + data_path: + type: string + readOnly: true + description: Path to remote file (relative to data source root) + data_file: + $ref: '#/components/schemas/BriefDataFile' + data_synced: + type: string + format: date-time + readOnly: true + nullable: true + title: Date synced + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created + - data_path + - data_synced - display + - display_url - id + - last_updated - name + - template_code - url ConfigTemplateRequest: type: object @@ -102911,8 +110068,24 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + minLength: 1 + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - name + - template_code ConsolePort: type: object description: Adds support for custom fields and tags. @@ -102924,14 +110097,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103060,7 +110237,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103074,13 +110251,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103115,6 +110295,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -103126,10 +110307,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103251,11 +110432,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103365,11 +110546,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103446,14 +110627,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103582,7 +110767,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103596,13 +110781,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103637,6 +110825,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -103648,10 +110837,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103773,11 +110962,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103887,11 +111076,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103968,18 +111157,65 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroup' + nullable: true name: type: string maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - url ContactAssignment: @@ -104008,10 +111244,10 @@ components: additionalProperties: {} readOnly: true contact: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/BriefContact' role: allOf: - - $ref: '#/components/schemas/ContactRole' + - $ref: '#/components/schemas/BriefContactRole' nullable: true priority: type: object @@ -104078,10 +111314,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -104121,6 +111357,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104168,6 +111408,7 @@ components: - contact_count - created - display + - display_url - id - last_updated - name @@ -104207,13 +111448,43 @@ components: type: object description: Adds support for custom fields and tags. properties: + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroupRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name ContactRole: @@ -104227,6 +111498,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104240,9 +111515,29 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -104262,6 +111557,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -104279,6 +111581,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104372,8 +111678,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104450,6 +111760,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104480,7 +111794,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSet' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSet' nullable: true comments: type: string @@ -104498,6 +111812,7 @@ components: - created - data_type - display + - display_url - id - last_updated - name @@ -104518,6 +111833,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104575,6 +111894,7 @@ components: - choices_count - created - display + - display_url - extra_choices - id - last_updated @@ -104695,8 +112015,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104746,6 +112070,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104776,7 +112104,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -104798,6 +112126,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104826,7 +112158,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104842,12 +112174,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -104892,6 +112224,7 @@ components: required: - created - display + - display_url - id - last_updated - link_text @@ -104934,7 +112267,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104950,12 +112283,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -105013,12 +112346,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true source: allOf: - - $ref: '#/components/schemas/DataSource' + - $ref: '#/components/schemas/BriefDataSource' readOnly: true path: type: string @@ -105037,6 +112374,7 @@ components: description: SHA256 hash of the file data required: - display + - display_url - hash - id - last_updated @@ -105055,19 +112393,119 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + type: object + properties: + value: + enum: + - local + - git + - amazon-s3 + description: '* `None` - --------- + + * `local` - Local + + * `git` - Git + + * `amazon-s3` - Amazon S3' + x-spec-enum-id: 570db3f2d4e98ccf + label: + type: string + enum: + - '---------' + - Local + - Git + - Amazon S3 + source_url: + type: string + title: URL + maxLength: 200 + enabled: + type: boolean + status: + type: object + properties: + value: + enum: + - new + - queued + - syncing + - completed + - failed + type: string + description: '* `new` - New + + * `queued` - Queued + + * `syncing` - Syncing + + * `completed` - Completed + + * `failed` - Failed' + x-spec-enum-id: 6dfb2220617590c8 + label: + type: string + enum: + - New + - Queued + - Syncing + - Completed + - Failed + readOnly: true description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + last_synced: + type: string + format: date-time + readOnly: true + nullable: true + file_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url + - file_count - id + - last_synced + - last_updated - name + - source_url + - status + - type - url DataSourceRequest: type: object @@ -105100,13 +112538,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -105125,6 +112563,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105133,16 +112575,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105155,14 +112597,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105211,8 +112653,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105290,28 +112732,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105331,7 +112773,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -105391,6 +112833,7 @@ components: - device_bay_count - device_type - display + - display_url - front_port_count - id - interface_count @@ -105416,11 +112859,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' name: type: string maxLength: 64 @@ -105433,7 +112880,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true tags: type: array @@ -105456,6 +112903,7 @@ components: - created - device - display + - display_url - id - last_updated - name @@ -105465,7 +112913,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' name: type: string minLength: 1 @@ -105479,7 +112927,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true tags: type: array @@ -105509,7 +112957,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -105548,7 +112996,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' name: type: string minLength: 1 @@ -105565,17 +113013,6 @@ components: required: - device_type - name - DeviceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 DeviceRole: type: object description: Adds support for custom fields and tags. @@ -105587,6 +113024,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105597,9 +113038,37 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplate' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 @@ -105609,9 +113078,12 @@ components: format: int64 readOnly: true required: + - created - device_count - display + - display_url - id + - last_updated - name - slug - url @@ -105639,7 +113111,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -105665,11 +113137,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatform' + nullable: true model: type: string maxLength: 100 @@ -105677,19 +113157,200 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + type: object + properties: + value: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + label: + type: string + enum: + - Parent + - Child + nullable: true + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + - Mixed + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + front_image: + type: string + format: uri + nullable: true + rear_image: + type: string + format: uri + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 readOnly: true + console_port_template_count: + type: integer + readOnly: true + console_server_port_template_count: + type: integer + readOnly: true + power_port_template_count: + type: integer + readOnly: true + power_outlet_template_count: + type: integer + readOnly: true + interface_template_count: + type: integer + readOnly: true + front_port_template_count: + type: integer + readOnly: true + rear_port_template_count: + type: integer + readOnly: true + device_bay_template_count: + type: integer + readOnly: true + module_bay_template_count: + type: integer + readOnly: true + inventory_item_template_count: + type: integer + readOnly: true required: + - console_port_template_count + - console_server_port_template_count + - created + - device_bay_template_count - device_count - display + - display_url + - front_port_template_count - id + - interface_template_count + - inventory_item_template_count + - last_updated - manufacturer - model + - module_bay_template_count + - power_outlet_template_count + - power_port_template_count + - rear_port_template_count - slug - url DeviceTypeRequest: @@ -105697,7 +113358,11 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true model: type: string minLength: 1 @@ -105707,9 +113372,104 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + nullable: true + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -105725,6 +113485,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105733,16 +113497,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105755,14 +113519,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105811,8 +113575,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105890,28 +113654,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105931,7 +113695,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true config_context: nullable: true @@ -105995,6 +113759,7 @@ components: - device_bay_count - device_type - display + - display_url - front_port_count - id - interface_count @@ -106018,16 +113783,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -106040,14 +113805,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -106136,23 +113901,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -106172,7 +113937,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -106200,6 +113965,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106210,28 +113979,35 @@ components: name: type: string maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106243,16 +114019,20 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 label: type: string enum: - Webhook - Script + - Notification action_object_type: type: string action_object_id: @@ -106291,6 +114071,8 @@ components: - action_type - created - display + - display_url + - event_types - id - last_updated - name @@ -106308,28 +114090,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106338,11 +114127,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -106364,6 +114156,7 @@ components: required: - action_object_type - action_type + - event_types - name - object_types ExportTemplate: @@ -106380,6 +114173,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106409,14 +114206,14 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -106440,6 +114237,7 @@ components: - data_path - data_synced - display + - display_url - id - last_updated - name @@ -106481,7 +114279,7 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' required: - name - object_types @@ -106493,10 +114291,17 @@ components: id: type: integer readOnly: true + name: + type: string + maxLength: 100 url: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106528,13 +114333,56 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ip_addresses: + type: array + items: + $ref: '#/components/schemas/BriefIPAddress' + readOnly: true required: + - created - display + - display_url - group_id - id + - ip_addresses + - last_updated - protocol - url FHRPGroupAssignment: @@ -106552,7 +114400,7 @@ components: type: string readOnly: true group: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/BriefFHRPGroup' interface_type: type: string interface_id: @@ -106593,7 +114441,7 @@ components: description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/BriefFHRPGroupRequest' interface_type: type: string interface_id: @@ -106614,6 +114462,9 @@ components: type: object description: Adds support for custom fields and tags. properties: + name: + type: string + maxLength: 100 protocol: enum: - vrrp2 @@ -106642,9 +114493,33 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - group_id - protocol @@ -106659,14 +114534,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -106726,6 +114605,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -106820,8 +114707,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -106871,6 +114774,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -106892,7 +114803,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -106906,6 +114817,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -106934,6 +114846,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -106954,6 +114867,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106969,6 +114886,7 @@ components: maxLength: 200 required: - display + - display_url - id - name - url @@ -106995,10 +114913,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -107056,6 +114974,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107150,8 +115076,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -107201,11 +115143,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -107267,6 +115209,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107361,8 +115311,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -107412,13 +115378,21 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/BriefRearPortTemplate' rear_port_position: type: integer maximum: 1024 @@ -107455,11 +115429,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -107519,6 +115493,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107613,14 +115595,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -107633,6 +115631,22 @@ components: - name - rear_port - type + GenericObject: + type: object + description: Minimal representation of some generic object identified by ContentType + and PK. + properties: + object_type: + type: string + object_id: + type: integer + object: + nullable: true + readOnly: true + required: + - object + - object_id + - object_type GenericObjectRequest: type: object description: Minimal representation of some generic object identified by ContentType @@ -107659,6 +115673,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107677,6 +115695,7 @@ components: readOnly: true required: - display + - display_url - id - name - url @@ -107712,6 +115731,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107784,9 +115807,9 @@ components: required: - created - display + - display_url - id - last_updated - - mode - name - url - version @@ -107836,7 +115859,6 @@ components: type: object additionalProperties: {} required: - - mode - name - version IKEProposal: @@ -107850,6 +115872,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108085,10 +116111,10 @@ components: readOnly: true nullable: true required: - - authentication_algorithm - authentication_method - created - display + - display_url - encryption_algorithm - group - id @@ -108257,7 +116283,6 @@ components: type: object additionalProperties: {} required: - - authentication_algorithm - authentication_method - encryption_algorithm - group @@ -108273,6 +116298,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108296,14 +116325,143 @@ components: readOnly: true address: type: string + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + - DHCP + - SLAAC + role: + type: object + properties: + value: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + label: + type: string + enum: + - Loopback + - Secondary + - Anycast + - VIP + - VRRP + - HSRP + - GLBP + - CARP + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + assigned_object: + nullable: true + readOnly: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true + nat_outside: + type: array + items: + $ref: '#/components/schemas/NestedIPAddress' + readOnly: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - address + - assigned_object + - created - display + - display_url - family - id + - last_updated + - nat_outside - url IPAddressRequest: type: object @@ -108312,9 +116470,90 @@ components: address: type: string minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddressRequest' + nullable: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - address IPRange: @@ -108328,6 +116567,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108358,11 +116601,11 @@ components: readOnly: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true status: type: object @@ -108387,7 +116630,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true description: type: string @@ -108417,6 +116660,7 @@ components: required: - created - display + - display_url - end_address - family - id @@ -108436,11 +116680,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -108456,7 +116700,7 @@ components: x-spec-enum-id: 6388dfb94ca1cc15 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -108487,6 +116731,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108627,6 +116875,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -108743,6 +116992,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108770,9 +117023,9 @@ components: - ESP - AH ike_policy: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/BriefIKEPolicy' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/BriefIPSecPolicy' comments: type: string tags: @@ -108795,6 +117048,7 @@ components: required: - created - display + - display_url - id - ike_policy - ipsec_policy @@ -108823,9 +117077,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -108851,6 +117105,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108967,6 +117225,7 @@ components: - authentication_algorithm - created - display + - display_url - encryption_algorithm - id - last_updated @@ -109090,12 +117349,10 @@ components: format: uri image_height: type: integer - maximum: 32767 - minimum: 0 + readOnly: true image_width: type: integer - maximum: 32767 - minimum: 0 + readOnly: true created: type: string format: date-time @@ -109138,18 +117395,8 @@ components: image: type: string format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 required: - image - - image_height - - image_width - object_id - object_type Interface: @@ -109163,18 +117410,22 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' vdcs: type: array items: $ref: '#/components/schemas/VirtualDeviceContext' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -109196,6 +117447,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -109249,6 +117501,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -109330,6 +117583,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -109436,6 +117691,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -109563,7 +117820,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 label: type: string enum: @@ -109575,6 +117832,7 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -109628,6 +117886,7 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -110679,7 +118938,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -110690,7 +118949,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -110709,26 +118968,29 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true wireless_lans: type: array items: $ref: '#/components/schemas/WirelessLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110771,6 +119033,7 @@ components: - created - device - display + - display_url - id - l2vpn_termination - last_updated @@ -110785,14 +119048,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -110812,6 +119075,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -110865,6 +119129,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -110946,6 +119211,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -111052,6 +119319,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -111179,7 +119448,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean parent: @@ -111916,7 +120185,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -111931,7 +120200,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -111963,11 +120232,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -111991,6 +120260,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -112044,6 +120314,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -112125,6 +120396,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112231,6 +120504,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -112358,7 +120633,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 label: type: string enum: @@ -112370,6 +120645,7 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -112423,6 +120699,7 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -112607,11 +120884,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -112633,6 +120910,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -112686,6 +120964,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -112767,6 +121046,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112873,6 +121154,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -113000,7 +121283,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean mgmt_only: @@ -113078,11 +121361,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' parent: type: integer nullable: true @@ -113095,11 +121382,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113159,6 +121446,7 @@ components: - created - device - display + - display_url - id - last_updated - name @@ -113168,7 +121456,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' parent: type: integer nullable: true @@ -113182,11 +121470,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113237,6 +121525,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113278,6 +121570,7 @@ components: required: - created - display + - display_url - id - inventoryitem_count - last_updated @@ -113333,7 +121626,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' parent: type: integer nullable: true @@ -113348,11 +121641,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113405,7 +121698,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' parent: type: integer nullable: true @@ -113421,11 +121714,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113456,6 +121749,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113529,7 +121826,7 @@ components: nullable: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true data: nullable: true @@ -113542,6 +121839,7 @@ components: required: - created - display + - display_url - error - id - job_id @@ -113550,13 +121848,6 @@ components: - status - url - user - JobRequest: - type: object - properties: - completed: - type: string - format: date-time - nullable: true JournalEntry: type: object description: Adds support for custom fields and tags. @@ -113568,6 +121859,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113635,6 +121930,7 @@ components: - comments - created - display + - display_url - id - last_updated - url @@ -113692,6 +121988,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113765,12 +122065,46 @@ components: - Ethernet Virtual Private LAN - Ethernet Private Tree - Ethernet Virtual Private Tree + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -113832,9 +122166,30 @@ components: * `evp-tree` - Ethernet Virtual Private Tree' x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113849,23 +122204,76 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true l2vpn: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/BriefL2VPN' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + assigned_object: + nullable: true + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - assigned_object + - assigned_object_id + - assigned_object_type + - created - display + - display_url - id - l2vpn + - last_updated - url L2VPNTerminationRequest: type: object description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - assigned_object_id + - assigned_object_type - l2vpn Location: type: object @@ -113878,6 +122286,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113888,23 +122300,92 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSite' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocation' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true rack_count: type: integer readOnly: true default: 0 + device_count: + type: integer + readOnly: true + default: 0 _depth: type: integer readOnly: true title: ' depth' required: - _depth + - created + - device_count - display + - display_url - id + - last_updated - name - rack_count + - site - slug - url LocationRequest: @@ -113920,11 +122401,51 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocationRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site - slug Manufacturer: type: object @@ -113937,6 +122458,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113950,15 +122475,45 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true devicetype_count: type: integer format: int64 readOnly: true + inventoryitem_count: + type: integer + format: int64 + readOnly: true + platform_count: + type: integer + format: int64 + readOnly: true required: + - created - devicetype_count - display + - display_url - id + - inventoryitem_count + - last_updated - name + - platform_count - slug - url ManufacturerRequest: @@ -113977,6 +122532,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113991,18 +122553,92 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module_bay: $ref: '#/components/schemas/NestedModuleBay' + module_type: + $ref: '#/components/schemas/BriefModuleType' + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + label: + type: string + enum: + - Offline + - Active + - Planned + - Staged + - Failed + - Decommissioning + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - device - display + - display_url - id + - last_updated - module_bay + - module_type - url ModuleBay: type: object @@ -114015,17 +122651,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true name: type: string maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true label: type: string @@ -114059,65 +122703,28 @@ components: - created - device - display + - display_url - id - last_updated - name - url - ModuleBayNestedModule: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - serial: - type: string - title: Serial number - maxLength: 50 - required: - - display - - id - - url - ModuleBayNestedModuleRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - serial: - type: string - title: Serial number - maxLength: 50 ModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true label: type: string @@ -114158,7 +122765,13 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay @@ -114187,7 +122800,6 @@ components: nullable: true required: - created - - device_type - display - id - last_updated @@ -114201,7 +122813,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -114220,19 +122838,63 @@ components: type: string maxLength: 200 required: - - device_type - name ModuleRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: $ref: '#/components/schemas/NestedModuleBayRequest' + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - device - module_bay + - module_type ModuleType: type: object description: Adds support for custom fields and tags. @@ -114244,20 +122906,120 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' model: type: string maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - manufacturer - model - url @@ -114266,14 +123028,75 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -114294,6 +123117,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114311,6 +123138,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114354,6 +123182,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114363,6 +123195,7 @@ components: maxLength: 64 required: - display + - display_url - id - url NestedDeviceRequest: @@ -114396,6 +123229,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114404,9 +123241,61 @@ components: maxLength: 150 required: - display + - display_url - id - name - url + NestedIPAddress: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: integer + readOnly: true + address: + type: string + required: + - address + - display + - display_url + - family + - id + - url + NestedIPAddressRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + address: + type: string + minLength: 1 + required: + - address NestedInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114424,6 +123313,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114445,6 +123338,7 @@ components: - _occupied - device - display + - display_url - id - name - url @@ -114515,6 +123409,71 @@ components: maxLength: 64 required: - name + NestedLocation: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url + NestedLocationRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug NestedModuleBay: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114532,18 +123491,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModule' - nullable: true name: type: string maxLength: 64 required: - display + - display_url - id - name - url @@ -114557,16 +123517,49 @@ components: subclassed to return a full representation of the related object on read.' properties: - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModuleRequest' - nullable: true name: type: string minLength: 1 maxLength: 64 required: - name + NestedProviderAccount: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + required: + - account + - display + - display_url + - id + - url NestedRegion: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114584,6 +123577,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114601,6 +123598,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114627,7 +123625,72 @@ components: required: - name - slug - NestedSiteGroup: + NestedSiteGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url + NestedSiteGroupRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug + NestedTag: type: object description: 'Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a @@ -114644,63 +123707,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - slug - - url - NestedSiteGroupRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - - slug - NestedTag: - 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: + display_url: type: string format: uri readOnly: true @@ -114720,6 +123727,7 @@ components: maxLength: 6 required: - display + - display_url - id - name - slug @@ -114768,6 +123776,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114785,6 +123797,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114828,6 +123841,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114839,6 +123856,7 @@ components: maxLength: 150 required: - display + - display_url - id - url - username @@ -114859,6 +123877,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114871,6 +123893,7 @@ components: maxLength: 64 required: - display + - display_url - id - name - url @@ -114908,6 +123931,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114916,6 +123943,7 @@ components: maxLength: 64 required: - display + - display_url - id - name - url @@ -114935,6 +123963,49 @@ components: maxLength: 64 required: - name + NestedWirelessLANGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url NestedWirelessLANGroupRequest: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114974,6 +124045,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114982,6 +124057,7 @@ components: maxLength: 32 required: - display + - display_url - id - url NestedWirelessLinkRequest: @@ -114997,6 +124073,193 @@ components: ssid: type: string maxLength: 32 + Notification: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - created + - display + - event_type + - id + - object + - object_id + - object_type + - url + - user + NotificationGroup: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + display_url: + type: string + format: uri + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + $ref: '#/components/schemas/Group' + users: + type: array + items: + $ref: '#/components/schemas/User' + required: + - display + - display_url + - id + - name + - url + NotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + required: + - name + NotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - event_type + - object_id + - object_type + - user ObjectChange: type: object properties: @@ -115007,6 +124270,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115016,7 +124283,7 @@ components: readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true user_name: type: string @@ -115061,17 +124328,16 @@ components: prechange_data: readOnly: true nullable: true - title: Pre-change data postchange_data: readOnly: true nullable: true - title: Post-change data required: - action - changed_object - changed_object_id - changed_object_type - display + - display_url - id - postchange_data - prechange_data @@ -115094,6 +124360,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115130,6 +124400,7 @@ components: required: - actions - display + - display_url - id - name - object_types @@ -115341,6 +124612,52 @@ components: type: array items: $ref: '#/components/schemas/CableTermination' + PaginatedCircuitGroupAssignmentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroupAssignment' + PaginatedCircuitGroupList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroup' PaginatedCircuitList: type: object required: @@ -116629,6 +125946,52 @@ components: type: array items: $ref: '#/components/schemas/ModuleType' + PaginatedNotificationGroupList: + 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/NotificationGroup' + PaginatedNotificationList: + 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/Notification' PaginatedObjectChangeList: type: object required: @@ -117043,6 +126406,29 @@ components: type: array items: $ref: '#/components/schemas/RackRole' + PaginatedRackTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/RackType' PaginatedRackUnitList: type: object required: @@ -117319,6 +126705,29 @@ components: type: array items: $ref: '#/components/schemas/Site' + PaginatedSubscriptionList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Subscription' PaginatedTagList: type: object required: @@ -117793,7 +127202,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' start: type: integer maximum: 4294967295 @@ -117806,7 +127215,7 @@ components: format: int64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117830,11 +127239,11 @@ components: description: 16- or 32-bit autonomous system number rir: allOf: - - $ref: '#/components/schemas/RIRRequest' + - $ref: '#/components/schemas/BriefRIRRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117863,7 +127272,7 @@ components: minimum: 0 format: int64 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' PatchedCableTerminationRequest: type: object description: Adds support for custom fields and tags. @@ -117887,12 +127296,39 @@ components: maximum: 9223372036854775807 minimum: 0 format: int64 + PatchedCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -117905,11 +127341,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + - $ref: '#/components/schemas/BriefProviderNetworkRequest' nullable: true port_speed: type: integer @@ -118095,7 +127531,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} PatchedConfigTemplateRequest: type: object @@ -118121,7 +127557,7 @@ components: minLength: 1 description: Jinja2 template code. data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' tags: type: array items: @@ -118132,7 +127568,7 @@ components: properties: group: allOf: - - $ref: '#/components/schemas/ContactGroupRequest' + - $ref: '#/components/schemas/BriefContactGroupRequest' nullable: true name: type: string @@ -118225,7 +127661,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -118241,12 +127677,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -118287,23 +127723,986 @@ components: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + installed_device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedDeviceBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + 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() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + template_code: + type: string + minLength: 1 + description: Jinja2 template code. The list of objects being exported is + passed as a context variable named queryset. + mime_type: + type: string + description: Defaults to text/plain; charset=utf-8 + maxLength: 50 + file_extension: + type: string + description: Extension to append to the rendered filename + maxLength: 15 + as_attachment: + type: boolean + description: Download file as attachment + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + PatchedFHRPGroupAssignmentRequest: + type: object + description: Adds support for custom fields and tags. + properties: + group: + $ref: '#/components/schemas/BriefFHRPGroupRequest' + interface_type: + type: string + interface_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + type: integer + maximum: 255 + minimum: 0 + PatchedFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + maxLength: 100 + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 150 + description: + type: string + maxLength: 200 + permissions: + type: array + items: + type: integer + PatchedImageAttachmentRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + name: + type: string + maxLength: 50 + image: + type: string + format: binary + PatchedInventoryItemRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemRoleRequest: + 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 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + PatchedL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + installed_module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + PatchedNotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedNotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + PatchedObjectPermissionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + enabled: + type: boolean + object_types: + type: array + items: + type: string + actions: + type: array + items: + type: string + minLength: 1 + maxLength: 30 + description: The list of actions granted by this permission + constraints: + nullable: true + description: Queryset filter matching the applicable objects of the selected + type(s) + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + minLength: 1 + maxLength: 100 + service_id: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackReservationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + rack: + $ref: '#/components/schemas/BriefRackRequest' + units: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + user: + $ref: '#/components/schemas/BriefUserRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + minLength: 1 + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + 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 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRoleRequest: + 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_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRouteTargetRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Route target value (formatted in accordance with RFC 4360) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedSavedFilterRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + user: + type: integer + nullable: true + weight: + type: integer + maximum: 32767 + minimum: 0 + enabled: + type: boolean + shared: + type: boolean + parameters: {} + PatchedScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + PatchedSubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + PatchedTagRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + pattern: ^[-\w]+$ + maxLength: 100 + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + object_types: + type: array + items: + type: string + PatchedTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 100 + slug: type: string - description: Physical label - maxLength: 64 + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true + comments: + type: string tags: type: array items: @@ -118311,29 +128710,34 @@ components: custom_fields: type: object additionalProperties: {} - PatchedDeviceBayTemplateRequest: + PatchedTokenRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - name: + user: + $ref: '#/components/schemas/BriefUserRequest' + expires: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + format: date-time + nullable: true + last_used: type: string - description: Physical label - maxLength: 64 + format: date-time + nullable: true + key: + type: string + maxLength: 40 + minLength: 40 + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key description: type: string maxLength: 200 - PatchedDeviceRoleRequest: + PatchedTunnelGroupRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118346,18 +128750,6 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true description: type: string maxLength: 200 @@ -118368,114 +128760,82 @@ components: custom_fields: type: object additionalProperties: {} - PatchedExportTemplateRequest: + PatchedUserRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string - name: + username: type: string minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + password: type: string + writeOnly: true minLength: 1 - description: Jinja2 template code. The list of objects being exported is - passed as a context variable named queryset. - mime_type: + maxLength: 128 + first_name: type: string - description: Defaults to text/plain; charset=utf-8 - maxLength: 50 - file_extension: + maxLength: 150 + last_name: type: string - description: Extension to append to the rendered filename - maxLength: 15 - as_attachment: + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: type: boolean - description: Download file as attachment - data_source: - $ref: '#/components/schemas/DataSourceRequest' - PatchedFHRPGroupAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - group: - $ref: '#/components/schemas/FHRPGroupRequest' - interface_type: + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: type: string - interface_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - priority: - type: integer - maximum: 255 - minimum: 0 - PatchedFHRPGroupRequest: + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer + PatchedVLANGroupRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string + minLength: 1 maxLength: 100 - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' + slug: type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + scope_type: type: string - title: Authentication key - maxLength: 255 + nullable: true + scope_id: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118483,105 +128843,172 @@ components: custom_fields: type: object additionalProperties: {} - PatchedGroupRequest: + PatchedVRFRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 - permissions: + comments: + type: string + import_targets: type: array items: type: integer - PatchedImageAttachmentRequest: + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedVirtualDiskRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string - maxLength: 50 - image: + minLength: 1 + maxLength: 64 + description: type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: + maxLength: 200 + size: type: integer - maximum: 32767 + maximum: 2147483647 minimum: 0 - PatchedInventoryItemRequest: + title: Size (MB) + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWebhookRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - parent: - type: integer - nullable: true name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 150 + description: + type: string + maxLength: 200 + payload_url: + type: string + minLength: 1 + title: URL + description: 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. + maxLength: 500 + http_method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + x-spec-enum-id: a12018571a034921 + http_content_type: + type: string + minLength: 1 + description: The complete list of official content types is available here. + maxLength: 100 + additional_headers: + type: string + description: 'User-supplied HTTP headers to be sent with the request in + addition to the HTTP content type. Headers should be defined in the format + Name: Value. Jinja2 template processing is supported with + the same context as the request body (below).' + body_template: + type: string + description: 'Jinja2 template for a custom request body. If blank, a JSON + object representing the change will be included. Available context data + includes: event, model, timestamp, + username, request_id, and data.' + secret: + type: string + description: When provided, the request will include a X-Hook-Signature + header containing a HMAC hex digest of the payload body using the secret + as the key. The secret is not transmitted in the request. + maxLength: 255 + ssl_verification: + type: boolean + description: Enable SSL certificate verification. Disable with caution! + ca_file_path: type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true - manufacturer: + description: The specific CA certificate file to use for SSL verification. + Leave blank to use the system defaults. + maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableAggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: + date_added: type: string + format: date nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered description: type: string maxLength: 200 - component_type: + comments: type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true tags: type: array items: @@ -118589,27 +129016,152 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemRoleRequest: + PatchedWritableCableRequest: type: object description: Adds support for custom fields and tags. properties: - name: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' type: string - minLength: 1 - maxLength: 100 - slug: + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + label: type: string - minLength: 1 maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118617,65 +129169,99 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemTemplateRequest: + PatchedWritableCircuitGroupAssignmentRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableCircuitRequest: + type: object + description: Adds support for custom fields and tags. properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - parent: - type: integer - nullable: true - name: + cid: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true - manufacturer: + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - description: + install_date: type: string - maxLength: 200 - component_type: + format: date + nullable: true + title: Installed + termination_date: type: string + format: date nullable: true - component_id: + title: Terminates + commit_rate: type: integer - maximum: 9223372036854775807 + maximum: 2147483647 minimum: 0 - format: int64 nullable: true - PatchedL2VPNTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - l2vpn: - $ref: '#/components/schemas/L2VPNRequest' - assigned_object_type: + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 tags: type: array items: @@ -118683,7 +129269,11 @@ components: custom_fields: type: object additionalProperties: {} - PatchedManufacturerRequest: + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' + PatchedWritableClusterRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118691,14 +129281,43 @@ components: type: string minLength: 1 maxLength: 100 - slug: + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118706,31 +129325,115 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayRequest: + PatchedWritableConsolePortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true label: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -118738,7 +129441,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayTemplateRequest: + PatchedWritableConsolePortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -118746,7 +129449,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -118757,76 +129466,284 @@ components: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a description: type: string maxLength: 200 - PatchedObjectPermissionRequest: + PatchedWritableConsoleServerPortRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 - enabled: + mark_connected: type: boolean - object_types: - type: array - items: - type: string - actions: + description: Treat as if a cable is connected + tags: type: array items: - type: string - minLength: 1 - maxLength: 30 - description: The list of actions granted by this permission - constraints: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsoleServerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - PatchedPlatformRequest: + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a + description: + type: string + maxLength: 200 + PatchedWritableContactAssignmentRequest: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + object_type: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/ManufacturerRequest' - nullable: true - config_template: + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + contact: + $ref: '#/components/schemas/BriefContactRequest' + role: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true - description: + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' type: string - maxLength: 200 + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 tags: type: array items: @@ -118834,25 +129751,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedPowerPanelRequest: + PatchedWritableContactGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true name: type: string minLength: 1 maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118860,97 +129777,272 @@ components: custom_fields: type: object additionalProperties: {} - PatchedProviderAccountRequest: + PatchedWritableCustomFieldChoiceSetRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - provider: - $ref: '#/components/schemas/ProviderRequest' name: - type: string - default: '' - maxLength: 100 - account: type: string minLength: 1 - title: Account ID maxLength: 100 description: type: string maxLength: 200 - comments: + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' type: string - tags: + x-spec-enum-id: cf0efb5195f85007 + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + extra_choices: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderNetworkRequest: + type: array + items: {} + maxItems: 2 + minItems: 2 + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + PatchedWritableCustomFieldRequest: 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: - provider: - $ref: '#/components/schemas/ProviderRequest' + object_types: + type: array + items: + type: string + type: + enum: + - text + - longtext + - integer + - decimal + - boolean + - date + - datetime + - url + - json + - select + - multiselect + - object + - multiobject + type: string + x-spec-enum-id: 22e3a64138d10046 + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' + related_object_type: + type: string + nullable: true name: type: string minLength: 1 - maxLength: 100 - service_id: + description: Internal field name + pattern: ^[a-z0-9_]+$ + maxLength: 50 + label: type: string - maxLength: 100 + description: Name of the field as displayed to users (if not provided, 'the + field's name will be used) + maxLength: 50 + group_name: + type: string + description: Custom fields within the same group will be displayed together + maxLength: 50 description: type: string maxLength: 200 + required: + type: boolean + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object + search_weight: + type: integer + maximum: 32767 + minimum: 0 + description: Weighting for search. Lower values are considered more important. + Fields with a search weight of zero will be ignored. + filter_logic: + enum: + - disabled + - loose + - exact + type: string + x-spec-enum-id: a958350ae21c10ee + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + ui_visible: + enum: + - always + - if-set + - hidden + type: string + x-spec-enum-id: cd2cf94af56de747 + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' + ui_editable: + enum: + - 'yes' + - 'no' + - hidden + type: string + x-spec-enum-id: 1065673147e26bb5 + description: 'Specifies whether the custom field value can be edited in + the UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' + is_cloneable: + type: boolean + description: Replicate this value when cloning objects + default: + nullable: true + description: Default value for the field (must be a JSON value). Encapsulate + strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). + weight: + type: integer + maximum: 32767 + minimum: 0 + title: Display weight + description: Fields with higher weights appear lower in a form. + validation_minimum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Minimum value + description: Minimum allowed value (for numeric fields) + validation_maximum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Maximum value + description: Maximum allowed value (for numeric fields) + validation_regex: + type: string + description: Regular expression to enforce on text field values. Use ^ and + $ to force matching of entire string. For example, ^[A-Z]{3}$ + will limit values to exactly three uppercase letters. + maxLength: 500 + choice_set: + allOf: + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' + nullable: true comments: type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderRequest: + PatchedWritableDataSourceRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - description: Full name of the provider maxLength: 100 - slug: + type: type: string minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - type: integer + maxLength: 50 + source_url: + type: string + minLength: 1 + title: URL + maxLength: 200 + enabled: + type: boolean description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing comments: type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' custom_fields: type: object additionalProperties: {} - PatchedRIRRequest: + PatchedWritableDeviceTypeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + model: type: string minLength: 1 maxLength: 100 @@ -118959,41 +130051,96 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - is_private: + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRackReservationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - rack: - $ref: '#/components/schemas/RackRequest' - units: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - user: - $ref: '#/components/schemas/UserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string - minLength: 1 maxLength: 200 comments: type: string @@ -119004,27 +130151,176 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRackRoleRequest: + PatchedWritableDeviceWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string - minLength: 1 - maxLength: 100 - slug: + nullable: true + maxLength: 64 + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + role: + $ref: '#/components/schemas/BriefDeviceRoleRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + serial: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: + title: Serial number + description: Chassis serial number, assigned by the manufacturer + maxLength: 50 + asset_tag: type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + position: + type: number + format: double + maximum: 1000 + minimum: 0.5 + exclusiveMaximum: true + nullable: true + title: Position (U) + face: + enum: + - front + - rear + - '' + type: string + description: '* `front` - Front + + * `rear` - Rear' + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + status: + enum: + - offline + - active + - planned + - staged + - failed + - inventory + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 8d8971779f16ee18 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + virtual_chassis: + allOf: + - $ref: '#/components/schemas/BriefVirtualChassisRequest' + nullable: true + vc_position: + type: integer + maximum: 255 + minimum: 0 + nullable: true + vc_priority: + type: integer + maximum: 255 + minimum: 0 + nullable: true + description: Virtual chassis master election priority description: type: string maxLength: 200 + comments: + type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -119032,51 +130328,285 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRoleRequest: + PatchedWritableEventRuleRequest: type: object description: Adds support for custom fields and tags. properties: + object_types: + type: array + items: + type: string name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 150 + enabled: + type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. + conditions: + nullable: true + description: A set of conditions which determine whether the event will + be generated. + action_type: + enum: + - webhook + - script + - notification type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 + action_object_type: + type: string + action_object_id: type: integer - maximum: 32767 + maximum: 9223372036854775807 minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + custom_fields: + type: object + additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRouteTargetRequest: + PatchedWritableFrontPortRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + rear_port: + type: integer + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 + description: Mapped position on corresponding rear port description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -119084,70 +130614,214 @@ components: custom_fields: type: object additionalProperties: {} - PatchedSavedFilterRequest: + PatchedWritableFrontPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 - slug: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other type: string - maxLength: 200 - user: - type: integer - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - enabled: - type: boolean - shared: - type: boolean - parameters: {} - PatchedTagRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + rear_port: + $ref: '#/components/schemas/BriefRearPortTemplateRequest' + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 description: type: string maxLength: 200 - object_types: - type: array - items: - type: string - PatchedTenantRequest: + PatchedWritableIKEPolicyRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119155,18 +130829,37 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/TenantGroupRequest' - nullable: true description: type: string maxLength: 200 + version: + enum: + - 1 + - 2 + type: integer + description: '* `1` - IKEv1 + + * `2` - IKEv2' + x-spec-enum-id: 00872b77916a1fde + minimum: 0 + maximum: 32767 + mode: + enum: + - aggressive + - main + - '' + type: string + description: '* `aggressive` - Aggressive + + * `main` - Main' + x-spec-enum-id: 64c1be7bdb2548ca + proposals: + type: array + items: + type: integer + preshared_key: + type: string + title: Pre-shared key comments: type: string tags: @@ -119176,34 +130869,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedTokenRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - user: - $ref: '#/components/schemas/UserRequest' - expires: - type: string - format: date-time - nullable: true - last_used: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - PatchedTunnelGroupRequest: + PatchedWritableIKEProposalRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119211,14 +130877,158 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 + authentication_method: + enum: + - preshared-keys + - certificates + - rsa-signatures + - dsa-signatures + type: string + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + x-spec-enum-id: 92bb2f1103b3a262 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + type: integer + x-spec-enum-id: dbef43be795462a8 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + minimum: 0 + maximum: 32767 + sa_lifetime: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Security association lifetime (in seconds) + comments: + type: string tags: type: array items: @@ -119226,94 +131036,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedUserRequest: + PatchedWritableIPAddressRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: + address: type: string - writeOnly: true minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: - type: string - format: date-time + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - groups: - type: array - items: - type: integer - permissions: - type: array - items: - type: integer - PatchedVLANGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac type: string - minLength: 1 - maxLength: 100 - slug: + x-spec-enum-id: 24935cfee15bd268 + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - scope_type: + x-spec-enum-id: 10fbcb4930889b0f + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + assigned_object_type: type: string nullable: true - scope_id: + assigned_object_id: type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: + nat_inside: type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN + nullable: true + title: NAT (inside) + description: The IP for which this address is the "outside" IP + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -119321,41 +131134,48 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVRFRequest: + PatchedWritableIPRangeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + start_address: type: string minLength: 1 - maxLength: 100 - rd: + end_address: type: string + minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 comments: type: string - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer tags: type: array items: @@ -119363,24 +131183,107 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVirtualDiskRequest: + mark_utilized: + type: boolean + description: Treat as fully utilized + PatchedWritableIPSecPolicyRequest: type: object description: Adds support for custom fields and tags. properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 - maxLength: 64 + maxLength: 100 description: type: string maxLength: 200 - size: + proposals: + type: array + items: + type: integer + pfs_group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 type: integer - maximum: 2147483647 + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' minimum: 0 - title: Size (GB) + maximum: 32767 + comments: + type: string tags: type: array items: @@ -119388,103 +131291,113 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWebhookRequest: + PatchedWritableIPSecProfileRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 description: type: string maxLength: 200 - payload_url: - type: string - minLength: 1 - title: URL - description: 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. - maxLength: 500 - http_method: + mode: enum: - - GET - - POST - - PUT - - PATCH - - DELETE + - esp + - ah type: string - description: '* `GET` - GET - - * `POST` - POST - - * `PUT` - PUT - - * `PATCH` - PATCH + description: '* `esp` - ESP - * `DELETE` - DELETE' - x-spec-enum-id: a12018571a034921 - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is supported with - the same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a X-Hook-Signature - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: + * `ah` - AH' + x-spec-enum-id: 1136c2cdfee84436 + ike_policy: + $ref: '#/components/schemas/BriefIKEPolicyRequest' + ipsec_policy: + $ref: '#/components/schemas/BriefIPSecPolicyRequest' + comments: type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableAggregateRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableIPSecProposalRequest: type: object description: Adds support for custom fields and tags. properties: - prefix: + name: type: string minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true + maxLength: 100 description: type: string maxLength: 200 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + - '' + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + title: Encryption + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + sa_lifetime_seconds: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (seconds) + description: Security association lifetime (seconds) + sa_lifetime_data: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (KB) + description: Security association lifetime (in kilobytes) comments: type: string tags: @@ -119494,1353 +131407,1197 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCableRequest: + PatchedWritableInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + vdcs: + type: array + items: + type: integer + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 type: enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - power - - '' + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - other type: string - description: '* `cat3` - CAT3 + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `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) + + * `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) + + * `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) - * `cat5` - CAT5 + * `32gfc-sfp28` - SFP28 (32GFC) - * `cat5e` - CAT5e + * `32gfc-sfpp` - SFP+ (32GFC) - * `cat6` - CAT6 + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `cat6a` - CAT6a + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `cat7` - CAT7 + * `64gfc-sfpp` - SFP+ (64GFC) - * `cat7a` - CAT7a + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `cat8` - CAT8 + * `infiniband-sdr` - SDR (2 Gbps) - * `dac-active` - Direct Attach Copper (Active) + * `infiniband-ddr` - DDR (4 Gbps) - * `dac-passive` - Direct Attach Copper (Passive) + * `infiniband-qdr` - QDR (8 Gbps) - * `mrj21-trunk` - MRJ21 Trunk + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `coaxial` - Coaxial + * `infiniband-fdr` - FDR (13.5 Gbps) - * `mmf` - Multimode Fiber + * `infiniband-edr` - EDR (25 Gbps) - * `mmf-om1` - Multimode Fiber (OM1) + * `infiniband-hdr` - HDR (50 Gbps) - * `mmf-om2` - Multimode Fiber (OM2) + * `infiniband-ndr` - NDR (100 Gbps) - * `mmf-om3` - Multimode Fiber (OM3) + * `infiniband-xdr` - XDR (250 Gbps) - * `mmf-om4` - Multimode Fiber (OM4) + * `t1` - T1 (1.544 Mbps) - * `mmf-om5` - Multimode Fiber (OM5) + * `e1` - E1 (2.048 Mbps) - * `smf` - Singlemode Fiber + * `t3` - T3 (45 Mbps) - * `smf-os1` - Singlemode Fiber (OS1) + * `e3` - E3 (34 Mbps) - * `smf-os2` - Singlemode Fiber (OS2) + * `xdsl` - xDSL - * `aoc` - Active Optical Cabling (AOC) + * `docsis` - DOCSIS - * `power` - Power' - x-spec-enum-id: e671018e64196f8d - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `planned` - Planned + * `epon` - EPON (1 Gbps) - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers + * `10g-epon` - 10G-EPON (10 Gbps) - * `m` - Meters + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `cm` - Centimeters + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `mi` - Miles + * `xgs-pon` - XGS-PON (10 Gbps) - * `ft` - Feet + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/ProviderRequest' - provider_account: - allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' - nullable: true - type: - $ref: '#/components/schemas/CircuitTypeRequest' - status: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned + * `25g-pon` - 25G-PON (25 Gbps) - * `provisioning` - Provisioning + * `50g-pon` - 50G-PON (50 Gbps) - * `active` - Active + * `cisco-stackwise` - Cisco StackWise - * `offline` - Offline + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `deprovisioning` - Deprovisioning + * `cisco-flexstack` - Cisco FlexStack - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' + x-spec-enum-id: 8d111a81a4af2fa3 + enabled: + type: boolean + parent: + type: integer nullable: true - install_date: - type: string - format: date + title: Parent interface + bridge: + type: integer nullable: true - title: Installed - termination_date: + title: Bridge interface + lag: + type: integer + nullable: true + title: Parent LAG + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string - format: date nullable: true - title: Terminates - commit_rate: + speed: type: integer maximum: 2147483647 minimum: 0 nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableClusterRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - $ref: '#/components/schemas/ClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' - nullable: true - status: + title: Speed (Kbps) + duplex: enum: - - planned - - staging - - active - - decommissioning - - offline + - half + - full + - auto + - '' type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `half` - Half - * `decommissioning` - Decommissioning + * `full` - Full - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `auto` - Auto' + x-spec-enum-id: 47eab9b1a65a1e21 nullable: true - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + wwn: + type: string nullable: true + mgmt_only: + type: boolean + title: Management only + description: This interface is used only for out-of-band management description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: + mode: + enum: + - access + - tagged + - tagged-all + - '' type: string - minLength: 1 - maxLength: 64 - label: + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + rf_role: + enum: + - ap + - station + - '' type: string - description: Physical label - maxLength: 64 - type: + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + rf_channel: enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other + - 2.4g-1-2412-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 6g-1-5955-20 + - 6g-3-5965-40 + - 6g-5-5975-20 + - 6g-7-5985-80 + - 6g-9-5995-20 + - 6g-11-6005-40 + - 6g-13-6015-20 + - 6g-15-6025-160 + - 6g-17-6035-20 + - 6g-19-6045-40 + - 6g-21-6055-20 + - 6g-23-6065-80 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-233-7115-20 + - 60g-1-58320-2160 + - 60g-2-60480-2160 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 - '' type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + * `2.4g-2-2417-22` - 2 (2417 MHz) - * `de-9` - DE-9 + * `2.4g-3-2422-22` - 3 (2422 MHz) - * `db-25` - DB-25 + * `2.4g-4-2427-22` - 4 (2427 MHz) - * `rj-11` - RJ-11 + * `2.4g-5-2432-22` - 5 (2432 MHz) - * `rj-12` - RJ-12 + * `2.4g-6-2437-22` - 6 (2437 MHz) - * `rj-45` - RJ-45 + * `2.4g-7-2442-22` - 7 (2442 MHz) - * `mini-din-8` - Mini-DIN 8 + * `2.4g-8-2447-22` - 8 (2447 MHz) - * `usb-a` - USB Type A + * `2.4g-9-2452-22` - 9 (2452 MHz) - * `usb-b` - USB Type B + * `2.4g-10-2457-22` - 10 (2457 MHz) - * `usb-c` - USB Type C + * `2.4g-11-2462-22` - 11 (2462 MHz) - * `usb-mini-a` - USB Mini A + * `2.4g-12-2467-22` - 12 (2467 MHz) - * `usb-mini-b` - USB Mini B + * `2.4g-13-2472-22` - 13 (2472 MHz) - * `usb-micro-a` - USB Micro A + * `5g-32-5160-20` - 32 (5160/20 MHz) - * `usb-micro-b` - USB Micro B + * `5g-34-5170-40` - 34 (5170/40 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-36-5180-20` - 36 (5180/20 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-38-5190-40` - 38 (5190/40 MHz) + * `5g-40-5200-20` - 40 (5200/20 MHz) - * `1200` - 1200 bps + * `5g-42-5210-80` - 42 (5210/80 MHz) - * `2400` - 2400 bps + * `5g-44-5220-20` - 44 (5220/20 MHz) - * `4800` - 4800 bps + * `5g-46-5230-40` - 46 (5230/40 MHz) - * `9600` - 9600 bps + * `5g-48-5240-20` - 48 (5240/20 MHz) - * `19200` - 19.2 kbps + * `5g-50-5250-160` - 50 (5250/160 MHz) - * `38400` - 38.4 kbps + * `5g-52-5260-20` - 52 (5260/20 MHz) - * `57600` - 57.6 kbps + * `5g-54-5270-40` - 54 (5270/40 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-56-5280-20` - 56 (5280/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-58-5290-80` - 58 (5290/80 MHz) - * `db-25` - DB-25 + * `5g-60-5300-20` - 60 (5300/20 MHz) - * `rj-11` - RJ-11 + * `5g-62-5310-40` - 62 (5310/40 MHz) - * `rj-12` - RJ-12 + * `5g-64-5320-20` - 64 (5320/20 MHz) - * `rj-45` - RJ-45 + * `5g-100-5500-20` - 100 (5500/20 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-102-5510-40` - 102 (5510/40 MHz) - * `usb-a` - USB Type A + * `5g-104-5520-20` - 104 (5520/20 MHz) - * `usb-b` - USB Type B + * `5g-106-5530-80` - 106 (5530/80 MHz) - * `usb-c` - USB Type C + * `5g-108-5540-20` - 108 (5540/20 MHz) - * `usb-mini-a` - USB Mini A + * `5g-110-5550-40` - 110 (5550/40 MHz) - * `usb-mini-b` - USB Mini B + * `5g-112-5560-20` - 112 (5560/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-114-5570-160` - 114 (5570/160 MHz) - * `usb-micro-b` - USB Micro B + * `5g-116-5580-20` - 116 (5580/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-118-5590-40` - 118 (5590/40 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableConsoleServerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + * `5g-120-5600-20` - 120 (5600/20 MHz) + * `5g-122-5610-80` - 122 (5610/80 MHz) - * `de-9` - DE-9 + * `5g-124-5620-20` - 124 (5620/20 MHz) - * `db-25` - DB-25 + * `5g-126-5630-40` - 126 (5630/40 MHz) - * `rj-11` - RJ-11 + * `5g-128-5640-20` - 128 (5640/20 MHz) - * `rj-12` - RJ-12 + * `5g-132-5660-20` - 132 (5660/20 MHz) - * `rj-45` - RJ-45 + * `5g-134-5670-40` - 134 (5670/40 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-136-5680-20` - 136 (5680/20 MHz) - * `usb-a` - USB Type A + * `5g-138-5690-80` - 138 (5690/80 MHz) - * `usb-b` - USB Type B + * `5g-140-5700-20` - 140 (5700/20 MHz) - * `usb-c` - USB Type C + * `5g-142-5710-40` - 142 (5710/40 MHz) - * `usb-mini-a` - USB Mini A + * `5g-144-5720-20` - 144 (5720/20 MHz) - * `usb-mini-b` - USB Mini B + * `5g-149-5745-20` - 149 (5745/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-151-5755-40` - 151 (5755/40 MHz) - * `usb-micro-b` - USB Micro B + * `5g-153-5765-20` - 153 (5765/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-155-5775-80` - 155 (5775/80 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-157-5785-20` - 157 (5785/20 MHz) + * `5g-159-5795-40` - 159 (5795/40 MHz) - * `1200` - 1200 bps + * `5g-161-5805-20` - 161 (5805/20 MHz) - * `2400` - 2400 bps + * `5g-163-5815-160` - 163 (5815/160 MHz) - * `4800` - 4800 bps + * `5g-165-5825-20` - 165 (5825/20 MHz) - * `9600` - 9600 bps + * `5g-167-5835-40` - 167 (5835/40 MHz) - * `19200` - 19.2 kbps + * `5g-169-5845-20` - 169 (5845/20 MHz) - * `38400` - 38.4 kbps + * `5g-171-5855-80` - 171 (5855/80 MHz) - * `57600` - 57.6 kbps + * `5g-173-5865-20` - 173 (5865/20 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsoleServerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-175-5875-40` - 175 (5875/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-177-5885-20` - 177 (5885/20 MHz) - * `db-25` - DB-25 + * `6g-1-5955-20` - 1 (5955/20 MHz) - * `rj-11` - RJ-11 + * `6g-3-5965-40` - 3 (5965/40 MHz) - * `rj-12` - RJ-12 + * `6g-5-5975-20` - 5 (5975/20 MHz) - * `rj-45` - RJ-45 + * `6g-7-5985-80` - 7 (5985/80 MHz) - * `mini-din-8` - Mini-DIN 8 + * `6g-9-5995-20` - 9 (5995/20 MHz) - * `usb-a` - USB Type A + * `6g-11-6005-40` - 11 (6005/40 MHz) - * `usb-b` - USB Type B + * `6g-13-6015-20` - 13 (6015/20 MHz) - * `usb-c` - USB Type C + * `6g-15-6025-160` - 15 (6025/160 MHz) - * `usb-mini-a` - USB Mini A + * `6g-17-6035-20` - 17 (6035/20 MHz) - * `usb-mini-b` - USB Mini B + * `6g-19-6045-40` - 19 (6045/40 MHz) - * `usb-micro-a` - USB Micro A + * `6g-21-6055-20` - 21 (6055/20 MHz) - * `usb-micro-b` - USB Micro B + * `6g-23-6065-80` - 23 (6065/80 MHz) - * `usb-micro-ab` - USB Micro AB + * `6g-25-6075-20` - 25 (6075/20 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableContactAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - contact: - $ref: '#/components/schemas/ContactRequest' - role: - allOf: - - $ref: '#/components/schemas/ContactRoleRequest' - nullable: true - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary + * `6g-27-6085-40` - 27 (6085/40 MHz) - * `secondary` - Secondary + * `6g-29-6095-20` - 29 (6095/20 MHz) - * `tertiary` - Tertiary + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableContactGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCustomFieldChoiceSetRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-163-6765-40` - 163 (6765/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - base_choices: - enum: - - IATA - - ISO_3166 - - UN_LOCODE - - '' - type: string - x-spec-enum-id: cf0efb5195f85007 - description: 'Base set of predefined choices (optional) + * `6g-165-6775-20` - 165 (6775/20 MHz) + * `6g-167-6785-80` - 167 (6785/80 MHz) - * `IATA` - IATA (Airport codes) + * `6g-169-6795-20` - 169 (6795/20 MHz) - * `ISO_3166` - ISO 3166 (Country codes) + * `6g-171-6805-40` - 171 (6805/40 MHz) - * `UN_LOCODE` - UN/LOCODE (Location codes)' - extra_choices: - type: array - items: - type: array - items: {} - maxItems: 2 - minItems: 2 - order_alphabetically: - type: boolean - description: Choices are automatically ordered alphabetically - PatchedWritableCustomFieldRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-173-6815-20` - 173 (6815/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_types: - type: array - items: - type: string - type: - enum: - - text - - longtext - - integer - - decimal - - boolean - - date - - datetime - - url - - json - - select - - multiselect - - object - - multiobject - type: string - x-spec-enum-id: 22e3a64138d10046 - description: 'The type of data this custom field holds + * `6g-175-6825-160` - 175 (6825/160 MHz) + * `6g-177-6835-20` - 177 (6835/20 MHz) - * `text` - Text + * `6g-179-6845-40` - 179 (6845/40 MHz) - * `longtext` - Text (long) + * `6g-181-6855-20` - 181 (6855/20 MHz) - * `integer` - Integer + * `6g-183-6865-80` - 183 (6865/80 MHz) - * `decimal` - Decimal + * `6g-185-6875-20` - 185 (6875/20 MHz) - * `boolean` - Boolean (true/false) + * `6g-187-6885-40` - 187 (6885/40 MHz) - * `date` - Date + * `6g-189-6895-20` - 189 (6895/20 MHz) - * `datetime` - Date & time + * `6g-193-6915-20` - 193 (6915/20 MHz) - * `url` - URL + * `6g-195-6925-40` - 195 (6925/40 MHz) - * `json` - JSON + * `6g-197-6935-20` - 197 (6935/20 MHz) - * `select` - Selection + * `6g-199-6945-80` - 199 (6945/80 MHz) - * `multiselect` - Multiple selection + * `6g-201-6955-20` - 201 (6955/20 MHz) - * `object` - Object + * `6g-203-6965-40` - 203 (6965/40 MHz) - * `multiobject` - Multiple objects' - related_object_type: - type: string - nullable: true - name: - type: string - minLength: 1 - description: Internal field name - pattern: ^[a-z0-9_]+$ - maxLength: 50 - label: - type: string - description: Name of the field as displayed to users (if not provided, 'the - field's name will be used) - maxLength: 50 - group_name: - type: string - description: Custom fields within the same group will be displayed together - maxLength: 50 - description: - type: string - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - search_weight: - type: integer - maximum: 32767 - minimum: 0 - description: Weighting for search. Lower values are considered more important. - Fields with a search weight of zero will be ignored. - filter_logic: - enum: - - disabled - - loose - - exact - type: string - x-spec-enum-id: a958350ae21c10ee - description: 'Loose matches any instance of a given string; exact matches - the entire field. + * `6g-205-6975-20` - 205 (6975/20 MHz) + * `6g-207-6985-160` - 207 (6985/160 MHz) - * `disabled` - Disabled + * `6g-209-6995-20` - 209 (6995/20 MHz) - * `loose` - Loose + * `6g-211-7005-40` - 211 (7005/40 MHz) - * `exact` - Exact' - ui_visible: - enum: - - always - - if-set - - hidden - type: string - x-spec-enum-id: cd2cf94af56de747 - description: 'Specifies whether the custom field is displayed in the UI + * `6g-213-7015-20` - 213 (7015/20 MHz) + * `6g-215-7025-80` - 215 (7025/80 MHz) - * `always` - Always + * `6g-217-7035-20` - 217 (7035/20 MHz) - * `if-set` - If set + * `6g-219-7045-40` - 219 (7045/40 MHz) - * `hidden` - Hidden' - ui_editable: - enum: - - 'yes' - - 'no' - - hidden - type: string - x-spec-enum-id: 1065673147e26bb5 - description: 'Specifies whether the custom field value can be edited in - the UI + * `6g-221-7055-20` - 221 (7055/20 MHz) + * `6g-225-7075-20` - 225 (7075/20 MHz) - * `yes` - Yes + * `6g-227-7085-40` - 227 (7085/40 MHz) - * `no` - No + * `6g-229-7095-20` - 229 (7095/20 MHz) - * `hidden` - Hidden' - is_cloneable: - type: boolean - description: Replicate this value when cloning objects - default: - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - title: Display weight - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields) - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields) - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. - maxLength: 500 - choice_set: - allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - nullable: true - comments: - type: string - PatchedWritableDataSourceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - type: string - minLength: 1 - maxLength: 50 - source_url: - type: string - minLength: 1 - title: URL - maxLength: 200 - enabled: - type: boolean - description: - type: string - maxLength: 200 - comments: - type: string - parameters: - nullable: true - ignore_rules: - type: string - description: Patterns (one per line) matching files to ignore when syncing - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - default_platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - enum: - - parent - - child - - '' - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. + * `6g-233-7115-20` - 233 (7115/20 MHz) + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) - * `parent` - Parent + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) - * `child` - Child' - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) - * `rear-to-front` - Rear to front + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) - * `left-to-right` - Left to right + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) - * `right-to-left` - Right to left + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) - * `side-to-rear` - Side to rear + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) - * `passive` - Passive + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) - * `g` - Grams + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) - * `lb` - Pounds + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - role: - $ref: '#/components/schemas/DeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - serial: - type: string - title: Serial number - description: Chassis serial number, assigned by the manufacturer - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - position: - type: number - format: double - maximum: 1000 - minimum: 0.5 - exclusiveMaximum: true - nullable: true - title: Position (U) - face: - enum: - - front - - rear - - '' - type: string - description: '* `front` - Front + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) - * `rear` - Rear' - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - status: - enum: - - offline - - active - - planned - - staged - - failed - - inventory - - decommissioning - type: string - description: '* `offline` - Offline + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) - * `active` - Active + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) - * `planned` - Planned + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) - * `staged` - Staged + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) - * `failed` - Failed + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) - * `inventory` - Inventory + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `decommissioning` - Decommissioning' - x-spec-enum-id: 8d8971779f16ee18 - airflow: + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair - '' type: string - description: '* `front-to-rear` - Front to rear + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `rear-to-front` - Rear to front + * `type2-ieee802.3at` - 802.3at (Type 2) - * `left-to-right` - Left to right + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `right-to-left` - Right to left + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `side-to-rear` - Side to rear + * `passive-24v-2pair` - Passive 24V (2-pair) - * `passive` - Passive + * `passive-24v-4pair` - Passive 24V (4-pair) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - oob_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_channel_frequency: + type: number + format: double + maximum: 100000 + minimum: -100000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 + title: Channel frequency (MHz) + description: Populated by selected channel (if set) + rf_channel_width: + type: number + format: double + maximum: 10000 + minimum: -10000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_priority: + title: Channel width (MHz) + description: Populated by selected channel (if set) + tx_power: type: integer - maximum: 255 + maximum: 127 minimum: 0 nullable: true - description: Virtual chassis master election priority - description: - type: string - maxLength: 200 - comments: - type: string - config_template: + title: Transmit power (dBm) + untagged_vlan: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: + tagged_vlans: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableEventRuleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_types: + type: integer + mark_connected: + type: boolean + description: Treat as if a cable is connected + wireless_lans: type: array items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. - enabled: - type: boolean - conditions: - nullable: true - description: A set of conditions which determine whether the event will - be generated. - action_type: - enum: - - webhook - - script - type: string - description: '* `webhook` - Webhook - - * `script` - Script' - x-spec-enum-id: a08300d86473de6e - action_object_type: - type: string - action_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + type: integer + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableFrontPortRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableInterfaceTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -120848,564 +132605,481 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 - other type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C + description: '* `virtual` - Virtual - * `8p4c` - 8P4C + * `bridge` - Bridge - * `8p2c` - 8P2C + * `lag` - Link Aggregation Group (LAG) - * `6p6c` - 6P6C + * `100base-fx` - 100BASE-FX (10/100ME FIBER) - * `6p4c` - 6P4C + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - * `6p2c` - 6P2C + * `100base-tx` - 100BASE-TX (10/100ME) - * `4p4c` - 4P4C + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - * `4p2c` - 4P2C + * `1000base-t` - 1000BASE-T (1GE) - * `gg45` - GG45 + * `1000base-tx` - 1000BASE-TX (1GE) - * `tera-4p` - TERA 4P + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - * `tera-2p` - TERA 2P + * `5gbase-t` - 5GBASE-T (5GE) - * `tera-1p` - TERA 1P + * `10gbase-t` - 10GBASE-T (10GE) - * `110-punch` - 110 Punch + * `10gbase-cx4` - 10GBASE-CX4 (10GE) - * `bnc` - BNC + * `1000base-x-gbic` - GBIC (1GE) - * `f` - F Connector + * `1000base-x-sfp` - SFP (1GE) - * `n` - N Connector + * `10gbase-x-sfpp` - SFP+ (10GE) - * `mrj21` - MRJ21 + * `10gbase-x-xfp` - XFP (10GE) - * `fc` - FC + * `10gbase-x-xenpak` - XENPAK (10GE) - * `lc` - LC + * `10gbase-x-x2` - X2 (10GE) - * `lc-pc` - LC/PC + * `25gbase-x-sfp28` - SFP28 (25GE) - * `lc-upc` - LC/UPC + * `50gbase-x-sfp56` - SFP56 (50GE) - * `lc-apc` - LC/APC + * `40gbase-x-qsfpp` - QSFP+ (40GE) - * `lsh` - LSH + * `50gbase-x-sfp28` - QSFP28 (50GE) - * `lsh-pc` - LSH/PC + * `100gbase-x-cfp` - CFP (100GE) - * `lsh-upc` - LSH/UPC + * `100gbase-x-cfp2` - CFP2 (100GE) - * `lsh-apc` - LSH/APC + * `200gbase-x-cfp2` - CFP2 (200GE) - * `lx5` - LX.5 + * `400gbase-x-cfp2` - CFP2 (400GE) - * `lx5-pc` - LX.5/PC + * `100gbase-x-cfp4` - CFP4 (100GE) - * `lx5-upc` - LX.5/UPC + * `100gbase-x-cxp` - CXP (100GE) - * `lx5-apc` - LX.5/APC + * `100gbase-x-cpak` - Cisco CPAK (100GE) - * `mpo` - MPO + * `100gbase-x-dsfp` - DSFP (100GE) - * `mtrj` - MTRJ + * `100gbase-x-sfpdd` - SFP-DD (100GE) - * `sc` - SC + * `100gbase-x-qsfp28` - QSFP28 (100GE) - * `sc-pc` - SC/PC + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - * `sc-upc` - SC/UPC + * `200gbase-x-qsfp56` - QSFP56 (200GE) - * `sc-apc` - SC/APC + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - * `st` - ST + * `400gbase-x-qsfp112` - QSFP112 (400GE) - * `cs` - CS + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - * `sn` - SN + * `400gbase-x-osfp` - OSFP (400GE) - * `sma-905` - SMA 905 + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - * `sma-906` - SMA 906 + * `400gbase-x-cdfp` - CDFP (400GE) - * `urm-p2` - URM-P2 + * `400gbase-x-cfp8` - CPF8 (400GE) - * `urm-p4` - URM-P4 + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - * `urm-p8` - URM-P8 + * `800gbase-x-osfp` - OSFP (800GE) - * `splice` - Splice + * `1000base-kx` - 1000BASE-KX (1GE) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - type: integer - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: Mapped position on corresponding rear port - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableFrontPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `5gbase-kr` - 5GBASE-KR (5GE) - * `8p6c` - 8P6C + * `10gbase-kr` - 10GBASE-KR (10GE) - * `8p4c` - 8P4C + * `10gbase-kx4` - 10GBASE-KX4 (10GE) - * `8p2c` - 8P2C + * `25gbase-kr` - 25GBASE-KR (25GE) - * `6p6c` - 6P6C + * `40gbase-kr4` - 40GBASE-KR4 (40GE) - * `6p4c` - 6P4C + * `50gbase-kr` - 50GBASE-KR (50GE) - * `6p2c` - 6P2C + * `100gbase-kp4` - 100GBASE-KP4 (100GE) - * `4p4c` - 4P4C + * `100gbase-kr2` - 100GBASE-KR2 (100GE) - * `4p2c` - 4P2C + * `100gbase-kr4` - 100GBASE-KR4 (100GE) - * `gg45` - GG45 + * `ieee802.11a` - IEEE 802.11a - * `tera-4p` - TERA 4P + * `ieee802.11g` - IEEE 802.11b/g - * `tera-2p` - TERA 2P + * `ieee802.11n` - IEEE 802.11n - * `tera-1p` - TERA 1P + * `ieee802.11ac` - IEEE 802.11ac - * `110-punch` - 110 Punch + * `ieee802.11ad` - IEEE 802.11ad - * `bnc` - BNC + * `ieee802.11ax` - IEEE 802.11ax - * `f` - F Connector + * `ieee802.11ay` - IEEE 802.11ay - * `n` - N Connector + * `ieee802.11be` - IEEE 802.11be - * `mrj21` - MRJ21 + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - * `fc` - FC + * `other-wireless` - Other (Wireless) - * `lc` - LC + * `gsm` - GSM - * `lc-pc` - LC/PC + * `cdma` - CDMA - * `lc-upc` - LC/UPC + * `lte` - LTE - * `lc-apc` - LC/APC + * `4g` - 4G - * `lsh` - LSH + * `5g` - 5G - * `lsh-pc` - LSH/PC + * `sonet-oc3` - OC-3/STM-1 - * `lsh-upc` - LSH/UPC + * `sonet-oc12` - OC-12/STM-4 - * `lsh-apc` - LSH/APC + * `sonet-oc48` - OC-48/STM-16 - * `lx5` - LX.5 + * `sonet-oc192` - OC-192/STM-64 - * `lx5-pc` - LX.5/PC + * `sonet-oc768` - OC-768/STM-256 - * `lx5-upc` - LX.5/UPC + * `sonet-oc1920` - OC-1920/STM-640 - * `lx5-apc` - LX.5/APC + * `sonet-oc3840` - OC-3840/STM-1234 - * `mpo` - MPO + * `1gfc-sfp` - SFP (1GFC) - * `mtrj` - MTRJ + * `2gfc-sfp` - SFP (2GFC) - * `sc` - SC + * `4gfc-sfp` - SFP (4GFC) - * `sc-pc` - SC/PC + * `8gfc-sfpp` - SFP+ (8GFC) - * `sc-upc` - SC/UPC + * `16gfc-sfpp` - SFP+ (16GFC) - * `sc-apc` - SC/APC + * `32gfc-sfp28` - SFP28 (32GFC) - * `st` - ST + * `32gfc-sfpp` - SFP+ (32GFC) - * `cs` - CS + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `sn` - SN + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `sma-905` - SMA 905 + * `64gfc-sfpp` - SFP+ (64GFC) - * `sma-906` - SMA 906 + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `urm-p2` - URM-P2 + * `infiniband-sdr` - SDR (2 Gbps) - * `urm-p4` - URM-P4 + * `infiniband-ddr` - DDR (4 Gbps) - * `urm-p8` - URM-P8 + * `infiniband-qdr` - QDR (8 Gbps) - * `splice` - Splice + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - PatchedWritableIKEPolicyRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - version: - enum: - - 1 - - 2 - type: integer - description: '* `1` - IKEv1 + * `infiniband-fdr` - FDR (13.5 Gbps) - * `2` - IKEv2' - x-spec-enum-id: 00872b77916a1fde - minimum: 0 - maximum: 32767 - mode: - enum: - - aggressive - - main - - '' - type: string - description: '* `aggressive` - Aggressive + * `infiniband-edr` - EDR (25 Gbps) - * `main` - Main' - x-spec-enum-id: 64c1be7bdb2548ca - proposals: - type: array - items: - type: integer - preshared_key: - type: string - title: Pre-shared key - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIKEProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - authentication_method: - enum: - - preshared-keys - - certificates - - rsa-signatures - - dsa-signatures - type: string - description: '* `preshared-keys` - Pre-shared keys + * `infiniband-hdr` - HDR (50 Gbps) - * `certificates` - Certificates + * `infiniband-ndr` - NDR (100 Gbps) - * `rsa-signatures` - RSA signatures + * `infiniband-xdr` - XDR (250 Gbps) - * `dsa-signatures` - DSA signatures' - x-spec-enum-id: 92bb2f1103b3a262 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `t1` - T1 (1.544 Mbps) - * `aes-128-gcm` - 128-bit AES (GCM) + * `e1` - E1 (2.048 Mbps) - * `aes-192-cbc` - 192-bit AES (CBC) + * `t3` - T3 (45 Mbps) - * `aes-192-gcm` - 192-bit AES (GCM) + * `e3` - E3 (34 Mbps) - * `aes-256-cbc` - 256-bit AES (CBC) + * `xdsl` - xDSL - * `aes-256-gcm` - 256-bit AES (GCM) + * `docsis` - DOCSIS - * `3des-cbc` - 3DES + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - authentication_algorithm: - enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 - - '' - type: string - description: '* `hmac-sha1` - SHA-1 HMAC + * `epon` - EPON (1 Gbps) - * `hmac-sha256` - SHA-256 HMAC + * `10g-epon` - 10G-EPON (10 Gbps) - * `hmac-sha384` - SHA-384 HMAC + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `hmac-sha512` - SHA-512 HMAC + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 - description: 'Diffie-Hellman group ID + * `xgs-pon` - XGS-PON (10 Gbps) + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `1` - Group 1 + * `25g-pon` - 25G-PON (25 Gbps) - * `2` - Group 2 + * `50g-pon` - 50G-PON (50 Gbps) - * `5` - Group 5 + * `cisco-stackwise` - Cisco StackWise - * `14` - Group 14 + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `15` - Group 15 + * `cisco-flexstack` - Cisco FlexStack - * `16` - Group 16 + * `cisco-flexstack-plus` - Cisco FlexStack Plus - * `17` - Group 17 + * `cisco-stackwise-80` - Cisco StackWise-80 - * `18` - Group 18 + * `cisco-stackwise-160` - Cisco StackWise-160 - * `19` - Group 19 + * `cisco-stackwise-320` - Cisco StackWise-320 - * `20` - Group 20 + * `cisco-stackwise-480` - Cisco StackWise-480 - * `21` - Group 21 + * `cisco-stackwise-1t` - Cisco StackWise-1T - * `22` - Group 22 + * `juniper-vcp` - Juniper VCP - * `23` - Group 23 + * `extreme-summitstack` - Extreme SummitStack - * `24` - Group 24 + * `extreme-summitstack-128` - Extreme SummitStack-128 - * `25` - Group 25 + * `extreme-summitstack-256` - Extreme SummitStack-256 - * `26` - Group 26 + * `extreme-summitstack-512` - Extreme SummitStack-512 - * `27` - Group 27 + * `other` - Other' + x-spec-enum-id: 8d111a81a4af2fa3 + enabled: + type: boolean + mgmt_only: + type: boolean + title: Management only + description: + type: string + maxLength: 200 + bridge: + type: integer + nullable: true + title: Bridge interface + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `28` - Group 28 + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: + enum: + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - '' + type: string + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `29` - Group 29 + * `type2-ieee802.3at` - 802.3at (Type 2) - * `30` - Group 30 + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `31` - Group 31 + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `32` - Group 32 + * `passive-24v-2pair` - Passive 24V (2-pair) - * `33` - Group 33 + * `passive-24v-4pair` - Passive 24V (4-pair) - * `34` - Group 34' - minimum: 0 - maximum: 32767 - sa_lifetime: + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_role: + enum: + - ap + - station + - '' + type: string + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + PatchedWritableJournalEntryRequest: + type: object + description: Adds support for custom fields and tags. + properties: + assigned_object_type: + type: string + assigned_object_id: type: integer - maximum: 2147483647 + maximum: 9223372036854775807 minimum: 0 + format: int64 + created_by: + type: integer nullable: true - description: Security association lifetime (in seconds) + kind: + enum: + - info + - success + - warning + - danger + type: string + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' + x-spec-enum-id: a21af280f632fa34 comments: type: string + minLength: 1 tags: type: array items: @@ -121413,92 +133087,182 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPAddressRequest: + PatchedWritableL2VPNRequest: type: object description: Adds support for custom fields and tags. properties: - address: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: type: string minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: enum: - - active - - reserved - - deprecated - - dhcp - - slaac + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree type: string - x-spec-enum-id: 24935cfee15bd268 - description: 'The operational status of this IP + description: '* `vpws` - VPWS + * `vpls` - VPLS - * `active` - Active + * `vxlan` - VXLAN - * `reserved` - Reserved + * `vxlan-evpn` - VXLAN-EVPN - * `deprecated` - Deprecated + * `mpls-evpn` - MPLS EVPN - * `dhcp` - DHCP + * `pbb-evpn` - PBB EVPN - * `slaac` - SLAAC' - role: + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableLocationRequest: + 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_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + type: integer + nullable: true + status: enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' + - planned + - staging + - active + - decommissioning + - retired type: string - x-spec-enum-id: 10fbcb4930889b0f - description: 'The functional role of this IP + description: '* `planned` - Planned + * `staging` - Staging - * `loopback` - Loopback + * `active` - Active - * `secondary` - Secondary + * `decommissioning` - Decommissioning - * `anycast` - Anycast + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + type: integer + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline - * `vip` - VIP + * `active` - Active - * `vrrp` - VRRP + * `planned` - Planned - * `hsrp` - HSRP + * `staged` - Staged - * `glbp` - GLBP + * `failed` - Failed - * `carp` - CARP' - assigned_object_type: + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: type: string - nullable: true - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - nat_inside: - type: integer - nullable: true - title: NAT (inside) - description: The IP for which this address is the "outside" IP - dns_name: + title: Serial number + maxLength: 50 + asset_tag: type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 description: type: string maxLength: 200 @@ -121511,43 +133275,66 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPRangeRequest: + PatchedWritableModuleTypeRequest: type: object description: Adds support for custom fields and tags. properties: - start_address: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string minLength: 1 - end_address: + maxLength: 100 + part_number: type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + description: Discrete part number (optional) + maxLength: 50 + airflow: enum: - - active - - reserved - - deprecated + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this range + description: '* `front-to-rear` - Front to rear + * `rear-to-front` - Rear to front - * `active` - Active + * `left-to-right` - Left to right - * `reserved` - Reserved + * `right-to-left` - Right to left - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 @@ -121560,223 +133347,436 @@ components: custom_fields: type: object additionalProperties: {} - mark_utilized: - type: boolean - description: Treat as fully utilized - PatchedWritableIPSecPolicyRequest: + PatchedWritablePowerFeedRequest: type: object description: Adds support for custom fields and tags. properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + status: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - proposals: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: type: array items: - type: integer - pfs_group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerOutletRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true - description: 'Diffie-Hellman group for Perfect Forward Secrecy + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + x-spec-enum-id: 83934a5ad90d6138 + description: 'Physical port type - * `1` - Group 1 + * `iec-60320-c5` - C5 - * `2` - Group 2 + * `iec-60320-c7` - C7 - * `5` - Group 5 + * `iec-60320-c13` - C13 - * `14` - Group 14 + * `iec-60320-c15` - C15 - * `15` - Group 15 + * `iec-60320-c19` - C19 - * `16` - Group 16 + * `iec-60320-c21` - C21 - * `17` - Group 17 + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `18` - Group 18 + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `19` - Group 19 + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `20` - Group 20 + * `iec-60309-2p-e-4h` - 2P+E 4H - * `21` - Group 21 + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K - * `22` - Group 22 + * `ita-l` - ITA Type L (CEI 23-50) - * `23` - Group 23 + * `ita-m` - ITA Type M (BS 546) - * `24` - Group 24 + * `ita-n` - ITA Type N - * `25` - Group 25 + * `ita-o` - ITA Type O - * `26` - Group 26 + * `ita-multistandard` - ITA Multistandard - * `27` - Group 27 + * `usb-a` - USB Type A - * `28` - Group 28 + * `usb-micro-b` - USB Micro B - * `29` - Group 29 + * `usb-c` - USB Type C - * `30` - Group 30 + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `31` - Group 31 + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `32` - Group 32 + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `33` - Group 33 + * `dc-terminal` - DC Terminal - * `34` - Group 34' - minimum: 0 - maximum: 32767 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProfileRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - mode: - enum: - - esp - - ah - type: string - description: '* `esp` - ESP + * `hdot-cx` - HDOT Cx - * `ah` - AH' - x-spec-enum-id: 1136c2cdfee84436 - ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' - ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - - '' - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `saf-d-grid` - Saf-D-Grid - * `aes-128-gcm` - 128-bit AES (GCM) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `aes-192-cbc` - 192-bit AES (CBC) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `aes-192-gcm` - 192-bit AES (GCM) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `aes-256-cbc` - 256-bit AES (CBC) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `aes-256-gcm` - 256-bit AES (GCM) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `3des-cbc` - 3DES + * `hardwired` - Hardwired - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - title: Encryption - authentication_algorithm: + * `other` - Other' + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortRequest' + nullable: true + feed_leg: enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 + - A + - B + - C - '' type: string - description: '* `hmac-sha1` - SHA-1 HMAC + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `hmac-sha256` - SHA-256 HMAC - * `hmac-sha384` - SHA-384 HMAC + * `A` - A - * `hmac-sha512` - SHA-512 HMAC + * `B` - B - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - sa_lifetime_seconds: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (seconds) - description: Security association lifetime (seconds) - sa_lifetime_data: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (KB) - description: Security association lifetime (in kilobytes) - comments: + * `C` - C' + description: type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -121784,23 +133784,26 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceRequest: + PatchedWritablePowerOutletTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - vdcs: - type: array - items: - type: integer - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -121808,1140 +133811,1295 @@ components: maxLength: 64 type: enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `virtual` - Virtual - - * `bridge` - Bridge - - * `lag` - Link Aggregation Group (LAG) - - * `100base-fx` - 100BASE-FX (10/100ME FIBER) - - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - - * `100base-tx` - 100BASE-TX (10/100ME) - - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - - * `1000base-t` - 1000BASE-T (1GE) - - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - - * `5gbase-t` - 5GBASE-T (5GE) - - * `10gbase-t` - 10GBASE-T (10GE) - - * `10gbase-cx4` - 10GBASE-CX4 (10GE) - - * `1000base-x-gbic` - GBIC (1GE) - - * `1000base-x-sfp` - SFP (1GE) - - * `10gbase-x-sfpp` - SFP+ (10GE) - - * `10gbase-x-xfp` - XFP (10GE) - - * `10gbase-x-xenpak` - XENPAK (10GE) - - * `10gbase-x-x2` - X2 (10GE) - - * `25gbase-x-sfp28` - SFP28 (25GE) - - * `50gbase-x-sfp56` - SFP56 (50GE) - - * `40gbase-x-qsfpp` - QSFP+ (40GE) - - * `50gbase-x-sfp28` - QSFP28 (50GE) - - * `100gbase-x-cfp` - CFP (100GE) - - * `100gbase-x-cfp2` - CFP2 (100GE) - - * `200gbase-x-cfp2` - CFP2 (200GE) - - * `400gbase-x-cfp2` - CFP2 (400GE) - - * `100gbase-x-cfp4` - CFP4 (100GE) - - * `100gbase-x-cxp` - CXP (100GE) - - * `100gbase-x-cpak` - Cisco CPAK (100GE) + description: '* `iec-60320-c5` - C5 - * `100gbase-x-dsfp` - DSFP (100GE) + * `iec-60320-c7` - C7 - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `iec-60320-c13` - C13 - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `iec-60320-c15` - C15 - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `iec-60320-c19` - C19 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `iec-60320-c21` - C21 - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `400gbase-x-osfp` - OSFP (400GE) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `400gbase-x-cdfp` - CDFP (400GE) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `400gbase-x-cfp8` - CPF8 (400GE) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `800gbase-x-osfp` - OSFP (800GE) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `1000base-kx` - 1000BASE-KX (1GE) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `5gbase-kr` - 5GBASE-KR (5GE) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `10gbase-kr` - 10GBASE-KR (10GE) + * `iec-60906-1` - IEC 60906-1 - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `25gbase-kr` - 25GBASE-KR (25GE) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `nema-1-15r` - NEMA 1-15R - * `50gbase-kr` - 50GBASE-KR (50GE) + * `nema-5-15r` - NEMA 5-15R - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `nema-5-20r` - NEMA 5-20R - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `nema-5-30r` - NEMA 5-30R - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `nema-5-50r` - NEMA 5-50R - * `ieee802.11a` - IEEE 802.11a + * `nema-6-15r` - NEMA 6-15R - * `ieee802.11g` - IEEE 802.11b/g + * `nema-6-20r` - NEMA 6-20R - * `ieee802.11n` - IEEE 802.11n + * `nema-6-30r` - NEMA 6-30R - * `ieee802.11ac` - IEEE 802.11ac + * `nema-6-50r` - NEMA 6-50R - * `ieee802.11ad` - IEEE 802.11ad + * `nema-10-30r` - NEMA 10-30R - * `ieee802.11ax` - IEEE 802.11ax + * `nema-10-50r` - NEMA 10-50R - * `ieee802.11ay` - IEEE 802.11ay + * `nema-14-20r` - NEMA 14-20R - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `nema-14-30r` - NEMA 14-30R - * `other-wireless` - Other (Wireless) + * `nema-14-50r` - NEMA 14-50R - * `gsm` - GSM + * `nema-14-60r` - NEMA 14-60R - * `cdma` - CDMA + * `nema-15-15r` - NEMA 15-15R - * `lte` - LTE + * `nema-15-20r` - NEMA 15-20R - * `4g` - 4G + * `nema-15-30r` - NEMA 15-30R - * `5g` - 5G + * `nema-15-50r` - NEMA 15-50R - * `sonet-oc3` - OC-3/STM-1 + * `nema-15-60r` - NEMA 15-60R - * `sonet-oc12` - OC-12/STM-4 + * `nema-l1-15r` - NEMA L1-15R - * `sonet-oc48` - OC-48/STM-16 + * `nema-l5-15r` - NEMA L5-15R - * `sonet-oc192` - OC-192/STM-64 + * `nema-l5-20r` - NEMA L5-20R - * `sonet-oc768` - OC-768/STM-256 + * `nema-l5-30r` - NEMA L5-30R - * `sonet-oc1920` - OC-1920/STM-640 + * `nema-l5-50r` - NEMA L5-50R - * `sonet-oc3840` - OC-3840/STM-1234 + * `nema-l6-15r` - NEMA L6-15R - * `1gfc-sfp` - SFP (1GFC) + * `nema-l6-20r` - NEMA L6-20R - * `2gfc-sfp` - SFP (2GFC) + * `nema-l6-30r` - NEMA L6-30R - * `4gfc-sfp` - SFP (4GFC) + * `nema-l6-50r` - NEMA L6-50R - * `8gfc-sfpp` - SFP+ (8GFC) + * `nema-l10-30r` - NEMA L10-30R - * `16gfc-sfpp` - SFP+ (16GFC) + * `nema-l14-20r` - NEMA L14-20R - * `32gfc-sfp28` - SFP28 (32GFC) + * `nema-l14-30r` - NEMA L14-30R - * `32gfc-sfpp` - SFP+ (32GFC) + * `nema-l14-50r` - NEMA L14-50R - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `nema-l14-60r` - NEMA L14-60R - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `nema-l15-20r` - NEMA L15-20R - * `64gfc-sfpp` - SFP+ (64GFC) + * `nema-l15-30r` - NEMA L15-30R - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `nema-l15-50r` - NEMA L15-50R - * `infiniband-sdr` - SDR (2 Gbps) + * `nema-l15-60r` - NEMA L15-60R - * `infiniband-ddr` - DDR (4 Gbps) + * `nema-l21-20r` - NEMA L21-20R - * `infiniband-qdr` - QDR (8 Gbps) + * `nema-l21-30r` - NEMA L21-30R - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `nema-l22-20r` - NEMA L22-20R - * `infiniband-fdr` - FDR (13.5 Gbps) + * `nema-l22-30r` - NEMA L22-30R - * `infiniband-edr` - EDR (25 Gbps) + * `CS6360C` - CS6360C - * `infiniband-hdr` - HDR (50 Gbps) + * `CS6364C` - CS6364C - * `infiniband-ndr` - NDR (100 Gbps) + * `CS8164C` - CS8164C - * `infiniband-xdr` - XDR (250 Gbps) + * `CS8264C` - CS8264C - * `t1` - T1 (1.544 Mbps) + * `CS8364C` - CS8364C - * `e1` - E1 (2.048 Mbps) + * `CS8464C` - CS8464C - * `t3` - T3 (45 Mbps) + * `ita-e` - ITA Type E (CEE 7/5) - * `e3` - E3 (34 Mbps) + * `ita-f` - ITA Type F (CEE 7/3) - * `xdsl` - xDSL + * `ita-g` - ITA Type G (BS 1363) - * `docsis` - DOCSIS + * `ita-h` - ITA Type H - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `ita-i` - ITA Type I - * `epon` - EPON (1 Gbps) + * `ita-j` - ITA Type J - * `10g-epon` - 10G-EPON (10 Gbps) + * `ita-k` - ITA Type K - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `ita-l` - ITA Type L (CEI 23-50) - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `ita-m` - ITA Type M (BS 546) - * `xgs-pon` - XGS-PON (10 Gbps) + * `ita-n` - ITA Type N - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `ita-o` - ITA Type O - * `25g-pon` - 25G-PON (25 Gbps) + * `ita-multistandard` - ITA Multistandard - * `50g-pon` - 50G-PON (50 Gbps) + * `usb-a` - USB Type A - * `cisco-stackwise` - Cisco StackWise + * `usb-micro-b` - USB Micro B - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `usb-c` - USB Type C - * `cisco-flexstack` - Cisco FlexStack + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `cisco-stackwise-160` - Cisco StackWise-160 + * `dc-terminal` - DC Terminal - * `cisco-stackwise-320` - Cisco StackWise-320 + * `hdot-cx` - HDOT Cx - * `cisco-stackwise-480` - Cisco StackWise-480 + * `saf-d-grid` - Saf-D-Grid - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `juniper-vcp` - Juniper VCP + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `extreme-summitstack` - Extreme SummitStack + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - lag: - type: integer - nullable: true - title: Parent LAG - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - speed: - type: integer - maximum: 2147483647 - minimum: 0 + x-spec-enum-id: 83934a5ad90d6138 + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true - title: Speed (Kbps) - duplex: + feed_leg: enum: - - half - - full - - auto + - A + - B + - C - '' type: string - description: '* `half` - Half + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `full` - Full - * `auto` - Auto' - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true - wwn: - type: string - nullable: true - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management + * `A` - A + + * `B` - B + + * `C` - C' description: type: string maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' + PatchedWritablePowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - rf_role: - enum: - - ap - - station - - '' + minLength: 1 + maxLength: 64 + label: type: string - description: '* `ap` - Access point - - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - rf_channel: + description: Physical label + maxLength: 64 + type: enum: - - 2.4g-1-2412-22 - - 2.4g-2-2417-22 - - 2.4g-3-2422-22 - - 2.4g-4-2427-22 - - 2.4g-5-2432-22 - - 2.4g-6-2437-22 - - 2.4g-7-2442-22 - - 2.4g-8-2447-22 - - 2.4g-9-2452-22 - - 2.4g-10-2457-22 - - 2.4g-11-2462-22 - - 2.4g-12-2467-22 - - 2.4g-13-2472-22 - - 5g-32-5160-20 - - 5g-34-5170-40 - - 5g-36-5180-20 - - 5g-38-5190-40 - - 5g-40-5200-20 - - 5g-42-5210-80 - - 5g-44-5220-20 - - 5g-46-5230-40 - - 5g-48-5240-20 - - 5g-50-5250-160 - - 5g-52-5260-20 - - 5g-54-5270-40 - - 5g-56-5280-20 - - 5g-58-5290-80 - - 5g-60-5300-20 - - 5g-62-5310-40 - - 5g-64-5320-20 - - 5g-100-5500-20 - - 5g-102-5510-40 - - 5g-104-5520-20 - - 5g-106-5530-80 - - 5g-108-5540-20 - - 5g-110-5550-40 - - 5g-112-5560-20 - - 5g-114-5570-160 - - 5g-116-5580-20 - - 5g-118-5590-40 - - 5g-120-5600-20 - - 5g-122-5610-80 - - 5g-124-5620-20 - - 5g-126-5630-40 - - 5g-128-5640-20 - - 5g-132-5660-20 - - 5g-134-5670-40 - - 5g-136-5680-20 - - 5g-138-5690-80 - - 5g-140-5700-20 - - 5g-142-5710-40 - - 5g-144-5720-20 - - 5g-149-5745-20 - - 5g-151-5755-40 - - 5g-153-5765-20 - - 5g-155-5775-80 - - 5g-157-5785-20 - - 5g-159-5795-40 - - 5g-161-5805-20 - - 5g-163-5815-160 - - 5g-165-5825-20 - - 5g-167-5835-40 - - 5g-169-5845-20 - - 5g-171-5855-80 - - 5g-173-5865-20 - - 5g-175-5875-40 - - 5g-177-5885-20 - - 6g-1-5955-20 - - 6g-3-5965-40 - - 6g-5-5975-20 - - 6g-7-5985-80 - - 6g-9-5995-20 - - 6g-11-6005-40 - - 6g-13-6015-20 - - 6g-15-6025-160 - - 6g-17-6035-20 - - 6g-19-6045-40 - - 6g-21-6055-20 - - 6g-23-6065-80 - - 6g-25-6075-20 - - 6g-27-6085-40 - - 6g-29-6095-20 - - 6g-31-6105-320 - - 6g-33-6115-20 - - 6g-35-6125-40 - - 6g-37-6135-20 - - 6g-39-6145-80 - - 6g-41-6155-20 - - 6g-43-6165-40 - - 6g-45-6175-20 - - 6g-47-6185-160 - - 6g-49-6195-20 - - 6g-51-6205-40 - - 6g-53-6215-20 - - 6g-55-6225-80 - - 6g-57-6235-20 - - 6g-59-6245-40 - - 6g-61-6255-20 - - 6g-65-6275-20 - - 6g-67-6285-40 - - 6g-69-6295-20 - - 6g-71-6305-80 - - 6g-73-6315-20 - - 6g-75-6325-40 - - 6g-77-6335-20 - - 6g-79-6345-160 - - 6g-81-6355-20 - - 6g-83-6365-40 - - 6g-85-6375-20 - - 6g-87-6385-80 - - 6g-89-6395-20 - - 6g-91-6405-40 - - 6g-93-6415-20 - - 6g-95-6425-320 - - 6g-97-6435-20 - - 6g-99-6445-40 - - 6g-101-6455-20 - - 6g-103-6465-80 - - 6g-105-6475-20 - - 6g-107-6485-40 - - 6g-109-6495-20 - - 6g-111-6505-160 - - 6g-113-6515-20 - - 6g-115-6525-40 - - 6g-117-6535-20 - - 6g-119-6545-80 - - 6g-121-6555-20 - - 6g-123-6565-40 - - 6g-125-6575-20 - - 6g-129-6595-20 - - 6g-131-6605-40 - - 6g-133-6615-20 - - 6g-135-6625-80 - - 6g-137-6635-20 - - 6g-139-6645-40 - - 6g-141-6655-20 - - 6g-143-6665-160 - - 6g-145-6675-20 - - 6g-147-6685-40 - - 6g-149-6695-20 - - 6g-151-6705-80 - - 6g-153-6715-20 - - 6g-155-6725-40 - - 6g-157-6735-20 - - 6g-159-6745-320 - - 6g-161-6755-20 - - 6g-163-6765-40 - - 6g-165-6775-20 - - 6g-167-6785-80 - - 6g-169-6795-20 - - 6g-171-6805-40 - - 6g-173-6815-20 - - 6g-175-6825-160 - - 6g-177-6835-20 - - 6g-179-6845-40 - - 6g-181-6855-20 - - 6g-183-6865-80 - - 6g-185-6875-20 - - 6g-187-6885-40 - - 6g-189-6895-20 - - 6g-193-6915-20 - - 6g-195-6925-40 - - 6g-197-6935-20 - - 6g-199-6945-80 - - 6g-201-6955-20 - - 6g-203-6965-40 - - 6g-205-6975-20 - - 6g-207-6985-160 - - 6g-209-6995-20 - - 6g-211-7005-40 - - 6g-213-7015-20 - - 6g-215-7025-80 - - 6g-217-7035-20 - - 6g-219-7045-40 - - 6g-221-7055-20 - - 6g-225-7075-20 - - 6g-227-7085-40 - - 6g-229-7095-20 - - 6g-233-7115-20 - - 60g-1-58320-2160 - - 60g-2-60480-2160 - - 60g-3-62640-2160 - - 60g-4-64800-2160 - - 60g-5-66960-2160 - - 60g-6-69120-2160 - - 60g-9-59400-4320 - - 60g-10-61560-4320 - - 60g-11-63720-4320 - - 60g-12-65880-4320 - - 60g-13-68040-4320 - - 60g-17-60480-6480 - - 60g-18-62640-6480 - - 60g-19-64800-6480 - - 60g-20-66960-6480 - - 60g-25-61560-6480 - - 60g-26-63720-6480 - - 60g-27-65880-6480 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other - '' type: string - description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + x-spec-enum-id: f1bd4aedff3a591b + description: 'Physical port type - * `2.4g-2-2417-22` - 2 (2417 MHz) - * `2.4g-3-2422-22` - 3 (2422 MHz) + * `iec-60320-c6` - C6 - * `2.4g-4-2427-22` - 4 (2427 MHz) + * `iec-60320-c8` - C8 - * `2.4g-5-2432-22` - 5 (2432 MHz) + * `iec-60320-c14` - C14 - * `2.4g-6-2437-22` - 6 (2437 MHz) + * `iec-60320-c16` - C16 - * `2.4g-7-2442-22` - 7 (2442 MHz) + * `iec-60320-c20` - C20 - * `2.4g-8-2447-22` - 8 (2447 MHz) + * `iec-60320-c22` - C22 - * `2.4g-9-2452-22` - 9 (2452 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `2.4g-10-2457-22` - 10 (2457 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `2.4g-11-2462-22` - 11 (2462 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `2.4g-12-2467-22` - 12 (2467 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `2.4g-13-2472-22` - 13 (2472 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `5g-32-5160-20` - 32 (5160/20 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `5g-34-5170-40` - 34 (5170/40 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `5g-36-5180-20` - 36 (5180/20 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `5g-38-5190-40` - 38 (5190/40 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `5g-40-5200-20` - 40 (5200/20 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `5g-42-5210-80` - 42 (5210/80 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `5g-44-5220-20` - 44 (5220/20 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `5g-46-5230-40` - 46 (5230/40 MHz) + * `iec-60906-1` - IEC 60906-1 - * `5g-48-5240-20` - 48 (5240/20 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `5g-50-5250-160` - 50 (5250/160 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `5g-52-5260-20` - 52 (5260/20 MHz) + * `nema-1-15p` - NEMA 1-15P - * `5g-54-5270-40` - 54 (5270/40 MHz) + * `nema-5-15p` - NEMA 5-15P - * `5g-56-5280-20` - 56 (5280/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `5g-58-5290-80` - 58 (5290/80 MHz) + * `nema-5-30p` - NEMA 5-30P - * `5g-60-5300-20` - 60 (5300/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `5g-62-5310-40` - 62 (5310/40 MHz) + * `nema-6-15p` - NEMA 6-15P - * `5g-64-5320-20` - 64 (5320/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `5g-100-5500-20` - 100 (5500/20 MHz) + * `nema-6-30p` - NEMA 6-30P - * `5g-102-5510-40` - 102 (5510/40 MHz) + * `nema-6-50p` - NEMA 6-50P - * `5g-104-5520-20` - 104 (5520/20 MHz) + * `nema-10-30p` - NEMA 10-30P - * `5g-106-5530-80` - 106 (5530/80 MHz) + * `nema-10-50p` - NEMA 10-50P - * `5g-108-5540-20` - 108 (5540/20 MHz) + * `nema-14-20p` - NEMA 14-20P - * `5g-110-5550-40` - 110 (5550/40 MHz) + * `nema-14-30p` - NEMA 14-30P - * `5g-112-5560-20` - 112 (5560/20 MHz) + * `nema-14-50p` - NEMA 14-50P - * `5g-114-5570-160` - 114 (5570/160 MHz) + * `nema-14-60p` - NEMA 14-60P - * `5g-116-5580-20` - 116 (5580/20 MHz) + * `nema-15-15p` - NEMA 15-15P - * `5g-118-5590-40` - 118 (5590/40 MHz) + * `nema-15-20p` - NEMA 15-20P - * `5g-120-5600-20` - 120 (5600/20 MHz) + * `nema-15-30p` - NEMA 15-30P - * `5g-122-5610-80` - 122 (5610/80 MHz) + * `nema-15-50p` - NEMA 15-50P - * `5g-124-5620-20` - 124 (5620/20 MHz) + * `nema-15-60p` - NEMA 15-60P - * `5g-126-5630-40` - 126 (5630/40 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `5g-128-5640-20` - 128 (5640/20 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `5g-132-5660-20` - 132 (5660/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `5g-134-5670-40` - 134 (5670/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `5g-136-5680-20` - 136 (5680/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `5g-138-5690-80` - 138 (5690/80 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `5g-140-5700-20` - 140 (5700/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `5g-142-5710-40` - 142 (5710/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `5g-144-5720-20` - 144 (5720/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `5g-149-5745-20` - 149 (5745/20 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `5g-151-5755-40` - 151 (5755/40 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `5g-153-5765-20` - 153 (5765/20 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `5g-155-5775-80` - 155 (5775/80 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `5g-157-5785-20` - 157 (5785/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `5g-159-5795-40` - 159 (5795/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `5g-161-5805-20` - 161 (5805/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `5g-163-5815-160` - 163 (5815/160 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `5g-165-5825-20` - 165 (5825/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `5g-167-5835-40` - 167 (5835/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `5g-169-5845-20` - 169 (5845/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `5g-171-5855-80` - 171 (5855/80 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `5g-173-5865-20` - 173 (5865/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `5g-175-5875-40` - 175 (5875/40 MHz) + * `cs6361c` - CS6361C - * `5g-177-5885-20` - 177 (5885/20 MHz) + * `cs6365c` - CS6365C - * `6g-1-5955-20` - 1 (5955/20 MHz) + * `cs8165c` - CS8165C - * `6g-3-5965-40` - 3 (5965/40 MHz) + * `cs8265c` - CS8265C - * `6g-5-5975-20` - 5 (5975/20 MHz) + * `cs8365c` - CS8365C - * `6g-7-5985-80` - 7 (5985/80 MHz) + * `cs8465c` - CS8465C - * `6g-9-5995-20` - 9 (5995/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-11-6005-40` - 11 (6005/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-13-6015-20` - 13 (6015/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-15-6025-160` - 15 (6025/160 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `6g-17-6035-20` - 17 (6035/20 MHz) + * `ita-g` - ITA Type G (BS 1363) - * `6g-19-6045-40` - 19 (6045/40 MHz) + * `ita-h` - ITA Type H - * `6g-21-6055-20` - 21 (6055/20 MHz) + * `ita-i` - ITA Type I - * `6g-23-6065-80` - 23 (6065/80 MHz) + * `ita-j` - ITA Type J - * `6g-25-6075-20` - 25 (6075/20 MHz) + * `ita-k` - ITA Type K - * `6g-27-6085-40` - 27 (6085/40 MHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `6g-29-6095-20` - 29 (6095/20 MHz) + * `ita-m` - ITA Type M (BS 546) - * `6g-31-6105-320` - 31 (6105/320 MHz) + * `ita-n` - ITA Type N - * `6g-33-6115-20` - 33 (6115/20 MHz) + * `ita-o` - ITA Type O - * `6g-35-6125-40` - 35 (6125/40 MHz) + * `usb-a` - USB Type A - * `6g-37-6135-20` - 37 (6135/20 MHz) + * `usb-b` - USB Type B - * `6g-39-6145-80` - 39 (6145/80 MHz) + * `usb-c` - USB Type C - * `6g-41-6155-20` - 41 (6155/20 MHz) + * `usb-mini-a` - USB Mini A - * `6g-43-6165-40` - 43 (6165/40 MHz) + * `usb-mini-b` - USB Mini B - * `6g-45-6175-20` - 45 (6175/20 MHz) + * `usb-micro-a` - USB Micro A - * `6g-47-6185-160` - 47 (6185/160 MHz) + * `usb-micro-b` - USB Micro B - * `6g-49-6195-20` - 49 (6195/20 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-51-6205-40` - 51 (6205/40 MHz) + * `usb-3-b` - USB 3.0 Type B - * `6g-53-6215-20` - 53 (6215/20 MHz) + * `usb-3-micro-b` - USB 3.0 Micro B - * `6g-55-6225-80` - 55 (6225/80 MHz) + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `6g-57-6235-20` - 57 (6235/20 MHz) + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `6g-59-6245-40` - 59 (6245/40 MHz) + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `6g-61-6255-20` - 61 (6255/20 MHz) + * `dc-terminal` - DC Terminal - * `6g-65-6275-20` - 65 (6275/20 MHz) + * `saf-d-grid` - Saf-D-Grid - * `6g-67-6285-40` - 67 (6285/40 MHz) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `6g-69-6295-20` - 69 (6295/20 MHz) + * `neutrik-powercon-32` - Neutrik powerCON (32A) - * `6g-71-6305-80` - 71 (6305/80 MHz) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `6g-73-6315-20` - 73 (6315/20 MHz) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `6g-75-6325-40` - 75 (6325/40 MHz) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `6g-77-6335-20` - 77 (6335/20 MHz) + * `hardwired` - Hardwired - * `6g-79-6345-160` - 79 (6345/160 MHz) + * `other` - Other' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-81-6355-20` - 81 (6355/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c6` - C6 - * `6g-83-6365-40` - 83 (6365/40 MHz) + * `iec-60320-c8` - C8 - * `6g-85-6375-20` - 85 (6375/20 MHz) + * `iec-60320-c14` - C14 - * `6g-87-6385-80` - 87 (6385/80 MHz) + * `iec-60320-c16` - C16 - * `6g-89-6395-20` - 89 (6395/20 MHz) + * `iec-60320-c20` - C20 - * `6g-91-6405-40` - 91 (6405/40 MHz) + * `iec-60320-c22` - C22 - * `6g-93-6415-20` - 93 (6415/20 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `6g-95-6425-320` - 95 (6425/320 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `6g-97-6435-20` - 97 (6435/20 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `6g-99-6445-40` - 99 (6445/40 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `6g-101-6455-20` - 101 (6455/20 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `6g-103-6465-80` - 103 (6465/80 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `6g-105-6475-20` - 105 (6475/20 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `6g-107-6485-40` - 107 (6485/40 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `6g-109-6495-20` - 109 (6495/20 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `6g-111-6505-160` - 111 (6505/160 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `6g-113-6515-20` - 113 (6515/20 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `6g-115-6525-40` - 115 (6525/40 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `6g-117-6535-20` - 117 (6535/20 MHz) + * `iec-60906-1` - IEC 60906-1 - * `6g-119-6545-80` - 119 (6545/80 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `6g-121-6555-20` - 121 (6555/20 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `6g-123-6565-40` - 123 (6565/40 MHz) + * `nema-1-15p` - NEMA 1-15P - * `6g-125-6575-20` - 125 (6575/20 MHz) + * `nema-5-15p` - NEMA 5-15P - * `6g-129-6595-20` - 129 (6595/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `6g-131-6605-40` - 131 (6605/40 MHz) + * `nema-5-30p` - NEMA 5-30P - * `6g-133-6615-20` - 133 (6615/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `6g-135-6625-80` - 135 (6625/80 MHz) + * `nema-6-15p` - NEMA 6-15P - * `6g-137-6635-20` - 137 (6635/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `6g-139-6645-40` - 139 (6645/40 MHz) + * `nema-6-30p` - NEMA 6-30P - * `6g-141-6655-20` - 141 (6655/20 MHz) + * `nema-6-50p` - NEMA 6-50P - * `6g-143-6665-160` - 143 (6665/160 MHz) + * `nema-10-30p` - NEMA 10-30P - * `6g-145-6675-20` - 145 (6675/20 MHz) + * `nema-10-50p` - NEMA 10-50P - * `6g-147-6685-40` - 147 (6685/40 MHz) + * `nema-14-20p` - NEMA 14-20P - * `6g-149-6695-20` - 149 (6695/20 MHz) + * `nema-14-30p` - NEMA 14-30P - * `6g-151-6705-80` - 151 (6705/80 MHz) + * `nema-14-50p` - NEMA 14-50P - * `6g-153-6715-20` - 153 (6715/20 MHz) + * `nema-14-60p` - NEMA 14-60P - * `6g-155-6725-40` - 155 (6725/40 MHz) + * `nema-15-15p` - NEMA 15-15P - * `6g-157-6735-20` - 157 (6735/20 MHz) + * `nema-15-20p` - NEMA 15-20P - * `6g-159-6745-320` - 159 (6745/320 MHz) + * `nema-15-30p` - NEMA 15-30P - * `6g-161-6755-20` - 161 (6755/20 MHz) + * `nema-15-50p` - NEMA 15-50P - * `6g-163-6765-40` - 163 (6765/40 MHz) + * `nema-15-60p` - NEMA 15-60P - * `6g-165-6775-20` - 165 (6775/20 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `6g-167-6785-80` - 167 (6785/80 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `6g-169-6795-20` - 169 (6795/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `6g-171-6805-40` - 171 (6805/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `6g-173-6815-20` - 173 (6815/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `6g-175-6825-160` - 175 (6825/160 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `6g-177-6835-20` - 177 (6835/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `6g-179-6845-40` - 179 (6845/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `6g-181-6855-20` - 181 (6855/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `6g-183-6865-80` - 183 (6865/80 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `6g-185-6875-20` - 185 (6875/20 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `6g-187-6885-40` - 187 (6885/40 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `6g-189-6895-20` - 189 (6895/20 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `6g-193-6915-20` - 193 (6915/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `6g-195-6925-40` - 195 (6925/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `6g-197-6935-20` - 197 (6935/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `6g-199-6945-80` - 199 (6945/80 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `6g-201-6955-20` - 201 (6955/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `6g-203-6965-40` - 203 (6965/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `6g-205-6975-20` - 205 (6975/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `6g-207-6985-160` - 207 (6985/160 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `6g-209-6995-20` - 209 (6995/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `6g-211-7005-40` - 211 (7005/40 MHz) + * `cs6361c` - CS6361C - * `6g-213-7015-20` - 213 (7015/20 MHz) + * `cs6365c` - CS6365C - * `6g-215-7025-80` - 215 (7025/80 MHz) + * `cs8165c` - CS8165C - * `6g-217-7035-20` - 217 (7035/20 MHz) + * `cs8265c` - CS8265C - * `6g-219-7045-40` - 219 (7045/40 MHz) + * `cs8365c` - CS8365C - * `6g-221-7055-20` - 221 (7055/20 MHz) + * `cs8465c` - CS8465C - * `6g-225-7075-20` - 225 (7075/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-227-7085-40` - 227 (7085/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-229-7095-20` - 229 (7095/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-233-7115-20` - 233 (7115/20 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + * `ita-g` - ITA Type G (BS 1363) - * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + * `ita-h` - ITA Type H - * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + * `ita-i` - ITA Type I - * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + * `ita-j` - ITA Type J - * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + * `ita-k` - ITA Type K - * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + * `ita-m` - ITA Type M (BS 546) - * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + * `ita-n` - ITA Type N - * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + * `ita-o` - ITA Type O - * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + * `usb-a` - USB Type A - * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + * `usb-b` - USB Type B - * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + * `usb-c` - USB Type C - * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + * `usb-mini-a` - USB Mini A - * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + * `usb-mini-b` - USB Mini B - * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + * `usb-micro-a` - USB Micro A - * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + * `usb-micro-b` - USB Micro B - * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + * `usb-micro-ab` - USB Micro AB - * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - poe_mode: + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + PatchedWritablePrefixRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + status: enum: - - pd - - pse - - '' + - container + - active + - reserved + - deprecated type: string - description: '* `pd` - PD + x-spec-enum-id: d38bee5f512701d9 + description: 'Operational status of this prefix - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + is_pool: + type: boolean + title: Is a pool + description: All IP addresses within this prefix are considered usable + mark_utilized: + type: boolean + description: Treat as fully utilized + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical - '' type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `2-post-frame` - 2-post frame - * `type2-ieee802.3at` - 802.3at (Type 2) + * `4-post-frame` - 4-post frame - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `4-post-cabinet` - 4-post cabinet - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `wall-frame` - Wall-mounted frame - * `passive-24v-2pair` - Passive 24V (2-pair) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `passive-24v-4pair` - Passive 24V (4-pair) + * `wall-cabinet` - Wall-mounted cabinet - * `passive-48v-2pair` - Passive 48V (2-pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_channel_frequency: + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: type: number format: double - maximum: 100000 - minimum: -100000 + maximum: 1000000 + minimum: -1000000 exclusiveMaximum: true exclusiveMinimum: true nullable: true - title: Channel frequency (MHz) - description: Populated by selected channel (if set) - rf_channel_width: - type: number - format: double - maximum: 10000 - minimum: -10000 - exclusiveMaximum: true - exclusiveMinimum: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 nullable: true - title: Channel width (MHz) - description: Populated by selected channel (if set) - tx_power: + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - maximum: 127 + maximum: 32767 minimum: 0 nullable: true - title: Transmit power (dBm) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true - tagged_vlans: - type: array - items: - type: integer - mark_connected: - type: boolean - description: Treat as if a cable is connected - wireless_lans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + description: + type: string + maxLength: 200 + comments: + type: string tags: type: array items: @@ -122949,502 +135107,977 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceTemplateRequest: + PatchedWritableRackTypeRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other + maxLength: 100 + slug: type: string - description: '* `virtual` - Virtual + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame - * `bridge` - Bridge + * `4-post-frame` - 4-post frame - * `lag` - Link Aggregation Group (LAG) + * `4-post-cabinet` - 4-post cabinet - * `100base-fx` - 100BASE-FX (10/100ME FIBER) + * `wall-frame` - Wall-mounted frame - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `100base-tx` - 100BASE-TX (10/100ME) + * `wall-cabinet` - Wall-mounted cabinet - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `1000base-t` - 1000BASE-T (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + * `10` - 10 inches - * `5gbase-t` - 5GBASE-T (5GE) + * `19` - 19 inches - * `10gbase-t` - 10GBASE-T (10GE) + * `21` - 21 inches - * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters - * `1000base-x-gbic` - GBIC (1GE) + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms - * `1000base-x-sfp` - SFP (1GE) + * `g` - Grams - * `10gbase-x-sfpp` - SFP+ (10GE) + * `lb` - Pounds - * `10gbase-x-xfp` - XFP (10GE) + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `10gbase-x-xenpak` - XENPAK (10GE) + * `8p6c` - 8P6C - * `10gbase-x-x2` - X2 (10GE) + * `8p4c` - 8P4C - * `25gbase-x-sfp28` - SFP28 (25GE) + * `8p2c` - 8P2C - * `50gbase-x-sfp56` - SFP56 (50GE) + * `6p6c` - 6P6C - * `40gbase-x-qsfpp` - QSFP+ (40GE) + * `6p4c` - 6P4C - * `50gbase-x-sfp28` - QSFP28 (50GE) + * `6p2c` - 6P2C - * `100gbase-x-cfp` - CFP (100GE) + * `4p4c` - 4P4C - * `100gbase-x-cfp2` - CFP2 (100GE) + * `4p2c` - 4P2C - * `200gbase-x-cfp2` - CFP2 (200GE) + * `gg45` - GG45 - * `400gbase-x-cfp2` - CFP2 (400GE) + * `tera-4p` - TERA 4P - * `100gbase-x-cfp4` - CFP4 (100GE) + * `tera-2p` - TERA 2P - * `100gbase-x-cxp` - CXP (100GE) + * `tera-1p` - TERA 1P - * `100gbase-x-cpak` - Cisco CPAK (100GE) + * `110-punch` - 110 Punch - * `100gbase-x-dsfp` - DSFP (100GE) + * `bnc` - BNC - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `f` - F Connector - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `n` - N Connector - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `mrj21` - MRJ21 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `fc` - FC - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `lc` - LC - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `lc-pc` - LC/PC - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `lc-upc` - LC/UPC - * `400gbase-x-osfp` - OSFP (400GE) + * `lc-apc` - LC/APC - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `lsh` - LSH - * `400gbase-x-cdfp` - CDFP (400GE) + * `lsh-pc` - LSH/PC - * `400gbase-x-cfp8` - CPF8 (400GE) + * `lsh-upc` - LSH/UPC - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `lsh-apc` - LSH/APC - * `800gbase-x-osfp` - OSFP (800GE) + * `lx5` - LX.5 - * `1000base-kx` - 1000BASE-KX (1GE) + * `lx5-pc` - LX.5/PC - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `lx5-upc` - LX.5/UPC - * `5gbase-kr` - 5GBASE-KR (5GE) + * `lx5-apc` - LX.5/APC - * `10gbase-kr` - 10GBASE-KR (10GE) + * `mpo` - MPO - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `mtrj` - MTRJ - * `25gbase-kr` - 25GBASE-KR (25GE) + * `sc` - SC - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `sc-pc` - SC/PC - * `50gbase-kr` - 50GBASE-KR (50GE) + * `sc-upc` - SC/UPC - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `sc-apc` - SC/APC - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `st` - ST - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `cs` - CS - * `ieee802.11a` - IEEE 802.11a + * `sn` - SN - * `ieee802.11g` - IEEE 802.11b/g + * `sma-905` - SMA 905 - * `ieee802.11n` - IEEE 802.11n + * `sma-906` - SMA 906 - * `ieee802.11ac` - IEEE 802.11ac + * `urm-p2` - URM-P2 - * `ieee802.11ad` - IEEE 802.11ad + * `urm-p4` - URM-P4 - * `ieee802.11ax` - IEEE 802.11ax + * `urm-p8` - URM-P8 - * `ieee802.11ay` - IEEE 802.11ay + * `splice` - Splice - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `usb-a` - USB Type A - * `other-wireless` - Other (Wireless) + * `usb-b` - USB Type B - * `gsm` - GSM + * `usb-c` - USB Type C - * `cdma` - CDMA + * `usb-mini-a` - USB Mini A - * `lte` - LTE + * `usb-mini-b` - USB Mini B - * `4g` - 4G + * `usb-micro-a` - USB Micro A - * `5g` - 5G + * `usb-micro-b` - USB Micro B - * `sonet-oc3` - OC-3/STM-1 + * `usb-micro-ab` - USB Micro AB - * `sonet-oc12` - OC-12/STM-4 + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `sonet-oc48` - OC-48/STM-16 + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `sonet-oc192` - OC-192/STM-64 + * `8p6c` - 8P6C - * `sonet-oc768` - OC-768/STM-256 + * `8p4c` - 8P4C - * `sonet-oc1920` - OC-1920/STM-640 + * `8p2c` - 8P2C - * `sonet-oc3840` - OC-3840/STM-1234 + * `6p6c` - 6P6C - * `1gfc-sfp` - SFP (1GFC) + * `6p4c` - 6P4C - * `2gfc-sfp` - SFP (2GFC) + * `6p2c` - 6P2C - * `4gfc-sfp` - SFP (4GFC) + * `4p4c` - 4P4C - * `8gfc-sfpp` - SFP+ (8GFC) + * `4p2c` - 4P2C - * `16gfc-sfpp` - SFP+ (16GFC) + * `gg45` - GG45 - * `32gfc-sfp28` - SFP28 (32GFC) + * `tera-4p` - TERA 4P - * `32gfc-sfpp` - SFP+ (32GFC) + * `tera-2p` - TERA 2P - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `tera-1p` - TERA 1P - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `110-punch` - 110 Punch - * `64gfc-sfpp` - SFP+ (64GFC) + * `bnc` - BNC - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `f` - F Connector - * `infiniband-sdr` - SDR (2 Gbps) + * `n` - N Connector - * `infiniband-ddr` - DDR (4 Gbps) + * `mrj21` - MRJ21 - * `infiniband-qdr` - QDR (8 Gbps) + * `fc` - FC - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `lc` - LC - * `infiniband-fdr` - FDR (13.5 Gbps) + * `lc-pc` - LC/PC - * `infiniband-edr` - EDR (25 Gbps) + * `lc-upc` - LC/UPC - * `infiniband-hdr` - HDR (50 Gbps) + * `lc-apc` - LC/APC - * `infiniband-ndr` - NDR (100 Gbps) + * `lsh` - LSH - * `infiniband-xdr` - XDR (250 Gbps) + * `lsh-pc` - LSH/PC - * `t1` - T1 (1.544 Mbps) + * `lsh-upc` - LSH/UPC - * `e1` - E1 (2.048 Mbps) + * `lsh-apc` - LSH/APC - * `t3` - T3 (45 Mbps) + * `lx5` - LX.5 - * `e3` - E3 (34 Mbps) + * `lx5-pc` - LX.5/PC - * `xdsl` - xDSL + * `lx5-upc` - LX.5/UPC - * `docsis` - DOCSIS + * `lx5-apc` - LX.5/APC - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `mpo` - MPO - * `epon` - EPON (1 Gbps) + * `mtrj` - MTRJ - * `10g-epon` - 10G-EPON (10 Gbps) + * `sc` - SC - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `sc-pc` - SC/PC - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `sc-upc` - SC/UPC - * `xgs-pon` - XGS-PON (10 Gbps) + * `sc-apc` - SC/APC - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `st` - ST - * `25g-pon` - 25G-PON (25 Gbps) + * `cs` - CS - * `50g-pon` - 50G-PON (50 Gbps) + * `sn` - SN - * `cisco-stackwise` - Cisco StackWise + * `sma-905` - SMA 905 - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `sma-906` - SMA 906 - * `cisco-flexstack` - Cisco FlexStack + * `urm-p2` - URM-P2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `urm-p4` - URM-P4 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `urm-p8` - URM-P8 - * `cisco-stackwise-160` - Cisco StackWise-160 + * `splice` - Splice - * `cisco-stackwise-320` - Cisco StackWise-320 + * `usb-a` - USB Type A - * `cisco-stackwise-480` - Cisco StackWise-480 + * `usb-b` - USB Type B - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `usb-c` - USB Type C - * `juniper-vcp` - Juniper VCP + * `usb-mini-a` - USB Mini A - * `extreme-summitstack` - Extreme SummitStack + * `usb-mini-b` - USB Mini B - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `usb-micro-a` - USB Micro A - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `usb-micro-b` - USB Micro B - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `usb-micro-ab` - USB Micro AB * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - mgmt_only: - type: boolean - title: Management only + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 - bridge: + PatchedWritableRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: type: integer nullable: true - title: Bridge interface - poe_mode: + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + virtual_machine: + allOf: + - $ref: '#/components/schemas/BriefVirtualMachineRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - pd - - pse - - '' + - tcp + - udp + - sctp type: string - description: '* `pd` - PD + description: '* `tcp` - TCP - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + * `udp` - UDP + + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + ipaddresses: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceTemplateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair - - '' + - tcp + - udp + - sctp type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `tcp` - TCP - * `type2-ieee802.3at` - 802.3at (Type 2) + * `udp` - UDP - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `staging` - Staging - * `passive-24v-2pair` - Passive 24V (2-pair) + * `active` - Active - * `passive-24v-4pair` - Passive 24V (4-pair) + * `decommissioning` - Decommissioning - * `passive-48v-2pair` - Passive 48V (2-pair) + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 + description: + type: string + maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_role: + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: enum: - - ap - - station - - '' + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre type: string - description: '* `ap` - Access point + description: '* `ipsec-transport` - IPsec - Transport - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - PatchedWritableJournalEntryRequest: + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelTerminationRequest: type: object description: Adds support for custom fields and tags. properties: - assigned_object_type: + tunnel: + $ref: '#/components/schemas/BriefTunnelRequest' + role: + enum: + - peer + - hub + - spoke type: string - assigned_object_id: + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + termination_type: + type: string + termination_id: type: integer maximum: 9223372036854775807 minimum: 0 format: int64 - created_by: + nullable: true + outside_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true + vid: type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - kind: + status: enum: - - info - - success - - warning - - danger + - active + - reserved + - deprecated type: string - description: '* `info` - Info + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this VLAN - * `success` - Success - * `warning` - Warning + * `active` - Active - * `danger` - Danger' - x-spec-enum-id: a21af280f632fa34 + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + description: + type: string + maxLength: 200 comments: type: string - minLength: 1 tags: type: array items: @@ -123452,81 +136085,92 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableL2VPNRequest: + PatchedWritableVMInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 64 + enabled: + type: boolean + parent: + type: integer + nullable: true + title: Parent interface + bridge: + type: integer + nullable: true + title: Bridge interface + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string + nullable: true minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: - enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree + description: type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS - - * `vxlan` - VXLAN - - * `vxlan-evpn` - VXLAN-EVPN - - * `mpls-evpn` - MPLS EVPN - - * `pbb-evpn` - PBB EVPN - - * `epl` - EPL - - * `evpl` - EVPL + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - '' + type: string + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy - * `ep-lan` - Ethernet Private LAN - * `evp-lan` - Ethernet Virtual Private LAN + * `access` - Access - * `ep-tree` - Ethernet Private Tree + * `tagged` - Tagged - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - import_targets: + * `tagged-all` - Tagged (All)' + untagged_vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tagged_vlans: type: array items: type: integer - export_targets: + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tags: type: array items: - type: integer + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + domain: + type: string + maxLength: 30 + master: + type: integer + nullable: true description: type: string maxLength: 200 comments: type: string - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true tags: type: array items: @@ -123534,53 +136178,50 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableLocationRequest: + PatchedWritableVirtualDeviceContextRequest: type: object - description: Extends PrimaryModelSerializer to include MPTT support. + 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_]+$ - site: - $ref: '#/components/schemas/SiteRequest' - parent: + maxLength: 64 + device: + $ref: '#/components/schemas/BriefDeviceRequest' + identifier: type: integer + maximum: 32767 + minimum: 0 + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: - - planned - - staging - active - - decommissioning - - retired + - planned + - offline type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `active` - Active - * `decommissioning` - Decommissioning + * `planned` - Planned - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 + * `offline` - Offline' + x-spec-enum-id: ee1ef02def7a91ab description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -123588,16 +136229,14 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleRequest: + PatchedWritableVirtualMachineWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module_bay: - type: integer - module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + name: + type: string + minLength: 1 + maxLength: 64 status: enum: - offline @@ -123619,20 +136258,74 @@ components: * `decommissioning` - Decommissioning' x-spec-enum-id: 2217e87d0c3efdda + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true serial: type: string title: Serial number maxLength: 50 - asset_tag: - type: string + role: + allOf: + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true - description: A unique tag used to identify this device - maxLength: 50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + vcpus: + type: number + format: double + maximum: 10000 + minimum: 0.01 + exclusiveMaximum: true + nullable: true + memory: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Memory (MB) + disk: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Disk (MB) description: type: string maxLength: 200 comments: type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -123640,49 +136333,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleTypeRequest: + PatchedWritableWirelessLANGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - model: + name: type: string minLength: 1 maxLength: 100 - part_number: + slug: type: string - description: Discrete part number (optional) - maxLength: 50 - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -123690,85 +136359,79 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerFeedRequest: + PatchedWritableWirelessLANRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - name: + ssid: type: string minLength: 1 - maxLength: 100 + maxLength: 32 + description: + type: string + maxLength: 200 + group: + allOf: + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + nullable: true status: enum: - - offline - active - - planned - - failed + - reserved + - disabled + - deprecated type: string - description: '* `offline` - Offline + description: '* `active` - Active - * `active` - Active + * `reserved` - Reserved - * `planned` - Planned + * `disabled` - Disabled - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: + * `deprecated` - Deprecated' + x-spec-enum-id: 412ebdca597f609e + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: enum: - - primary - - redundant + - open + - wep + - wpa-personal + - wpa-enterprise + - '' type: string - description: '* `primary` - Primary + description: '* `open` - Open - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `wep` - WEP - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: enum: - - single-phase - - three-phase + - auto + - tkip + - aes + - '' type: string - description: '* `single-phase` - Single phase + description: '* `auto` - Auto - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - description: + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + title: Pre-shared key + maxLength: 64 comments: type: string tags: @@ -123778,345 +136441,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletRequest: + PatchedWritableWirelessLinkRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: type: string - description: Physical label - maxLength: 64 - type: + maxLength: 32 + status: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + - connected + - planned + - decommissioning type: string - x-spec-enum-id: 2ff919f516566857 - description: 'Physical port type - - - * `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid + description: '* `connected` - Connected - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `planned` - Planned - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `wep` - WEP - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `wpa-personal` - WPA Personal (PSK) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto - * `hardwired` - Hardwired + * `tkip` - TKIP - * `other` - Other' - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - feed_leg: + distance_unit: enum: - - A - - B - - C + - km + - m + - mi + - ft - '' type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) - + description: '* `km` - Kilometers - * `A` - A + * `m` - Meters - * `B` - B + * `mi` - Miles - * `C` - C' + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected + comments: + type: string tags: type: array items: @@ -124124,725 +136539,941 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletTemplateRequest: + Platform: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true - module_type: + config_template: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true - name: + description: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + format: date-time + readOnly: true + nullable: true + last_updated: type: string - description: '* `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid - - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - created + - device_count + - display + - display_url + - id + - last_updated + - name + - slug + - url + - virtualmachine_count + PlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + PowerFeed: + 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 + power_panel: + $ref: '#/components/schemas/BriefPowerPanel' + rack: + allOf: + - $ref: '#/components/schemas/BriefRack' + nullable: true + name: + type: string + maxLength: 100 + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `active` - Active - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `planned` - Planned - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + label: + type: string + enum: + - Offline + - Active + - Planned + - Failed + type: + type: object + properties: + value: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + label: + type: string + enum: + - Primary + - Redundant + supply: + type: object + properties: + value: + enum: + - ac + - dc + type: string + description: '* `ac` - AC - * `hardwired` - Hardwired + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + label: + type: string + enum: + - AC + - DC + phase: + type: object + properties: + value: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - power_port: + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + label: + type: string + enum: + - Single phase + - Three-phase + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefCable' + readOnly: true nullable: true - feed_leg: + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + 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 + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - name + - power_panel + - url + PowerFeedRequest: + type: object + description: Adds support for custom fields and tags. + properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + status: enum: - - A - - B - - C - - '' + - offline + - active + - planned + - failed type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) + description: '* `offline` - Offline + * `active` - Active - * `A` - A + * `planned` - Planned - * `B` - B + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `C` - C' + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - PatchedWritablePowerPortRequest: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - power_panel + PowerOutlet: type: object description: Adds support for custom fields and tags. properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string - minLength: 1 maxLength: 64 label: type: string description: Physical label maxLength: 64 type: - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - x-spec-enum-id: 6d680dea031864ae - description: 'Physical port type - - - * `iec-60320-c6` - C6 - - * `iec-60320-c8` - C8 - - * `iec-60320-c14` - C14 - - * `iec-60320-c16` - C16 - - * `iec-60320-c20` - C20 + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `iec-60320-c22` - C22 + * `iec-60320-c7` - C7 - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `iec-60320-c13` - C13 - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `iec-60320-c15` - C15 - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `iec-60320-c19` - C19 - * `iec-60309-2p-e-4h` - 2P+E 4H + * `iec-60320-c21` - C21 - * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `iec-60309-2p-e-9h` - 2P+E 9H + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `iec-60309-3p-e-4h` - 3P+E 4H + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `iec-60309-3p-e-6h` - 3P+E 6H + * `iec-60309-2p-e-4h` - 2P+E 4H - * `iec-60309-3p-e-9h` - 3P+E 9H + * `iec-60309-2p-e-6h` - 2P+E 6H - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `iec-60309-3p-e-4h` - 3P+E 4H - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `iec-60309-3p-e-6h` - 3P+E 6H - * `iec-60906-1` - IEC 60906-1 + * `iec-60309-3p-e-9h` - 3P+E 9H - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `nema-1-15p` - NEMA 1-15P + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `nema-5-15p` - NEMA 5-15P + * `iec-60906-1` - IEC 60906-1 - * `nema-5-20p` - NEMA 5-20P + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `nema-5-30p` - NEMA 5-30P + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-5-50p` - NEMA 5-50P + * `nema-1-15r` - NEMA 1-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-50p` - NEMA 6-50P + * `nema-5-50r` - NEMA 5-50R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-20r` - NEMA 6-20R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-30p` - NEMA 14-30P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-60p` - NEMA 14-60P + * `nema-10-50r` - NEMA 10-50R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-50p` - NEMA 15-50P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-15r` - NEMA 15-15R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-20r` - NEMA 15-20R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-30p` - NEMA L5-30P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l15-50r` - NEMA L15-50R - * `cs6361c` - CS6361C + * `nema-l15-60r` - NEMA L15-60R - * `cs6365c` - CS6365C + * `nema-l21-20r` - NEMA L21-20R - * `cs8165c` - CS8165C + * `nema-l21-30r` - NEMA L21-30R - * `cs8265c` - CS8265C + * `nema-l22-20r` - NEMA L22-20R - * `cs8365c` - CS8365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8465c` - CS8465C + * `CS6360C` - CS6360C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS6364C` - CS6364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8164C` - CS8164C - * `ita-f` - ITA Type F (CEE 7/4) + * `CS8264C` - CS8264C - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `CS8364C` - CS8364C - * `ita-g` - ITA Type G (BS 1363) + * `CS8464C` - CS8464C - * `ita-h` - ITA Type H + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-i` - ITA Type I + * `ita-f` - ITA Type F (CEE 7/3) - * `ita-j` - ITA Type J + * `ita-g` - ITA Type G (BS 1363) - * `ita-k` - ITA Type K + * `ita-h` - ITA Type H - * `ita-l` - ITA Type L (CEI 23-50) + * `ita-i` - ITA Type I - * `ita-m` - ITA Type M (BS 546) + * `ita-j` - ITA Type J - * `ita-n` - ITA Type N + * `ita-k` - ITA Type K - * `ita-o` - ITA Type O + * `ita-l` - ITA Type L (CEI 23-50) - * `usb-a` - USB Type A + * `ita-m` - ITA Type M (BS 546) - * `usb-b` - USB Type B + * `ita-n` - ITA Type N - * `usb-c` - USB Type C + * `ita-o` - ITA Type O - * `usb-mini-a` - USB Mini A + * `ita-multistandard` - ITA Multistandard - * `usb-mini-b` - USB Mini B + * `usb-a` - USB Type A - * `usb-micro-a` - USB Micro A + * `usb-micro-b` - USB Micro B - * `usb-micro-b` - USB Micro B + * `usb-c` - USB Type C - * `usb-micro-ab` - USB Micro AB + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `usb-3-b` - USB 3.0 Type B + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `dc-terminal` - DC Terminal - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `hdot-cx` - HDOT Cx - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `saf-d-grid` - Saf-D-Grid - * `dc-terminal` - DC Terminal + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `saf-d-grid` - Saf-D-Grid + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `hardwired` - Hardwired - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPort' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A - * `hardwired` - Hardwired + * `B` - B - * `other` - Other' - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 mark_connected: type: boolean description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true tags: type: array items: - $ref: '#/components/schemas/NestedTagRequest' + $ref: '#/components/schemas/NestedTag' custom_fields: type: object additionalProperties: {} - PatchedWritablePowerPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - device + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - name + - url + PowerOutletRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string @@ -124850,12 +137481,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -124871,57 +137502,56 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -124931,23 +137561,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -124955,17 +137580,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -124997,107 +137622,105 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-20p` - NEMA 5-20P + * `nema-5-15r` - NEMA 5-15R - * `nema-5-30p` - NEMA 5-30P + * `nema-5-20r` - NEMA 5-20R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-20p` - NEMA 6-20P + * `nema-6-15r` - NEMA 6-15R - * `nema-6-30p` - NEMA 6-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-50r` - NEMA 6-50R - * `nema-10-50p` - NEMA 10-50P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-14-20r` - NEMA 14-20R - * `nema-14-50p` - NEMA 14-50P + * `nema-14-30r` - NEMA 14-30R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-20p` - NEMA 15-20P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-30p` - NEMA 15-30P + * `nema-15-20r` - NEMA 15-20R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-30r` - NEMA 15-30R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-50r` - NEMA 15-50R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-15p` - NEMA L5-15P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-20p` - NEMA L5-20P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l21-20r` - NEMA L21-20R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-30r` - NEMA L21-30R - * `cs6361c` - CS6361C + * `nema-l22-20r` - NEMA L22-20R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -125117,25 +137740,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -125145,11 +137756,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -125160,79 +137773,32 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - PatchedWritablePrefixRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + x-spec-enum-id: 83934a5ad90d6138 nullable: true - vlan: + power_port: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true - status: + feed_leg: enum: - - container - - active - - reserved - - deprecated + - A + - B + - C + - '' type: string - x-spec-enum-id: d38bee5f512701d9 - description: 'Operational status of this prefix - - - * `container` - Container - - * `active` - Active + description: '* `A` - A - * `reserved` - Reserved + * `B` - B - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - mark_utilized: - type: boolean - description: Treat as fully utilized description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -125240,375 +137806,490 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableRackRequest: + required: + - device + - name + PowerOutletTemplate: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - name: + id: + type: integer + readOnly: true + url: type: string - minLength: 1 - maxLength: 100 - facility_id: + format: uri + readOnly: true + display: type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: + readOnly: true + device_type: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true - tenant: + module_type: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefModuleType' nullable: true - status: - enum: - - reserved - - available - - planned - - active - - deprecated + name: type: string - description: '* `reserved` - Reserved + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `available` - Available + * `iec-60320-c7` - C7 - * `planned` - Planned + * `iec-60320-c13` - C13 - * `active` - Active + * `iec-60320-c15` - C15 - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - role: - allOf: - - $ref: '#/components/schemas/RackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame + * `iec-60320-c19` - C19 - * `4-post-frame` - 4-post frame + * `iec-60320-c21` - C21 - * `4-post-cabinet` - 4-post cabinet + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `wall-frame` - Wall-mounted frame + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `wall-frame-vertical` - Wall-mounted frame (vertical) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `wall-cabinet` - Wall-mounted cabinet + * `iec-60309-2p-e-4h` - 2P+E 4H - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width + * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `10` - 10 inches + * `iec-60309-3p-e-4h` - 3P+E 4H - * `19` - 19 inches + * `iec-60309-3p-e-6h` - 3P+E 6H - * `21` - 21 inches + * `iec-60309-3p-e-9h` - 3P+E 9H - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `g` - Grams + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lb` - Pounds + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters + * `iec-60906-1` - IEC 60906-1 - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `8p6c` - 8P6C + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `8p4c` - 8P4C + * `nema-1-15r` - NEMA 1-15R - * `8p2c` - 8P2C + * `nema-5-15r` - NEMA 5-15R - * `6p6c` - 6P6C + * `nema-5-20r` - NEMA 5-20R - * `6p4c` - 6P4C + * `nema-5-30r` - NEMA 5-30R - * `6p2c` - 6P2C + * `nema-5-50r` - NEMA 5-50R - * `4p4c` - 4P4C + * `nema-6-15r` - NEMA 6-15R - * `4p2c` - 4P2C + * `nema-6-20r` - NEMA 6-20R - * `gg45` - GG45 + * `nema-6-30r` - NEMA 6-30R - * `tera-4p` - TERA 4P + * `nema-6-50r` - NEMA 6-50R - * `tera-2p` - TERA 2P + * `nema-10-30r` - NEMA 10-30R - * `tera-1p` - TERA 1P + * `nema-10-50r` - NEMA 10-50R - * `110-punch` - 110 Punch + * `nema-14-20r` - NEMA 14-20R - * `bnc` - BNC + * `nema-14-30r` - NEMA 14-30R - * `f` - F Connector + * `nema-14-50r` - NEMA 14-50R - * `n` - N Connector + * `nema-14-60r` - NEMA 14-60R - * `mrj21` - MRJ21 + * `nema-15-15r` - NEMA 15-15R - * `fc` - FC + * `nema-15-20r` - NEMA 15-20R - * `lc` - LC + * `nema-15-30r` - NEMA 15-30R - * `lc-pc` - LC/PC + * `nema-15-50r` - NEMA 15-50R - * `lc-upc` - LC/UPC + * `nema-15-60r` - NEMA 15-60R - * `lc-apc` - LC/APC + * `nema-l1-15r` - NEMA L1-15R - * `lsh` - LSH + * `nema-l5-15r` - NEMA L5-15R - * `lsh-pc` - LSH/PC + * `nema-l5-20r` - NEMA L5-20R - * `lsh-upc` - LSH/UPC + * `nema-l5-30r` - NEMA L5-30R - * `lsh-apc` - LSH/APC + * `nema-l5-50r` - NEMA L5-50R - * `lx5` - LX.5 + * `nema-l6-15r` - NEMA L6-15R - * `lx5-pc` - LX.5/PC + * `nema-l6-20r` - NEMA L6-20R - * `lx5-upc` - LX.5/UPC + * `nema-l6-30r` - NEMA L6-30R - * `lx5-apc` - LX.5/APC + * `nema-l6-50r` - NEMA L6-50R - * `mpo` - MPO + * `nema-l10-30r` - NEMA L10-30R - * `mtrj` - MTRJ + * `nema-l14-20r` - NEMA L14-20R - * `sc` - SC + * `nema-l14-30r` - NEMA L14-30R - * `sc-pc` - SC/PC + * `nema-l14-50r` - NEMA L14-50R - * `sc-upc` - SC/UPC + * `nema-l14-60r` - NEMA L14-60R - * `sc-apc` - SC/APC + * `nema-l15-20r` - NEMA L15-20R - * `st` - ST + * `nema-l15-30r` - NEMA L15-30R - * `cs` - CS + * `nema-l15-50r` - NEMA L15-50R - * `sn` - SN + * `nema-l15-60r` - NEMA L15-60R - * `sma-905` - SMA 905 + * `nema-l21-20r` - NEMA L21-20R - * `sma-906` - SMA 906 + * `nema-l21-30r` - NEMA L21-30R - * `urm-p2` - URM-P2 + * `nema-l22-20r` - NEMA L22-20R - * `urm-p4` - URM-P4 + * `nema-l22-30r` - NEMA L22-30R - * `urm-p8` - URM-P8 + * `CS6360C` - CS6360C - * `splice` - Splice + * `CS6364C` - CS6364C - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplate' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C + nullable: true description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - last_updated + - name + - url + PowerOutletTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -125617,11 +138298,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -125635,1065 +138316,324 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C + description: '* `iec-60320-c5` - C5 - * `4p2c` - 4P2C + * `iec-60320-c7` - C7 - * `gg45` - GG45 + * `iec-60320-c13` - C13 - * `tera-4p` - TERA 4P + * `iec-60320-c15` - C15 - * `tera-2p` - TERA 2P + * `iec-60320-c19` - C19 - * `tera-1p` - TERA 1P + * `iec-60320-c21` - C21 - * `110-punch` - 110 Punch + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `bnc` - BNC + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `f` - F Connector + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `n` - N Connector + * `iec-60309-2p-e-4h` - 2P+E 4H - * `mrj21` - MRJ21 + * `iec-60309-2p-e-6h` - 2P+E 6H - * `fc` - FC + * `iec-60309-2p-e-9h` - 2P+E 9H - * `lc` - LC + * `iec-60309-3p-e-4h` - 3P+E 4H - * `lc-pc` - LC/PC + * `iec-60309-3p-e-6h` - 3P+E 6H - * `lc-upc` - LC/UPC + * `iec-60309-3p-e-9h` - 3P+E 9H - * `lc-apc` - LC/APC + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `lsh` - LSH + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lsh-pc` - LSH/PC + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `lsh-upc` - LSH/UPC + * `iec-60906-1` - IEC 60906-1 - * `lsh-apc` - LSH/APC + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `lx5` - LX.5 + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `lx5-pc` - LX.5/PC + * `nema-1-15r` - NEMA 1-15R - * `lx5-upc` - LX.5/UPC + * `nema-5-15r` - NEMA 5-15R - * `lx5-apc` - LX.5/APC + * `nema-5-20r` - NEMA 5-20R - * `mpo` - MPO + * `nema-5-30r` - NEMA 5-30R - * `mtrj` - MTRJ + * `nema-5-50r` - NEMA 5-50R - * `sc` - SC + * `nema-6-15r` - NEMA 6-15R - * `sc-pc` - SC/PC + * `nema-6-20r` - NEMA 6-20R - * `sc-upc` - SC/UPC + * `nema-6-30r` - NEMA 6-30R - * `sc-apc` - SC/APC + * `nema-6-50r` - NEMA 6-50R - * `st` - ST + * `nema-10-30r` - NEMA 10-30R - * `cs` - CS + * `nema-10-50r` - NEMA 10-50R - * `sn` - SN + * `nema-14-20r` - NEMA 14-20R - * `sma-905` - SMA 905 + * `nema-14-30r` - NEMA 14-30R - * `sma-906` - SMA 906 + * `nema-14-50r` - NEMA 14-50R - * `urm-p2` - URM-P2 + * `nema-14-60r` - NEMA 14-60R - * `urm-p4` - URM-P4 + * `nema-15-15r` - NEMA 15-15R - * `urm-p8` - URM-P8 + * `nema-15-20r` - NEMA 15-20R - * `splice` - Splice + * `nema-15-30r` - NEMA 15-30R - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - PatchedWritableRegionRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-15-50r` - NEMA 15-50R - * `udp` - UDP + * `nema-15-60r` - NEMA 15-60R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - ipaddresses: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceTemplateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-l1-15r` - NEMA L1-15R - * `udp` - UDP + * `nema-l5-15r` - NEMA L5-15R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the site - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned + * `nema-l5-20r` - NEMA L5-20R - * `staging` - Staging + * `nema-l5-30r` - NEMA L5-30R - * `active` - Active + * `nema-l5-50r` - NEMA L5-50R - * `decommissioning` - Decommissioning + * `nema-l6-15r` - NEMA L6-15R - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - region: - allOf: - - $ref: '#/components/schemas/RegionRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/SiteGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTenantGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - status: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned + * `nema-l6-20r` - NEMA L6-20R - * `active` - Active + * `nema-l6-30r` - NEMA L6-30R - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - group: - allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' - nullable: true - encapsulation: - enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre - type: string - description: '* `ipsec-transport` - IPsec - Transport + * `nema-l6-50r` - NEMA L6-50R - * `ipsec-tunnel` - IPsec - Tunnel + * `nema-l10-30r` - NEMA L10-30R - * `ip-ip` - IP-in-IP + * `nema-l14-20r` - NEMA L14-20R - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - ipsec_profile: - allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - tunnel: - $ref: '#/components/schemas/TunnelRequest' - role: - enum: - - peer - - hub - - spoke - type: string - description: '* `peer` - Peer + * `nema-l14-30r` - NEMA L14-30R - * `hub` - Hub + * `nema-l14-50r` - NEMA L14-50R - * `spoke` - Spoke' - x-spec-enum-id: 52225cd60b867572 - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - outside_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroupRequest' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this VLAN + * `nema-l14-60r` - NEMA L14-60R + * `nema-l15-20r` - NEMA L15-20R - * `active` - Active + * `nema-l15-30r` - NEMA L15-30R - * `reserved` - Reserved + * `nema-l15-50r` - NEMA L15-50R - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVMInterfaceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - minLength: 1 - description: - type: string - maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' - type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy + * `nema-l15-60r` - NEMA L15-60R + * `nema-l21-20r` - NEMA L21-20R - * `access` - Access + * `nema-l21-30r` - NEMA L21-30R - * `tagged` - Tagged + * `nema-l22-20r` - NEMA L22-20R - * `tagged-all` - Tagged (All)' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualChassisRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: integer - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualDeviceContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - device: - $ref: '#/components/schemas/DeviceRequest' - identifier: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - status: - enum: - - active - - planned - - offline - type: string - description: '* `active` - Active + * `nema-l22-30r` - NEMA L22-30R - * `planned` - Planned + * `CS6360C` - CS6360C - * `offline` - Offline' - x-spec-enum-id: ee1ef02def7a91ab - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualMachineWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - status: - enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline + * `CS6364C` - CS6364C - * `active` - Active + * `CS8164C` - CS8164C - * `planned` - Planned + * `CS8264C` - CS8264C - * `staged` - Staged + * `CS8364C` - CS8364C - * `failed` - Failed + * `CS8464C` - CS8464C - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - role: - allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - vcpus: - type: number - format: double - maximum: 10000 - minimum: 0.01 - exclusiveMaximum: true - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - description: - type: string - maxLength: 200 - comments: - type: string - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: - nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - ssid: - type: string - minLength: 1 - maxLength: 32 - description: - type: string - maxLength: 200 - group: - allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' - nullable: true - status: - enum: - - active - - reserved - - disabled - - deprecated - type: string - description: '* `active` - Active + * `ita-e` - ITA Type E (CEE 7/5) - * `reserved` - Reserved + * `ita-f` - ITA Type F (CEE 7/3) - * `disabled` - Disabled + * `ita-g` - ITA Type G (BS 1363) - * `deprecated` - Deprecated' - x-spec-enum-id: 412ebdca597f609e - vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-h` - ITA Type H - * `wep` - WEP + * `ita-i` - ITA Type I - * `wpa-personal` - WPA Personal (PSK) + * `ita-j` - ITA Type J - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `ita-k` - ITA Type K - * `tkip` - TKIP + * `ita-l` - ITA Type L (CEI 23-50) - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `ita-m` - ITA Type M (BS 546) - * `planned` - Planned + * `ita-n` - ITA Type N - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-o` - ITA Type O - * `wep` - WEP + * `ita-multistandard` - ITA Multistandard - * `wpa-personal` - WPA Personal (PSK) + * `usb-a` - USB Type A - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `usb-micro-b` - USB Micro B - * `tkip` - TKIP + * `usb-c` - USB Type C - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - Platform: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - device_count - - display - - id - - name - - slug - - url - - virtualmachine_count - PlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' + nullable: true + feed_leg: + enum: + - A + - B + - C + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + nullable: true description: type: string maxLength: 200 required: - name - - slug - PowerFeed: + PowerPanel: type: object description: Adds support for custom fields and tags. properties: @@ -126704,143 +138644,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - power_panel: - $ref: '#/components/schemas/PowerPanel' - rack: + site: + $ref: '#/components/schemas/BriefSite' + location: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefLocation' nullable: true name: type: string maxLength: 100 - status: - type: object - properties: - value: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - label: - type: string - enum: - - Offline - - Active - - Planned - - Failed - type: - type: object - properties: - value: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - label: - type: string - enum: - - Primary - - Redundant - supply: - type: object - properties: - value: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - label: - type: string - enum: - - AC - - DC - phase: - type: object - properties: - value: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - label: - type: string - enum: - - Single phase - - Three-phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - connected_endpoints: - type: array - items: {} - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - connected_endpoints_reachable: - type: boolean - readOnly: true description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true comments: type: string tags: @@ -126850,6 +138672,10 @@ components: custom_fields: type: object additionalProperties: {} + powerfeed_count: + type: integer + format: int64 + readOnly: true created: type: string format: date-time @@ -126860,105 +138686,33 @@ components: format: date-time readOnly: true nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - created - display + - display_url - id - last_updated - - link_peers - - link_peers_type - name - - power_panel + - powerfeed_count + - site - url - PowerFeedRequest: + PowerPanelRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true name: type: string minLength: 1 maxLength: 100 - status: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true comments: type: string tags: @@ -126970,8 +138724,8 @@ components: additionalProperties: {} required: - name - - power_panel - PowerOutlet: + - site + PowerPort: type: object description: Adds support for custom fields and tags. properties: @@ -126982,14 +138736,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -127003,12 +138761,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127024,55 +138782,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127082,18 +138843,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127101,17 +138867,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127143,103 +138909,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127259,14 +139031,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127275,13 +139059,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127292,16 +139074,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b label: type: string enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -127317,55 +139099,58 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -127375,15 +139160,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -127393,33 +139183,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPort' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127428,7 +139203,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -127442,13 +139217,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -127483,21 +139261,22 @@ components: - created - device - display + - display_url - id - last_updated - link_peers - link_peers_type - name - url - PowerOutletRequest: + PowerPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -127509,12 +139288,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127530,55 +139309,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127588,18 +139370,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127607,17 +139394,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127649,103 +139436,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127765,14 +139558,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127781,13 +139586,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127798,26 +139601,20 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127834,7 +139631,7 @@ components: required: - device - name - PowerOutletTemplate: + PowerPortTemplate: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -127853,11 +139650,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -127873,12 +139670,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127894,55 +139691,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127952,18 +139752,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127971,17 +139776,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128013,103 +139818,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128129,113 +139940,126 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal + * `usb-mini-a` - USB Mini A - * `hdot-cx` - HDOT Cx + * `usb-mini-b` - USB Mini B - * `saf-d-grid` - Saf-D-Grid + * `usb-micro-a` - USB Micro A - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `usb-micro-b` - USB Micro B - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `usb-micro-ab` - USB Micro AB - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `usb-3-b` - USB 3.0 Type B - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `usb-3-micro-b` - USB 3.0 Micro B - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `hardwired` - Hardwired + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - IEC 60906-1 - - 2P+T 10A (NBR 14136) - - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + label: + type: string + enum: + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -128245,15 +140069,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -128263,33 +140092,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplate' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -128310,7 +140124,7 @@ components: - last_updated - name - url - PowerOutletTemplateRequest: + PowerPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -128319,11 +140133,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -128337,12 +140151,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -128358,55 +140172,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -128416,18 +140233,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -128435,17 +140257,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128477,103 +140299,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128593,14 +140421,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -128609,13 +140449,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -128626,135 +140464,28 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' - nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: - type: string - maxLength: 200 - required: - - name - PowerPanel: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - powerfeed_count: + maximum_draw: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - PowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - PowerPort: - type: object - description: Adds support for custom fields and tags. - properties: - id: + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/Device' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true + maximum: 2147483647 + minimum: 1 nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - PowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 + description: Allocated power draw (watts) description: type: string maxLength: 200 required: - - device - name - PowerPortTemplate: + Prefix: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: id: type: integer @@ -128763,48 +140494,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - PowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - Prefix: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -128833,19 +140523,19 @@ components: type: string site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true status: type: object @@ -128874,7 +140564,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true is_pool: type: boolean @@ -128917,6 +140607,7 @@ components: - children - created - display + - display_url - family - id - last_updated @@ -128931,19 +140622,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -128962,7 +140653,7 @@ components: x-spec-enum-id: d38bee5f512701d9 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -128996,6 +140687,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129007,17 +140702,47 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + $ref: '#/components/schemas/NestedProviderAccount' description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true circuit_count: type: integer format: int64 readOnly: true required: - circuit_count + - created - display + - display_url - id + - last_updated - name - slug - url @@ -129032,11 +140757,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true provider: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/BriefProvider' name: type: string default: '' @@ -129071,6 +140800,7 @@ components: - account - created - display + - display_url - id - last_updated - provider @@ -129079,6 +140809,8 @@ components: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -129091,8 +140823,18 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - account + - provider ProviderNetwork: type: object description: Adds support for custom fields and tags. @@ -129104,33 +140846,80 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + provider: + $ref: '#/components/schemas/BriefProvider' name: type: string maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name + - provider - url ProviderNetworkRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string minLength: 1 maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - provider ProviderRequest: type: object description: Adds support for custom fields and tags. @@ -129145,9 +140934,26 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -129157,97 +140963,590 @@ components: properties: id: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - aggregate_count: + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - created + - display + - display_url + - id + - last_updated + - name + - slug + - url + RIRRequest: + 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_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + Rack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSite' + location: + allOf: + - $ref: '#/components/schemas/BriefLocation' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + label: + type: string + enum: + - Reserved + - Available + - Planned + - Active + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRackRole' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackType' + nullable: true + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + label: + type: string + enum: + - Front to rear + - Rear to front + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - created + - device_count + - display + - display_url + - id + - last_updated + - name + - powerfeed_count + - site + - url + RackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: type: integer - format: int64 - readOnly: true - required: - - aggregate_count - - display - - id - - name - - slug - - url - RIRRequest: - 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: + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' type: string - maxLength: 200 - required: - - name - - slug - Rack: - type: object - description: Adds support for custom fields and tags. - properties: - id: + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' type: string - maxLength: 200 - device_count: + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + mounting_depth: type: integer - format: int64 - readOnly: true - required: - - device_count - - display - - id - - name - - url - RackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' type: string - minLength: 1 - maxLength: 100 + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site RackReservation: type: object description: Adds support for custom fields and tags. @@ -129259,11 +141558,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true rack: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/BriefRack' units: type: array items: @@ -129281,10 +141584,10 @@ components: readOnly: true nullable: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -129302,6 +141605,7 @@ components: - created - description - display + - display_url - id - last_updated - rack @@ -129313,7 +141617,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/BriefRackRequest' units: type: array items: @@ -129321,10 +141625,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -129355,6 +141659,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129396,6 +141704,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -129433,6 +141742,371 @@ components: required: - name - slug + RackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - last_updated + - manufacturer + - model + - slug + - url + RackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - manufacturer + - model + - slug RackUnit: type: object description: A rack unit is an abstraction formed by the set (rack, position, @@ -129469,7 +142143,7 @@ components: readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' readOnly: true occupied: type: boolean @@ -129495,14 +142169,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -129562,6 +142240,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129656,8 +142342,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -129707,6 +142409,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -129725,7 +142435,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -129739,6 +142449,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -129767,6 +142478,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -129779,10 +142491,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -129840,6 +142552,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129934,8 +142654,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -129979,18 +142715,280 @@ components: display: type: string readOnly: true + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + label: + type: string + enum: + - 8P8C + - 8P6C + - 8P4C + - 8P2C + - 6P6C + - 6P4C + - 6P2C + - 4P4C + - 4P2C + - GG45 + - TERA 4P + - TERA 2P + - TERA 1P + - 110 Punch + - BNC + - F Connector + - N Connector + - MRJ21 + - FC + - LC + - LC/PC + - LC/UPC + - LC/APC + - LSH + - LSH/PC + - LSH/UPC + - LSH/APC + - LX.5 + - LX.5/PC + - LX.5/UPC + - LX.5/APC + - MPO + - MTRJ + - SC + - SC/PC + - SC/UPC + - SC/APC + - ST + - CS + - SN + - SMA 905 + - SMA 906 + - URM-P2 + - URM-P4 + - URM-P8 + - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - Other + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name + - type - url RearPortTemplateRequest: type: object @@ -129999,17 +142997,206 @@ 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' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 required: - name + - type Region: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130021,6 +143208,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130067,6 +143258,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -130114,6 +143306,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130124,9 +143320,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true prefix_count: type: integer format: int64 @@ -130136,8 +143353,11 @@ components: format: int64 readOnly: true required: + - created - display + - display_url - id + - last_updated - name - prefix_count - slug @@ -130156,9 +143376,20 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -130173,6 +143404,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130182,7 +143417,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -130209,6 +143444,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130224,7 +143460,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -130254,6 +143490,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130296,6 +143536,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130357,6 +143598,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true module: type: integer readOnly: true @@ -130365,13 +143610,14 @@ components: readOnly: true description: type: string + nullable: true readOnly: true vars: nullable: true readOnly: true result: allOf: - - $ref: '#/components/schemas/Job' + - $ref: '#/components/schemas/BriefJob' readOnly: true display: type: string @@ -130382,6 +143628,7 @@ components: required: - description - display + - display_url - id - is_executable - module @@ -130389,6 +143636,22 @@ components: - result - url - vars + ScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + required: + - commit + - data Service: type: object description: Adds support for custom fields and tags. @@ -130400,16 +143663,20 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachine' + - $ref: '#/components/schemas/BriefVirtualMachine' nullable: true name: type: string @@ -130471,6 +143738,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130482,11 +143750,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -130541,6 +143809,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130600,6 +143872,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130658,6 +143931,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130669,15 +143946,145 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + region: + allOf: + - $ref: '#/components/schemas/BriefRegion' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroup' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - created + - device_count - display + - display_url - id + - last_updated - name + - prefix_count + - rack_count - slug - url + - virtualmachine_count + - vlan_count SiteGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130689,6 +144096,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130735,6 +144146,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -130785,12 +144197,151 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug + Subscription: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + SubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user Tag: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -130805,6 +144356,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130843,6 +144398,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130891,6 +144447,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130901,15 +144461,91 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroup' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + ipaddress_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + site_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + vrf_count: + type: integer + format: int64 + readOnly: true + cluster_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - cluster_count + - created + - device_count - display + - display_url - id + - ipaddress_count + - last_updated - name + - prefix_count + - rack_count + - site_count - slug - url + - virtualmachine_count + - vlan_count + - vrf_count TenantGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130921,6 +144557,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130967,6 +144607,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -131016,9 +144657,22 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -131036,11 +144690,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' created: type: string format: date-time @@ -131066,6 +144724,7 @@ components: required: - created - display + - display_url - id - url - user @@ -131083,12 +144742,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true created: type: string @@ -131114,6 +144777,7 @@ components: required: - created - display + - display_url - id - key - last_used @@ -131155,7 +144819,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' expires: type: string format: date-time @@ -131187,19 +144851,116 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + status: + type: object + properties: + value: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + label: + type: string + enum: + - Planned + - Active + - Disabled + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroup' + nullable: true + encapsulation: + type: object + properties: + value: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + label: + type: string + enum: + - IPsec - Transport + - IPsec - Tunnel + - IP-in-IP + - GRE + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfile' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + terminations_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url + - encapsulation - id + - last_updated - name + - status + - terminations_count - url TunnelGroup: type: object @@ -131212,6 +144973,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131249,6 +145014,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -131289,11 +145055,67 @@ components: type: string minLength: 1 maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - encapsulation - name + - status TunnelTermination: type: object description: Adds support for custom fields and tags. @@ -131305,11 +145127,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true tunnel: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/BriefTunnel' role: type: object properties: @@ -131344,7 +145170,7 @@ components: readOnly: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true tags: type: array @@ -131366,6 +145192,7 @@ components: required: - created - display + - display_url - id - last_updated - role @@ -131379,7 +145206,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -131402,7 +145229,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -131430,6 +145257,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131439,8 +145270,44 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/Group' + permissions: + type: array + items: + $ref: '#/components/schemas/ObjectPermission' required: - display + - display_url - id - url - username @@ -131458,7 +145325,48 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + password: + type: string + writeOnly: true + minLength: 1 + maxLength: 128 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer required: + - password - username VLAN: type: object @@ -131471,9 +145379,21 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + nullable: true vid: type: integer maximum: 4094 @@ -131483,13 +145403,75 @@ components: name: type: string maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRole' + nullable: true description: type: string maxLength: 200 + comments: + type: string + l2vpn_termination: + allOf: + - $ref: '#/components/schemas/BriefL2VPNTermination' + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + prefix_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url - id + - l2vpn_termination + - last_updated - name + - prefix_count - url - vid VLANGroup: @@ -131503,6 +145485,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131522,18 +145508,6 @@ components: scope: nullable: true readOnly: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131564,6 +145538,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -131591,18 +145566,6 @@ components: scope_id: type: integer nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131620,6 +145583,14 @@ components: type: object description: Adds support for custom fields and tags. properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true vid: type: integer maximum: 4094 @@ -131630,9 +145601,38 @@ components: type: string minLength: 1 maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - vid @@ -131647,11 +145647,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -131700,7 +145704,7 @@ components: - Tagged (All) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -131708,11 +145712,11 @@ components: $ref: '#/components/schemas/VLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true tags: @@ -131743,6 +145747,7 @@ components: - count_ipaddresses - created - display + - display_url - id - l2vpn_termination - last_updated @@ -131754,7 +145759,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -131796,7 +145801,7 @@ components: x-spec-enum-id: 79109bd9dbb73a3c untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -131804,7 +145809,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -131827,6 +145832,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131839,16 +145848,59 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ipaddress_count: + type: integer + format: int64 + readOnly: true prefix_count: type: integer format: int64 readOnly: true required: + - created - display + - display_url - id + - ipaddress_count + - last_updated - name - prefix_count - url @@ -131866,9 +145918,34 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualChassis: @@ -131882,12 +145959,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -131895,13 +145979,41 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true member_count: type: integer readOnly: true + members: + type: array + items: + $ref: '#/components/schemas/NestedDevice' + readOnly: true required: + - created - display + - display_url - id + - last_updated - member_count + - members - name - url VirtualChassisRequest: @@ -131912,6 +146024,9 @@ components: type: string minLength: 1 maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDeviceRequest' @@ -131919,6 +146034,15 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualDeviceContext: @@ -131932,6 +146056,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131939,7 +146067,7 @@ components: type: string maxLength: 64 device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' identifier: type: integer maximum: 32767 @@ -131947,20 +146075,20 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true status: type: object @@ -132013,6 +146141,7 @@ components: - created - device - display + - display_url - id - interface_count - last_updated @@ -132029,7 +146158,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -132037,15 +146166,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -132086,11 +146215,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -132101,7 +146234,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132122,6 +146255,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -132133,7 +146267,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -132145,7 +146279,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132157,7 +146291,7 @@ components: - name - size - virtual_machine - VirtualMachine: + VirtualMachineWithConfigContext: type: object description: Adds support for custom fields and tags. properties: @@ -132168,41 +146302,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - VirtualMachineRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - VirtualMachineWithConfigContext: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -132247,40 +146347,44 @@ components: - Decommissioning site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRole' + - $ref: '#/components/schemas/BriefDeviceRole' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true vcpus: type: number @@ -132300,7 +146404,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132308,7 +146412,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -132344,6 +146448,7 @@ components: - config_context - created - display + - display_url - id - interface_count - last_updated @@ -132382,35 +146487,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -132430,7 +146539,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132438,7 +146547,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -132464,6 +146573,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132550,6 +146663,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -132646,6 +146760,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132657,7 +146775,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroup' + - $ref: '#/components/schemas/BriefWirelessLANGroup' nullable: true status: type: object @@ -132687,11 +146805,11 @@ components: - Deprecated vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true auth_type: type: object @@ -132767,6 +146885,7 @@ components: required: - created - display + - display_url - id - last_updated - ssid @@ -132782,6 +146901,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132792,9 +146915,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + parent: + allOf: + - $ref: '#/components/schemas/NestedWirelessLANGroup' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true wirelesslan_count: type: integer readOnly: true @@ -132805,8 +146949,11 @@ components: title: ' depth' required: - _depth + - created - display + - display_url - id + - last_updated - name - slug - url @@ -132854,7 +147001,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -132874,11 +147021,250 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - ssid + WirelessLink: + 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 + interface_a: + $ref: '#/components/schemas/BriefInterface' + interface_b: + $ref: '#/components/schemas/BriefInterface' + ssid: + type: string + maxLength: 32 + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' nullable: true + auth_type: + type: object + properties: + value: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + label: + type: string + enum: + - Open + - WEP + - WPA Personal (PSK) + - WPA Enterprise + auth_cipher: + type: object + properties: + value: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + label: + type: string + enum: + - Auto + - TKIP + - AES + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + type: object + properties: + value: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + label: + type: string + enum: + - Kilometers + - Meters + - Miles + - Feet + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - interface_a + - interface_b + - last_updated + - url + WirelessLinkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: + type: string + maxLength: 32 + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -132913,205 +147299,31 @@ components: type: string title: Pre-shared key maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - ssid - WirelessLink: - 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 - interface_a: - $ref: '#/components/schemas/Interface' - interface_b: - $ref: '#/components/schemas/Interface' - ssid: - type: string - maxLength: 32 - status: - type: object - properties: - value: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - label: - type: string - enum: - - Connected - - Planned - - Decommissioning - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - auth_type: - type: object - properties: - value: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) - - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - label: - type: string - enum: - - Open - - WEP - - WPA Personal (PSK) - - WPA Enterprise - auth_cipher: - type: object - properties: - value: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto - - * `tkip` - TKIP - - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - label: - type: string - enum: - - Auto - - TKIP - - AES - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - interface_a - - interface_b - - last_updated - - url - WirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - auth_type: + distance_unit: enum: - - open - - wep - - wpa-personal - - wpa-enterprise + - km + - m + - mi + - ft - '' type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) + description: '* `km` - Kilometers - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `m` - Meters - * `tkip` - TKIP + * `mi` - Miles - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 @@ -133135,10 +147347,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true date_added: type: string @@ -133187,6 +147399,7 @@ components: - smf-os1 - smf-os2 - aoc + - usb - power - '' type: string @@ -133234,8 +147447,10 @@ components: * `aoc` - Active Optical Cabling (AOC) + * `usb` - USB + * `power` - Power' - x-spec-enum-id: e671018e64196f8d + x-spec-enum-id: 7b11d524b2b1a7ef a_terminations: type: array items: @@ -133258,7 +147473,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true label: type: string @@ -133309,6 +147524,37 @@ components: custom_fields: type: object additionalProperties: {} + WritableCircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group WritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -133320,13 +147566,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/BriefCircuitTypeRequest' status: enum: - planned @@ -133350,7 +147596,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true install_date: type: string @@ -133381,6 +147627,10 @@ components: custom_fields: type: object additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid - provider @@ -133394,10 +147644,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/BriefClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' + - $ref: '#/components/schemas/BriefClusterGroupRequest' nullable: true status: enum: @@ -133419,11 +147669,11 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true description: type: string @@ -133445,10 +147695,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133568,11 +147818,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133643,10 +147893,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133766,11 +148016,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133848,10 +148098,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -134032,8 +148282,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -134094,6 +148348,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -134124,7 +148382,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -134153,13 +148411,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -134172,10 +148430,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true model: type: string @@ -134299,16 +148557,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -134321,14 +148579,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -134418,23 +148676,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -134454,7 +148712,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -134484,28 +148742,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -134514,11 +148779,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -134539,6 +148807,7 @@ components: $ref: '#/components/schemas/NestedTagRequest' required: - action_object_type + - event_types - name - object_types WritableFrontPortRequest: @@ -134546,10 +148815,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -134607,6 +148876,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134701,8 +148978,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -134742,11 +149035,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -134806,6 +149099,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134900,14 +149201,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -135151,11 +149468,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135254,11 +149571,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135277,7 +149594,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -135425,9 +149742,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -135532,14 +149849,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -135559,6 +149876,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -135612,6 +149930,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -135693,6 +150012,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -135799,6 +150120,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -135926,7 +150249,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean parent: @@ -136668,7 +150991,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -136683,7 +151006,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -136705,11 +151028,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -136731,6 +151054,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -136784,6 +151108,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -136865,6 +151190,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -136971,6 +151298,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -137098,7 +151427,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean mgmt_only: @@ -137279,7 +151608,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tags: type: array @@ -137306,7 +151635,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' parent: type: integer nullable: true @@ -137330,7 +151659,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -137356,11 +151685,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/BriefModuleTypeRequest' status: enum: - offline @@ -137412,7 +151741,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 @@ -137421,6 +151750,28 @@ components: type: string description: Discrete part number (optional) maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d weight: type: number format: double @@ -137465,10 +151816,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -137537,7 +151888,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true comments: type: string @@ -137556,10 +151907,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -137632,6 +151983,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -137669,7 +152021,7 @@ components: - other - '' type: string - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: 83934a5ad90d6138 description: 'Physical port type @@ -137795,6 +152147,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -137866,7 +152220,7 @@ components: * `other` - Other' power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true feed_leg: enum: @@ -137909,11 +152263,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -137988,6 +152342,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -138147,6 +152502,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -138216,10 +152573,10 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: 83934a5ad90d6138 power_port: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -138247,10 +152604,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -138323,6 +152680,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138367,7 +152725,7 @@ components: - other - '' type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b description: 'Physical port type @@ -138493,6 +152851,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138613,11 +152973,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -138692,6 +153052,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138858,6 +153219,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138941,7 +153304,7 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b maximum_draw: type: integer maximum: 2147483647 @@ -138968,19 +153331,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -139002,7 +153365,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -139038,14 +153401,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139067,7 +153430,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/RackRoleRequest' + - $ref: '#/components/schemas/BriefRackRoleRequest' nullable: true serial: type: string @@ -139078,7 +153441,11 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - type: + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: enum: - 2-post-frame - 4-post-frame @@ -139197,6 +153564,16 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 @@ -139212,15 +153589,165 @@ components: required: - name - site + WritableRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - form_factor + - manufacturer + - model + - slug WritableRearPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -139278,6 +153805,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139372,8 +153907,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139409,11 +153960,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -139473,6 +154024,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139567,8 +154126,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139619,11 +154194,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -139775,15 +154350,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/RegionRequest' + - $ref: '#/components/schemas/BriefRegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/SiteGroupRequest' + - $ref: '#/components/schemas/BriefSiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -139792,6 +154367,7 @@ components: time_zone: type: string nullable: true + minLength: 1 description: type: string maxLength: 200 @@ -139888,7 +154464,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' + - $ref: '#/components/schemas/BriefTunnelGroupRequest' nullable: true encapsulation: enum: @@ -139907,11 +154483,11 @@ components: x-spec-enum-id: 5fc36bb745852746 ipsec_profile: allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' + - $ref: '#/components/schemas/BriefIPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tunnel_id: type: integer @@ -139939,7 +154515,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -139962,7 +154538,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -139981,11 +154557,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/VLANGroupRequest' + - $ref: '#/components/schemas/BriefVLANGroupRequest' nullable: true vid: type: integer @@ -139999,7 +154575,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -140018,7 +154594,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -140040,7 +154616,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -140085,7 +154661,7 @@ components: * `tagged-all` - Tagged (All)' untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -140093,7 +154669,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -140142,7 +154718,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -140150,15 +154726,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -140219,35 +154795,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -140267,7 +154847,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -140275,7 +154855,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -140333,7 +154913,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -140352,11 +154932,11 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140409,9 +154989,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -140429,7 +155009,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140466,6 +155046,30 @@ components: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 diff --git a/api_circuits.go b/api_circuits.go index 7e493535bb..9e59811540 100644 --- a/api_circuits.go +++ b/api_circuits.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,3981 @@ import ( // CircuitsAPIService CircuitsAPI service type CircuitsAPIService service +type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy + +Delete a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +Patch a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate + +Put a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsCreateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate + +Post a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + return ApiCircuitsCircuitGroupAssignmentsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy + +Delete a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuit *[]string + circuitN *[]string + 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 + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuit = &circuit + return r +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitN(circuitN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitN = &circuitN + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitId = &circuitId + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitIdN = &circuitIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Group(group []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.group = &group + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupN(groupN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupN = &groupN + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupId(groupId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupId = &groupId + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupIdN = &groupIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Id(id []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.ordering = &ordering + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priority = &priority + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priorityN = &priorityN + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Provider(provider []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerIdN = &providerIdN + return r +} + +// Search +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Q(q string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Execute() (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsListExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList + +Get a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest { + return ApiCircuitsCircuitGroupAssignmentsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupAssignmentList +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.circuit != nil { + t := *r.circuit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", t, "multi") + } + } + if r.circuitN != nil { + t := *r.circuitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", t, "multi") + } + } + if r.circuitId != nil { + t := *r.circuitId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "multi") + } + } + if r.circuitIdN != nil { + t := *r.circuitIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "multi") + } + } + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.group != nil { + t := *r.group + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + } + } + if r.groupN != nil { + t := *r.groupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + } + } + if r.groupId != nil { + t := *r.groupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") + } + if r.priorityN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", r.priorityN, "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + } + } + if r.providerN != nil { + t := *r.providerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + } + } + if r.providerId != nil { + t := *r.providerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + r.patchedWritableCircuitGroupAssignmentRequest = &patchedWritableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate + +Patch a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve + +Get a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest { + return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate + +Put a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkDestroyRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy + +Delete a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest { + return ApiCircuitsCircuitGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate + +Patch a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate + +Put a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest { + return ApiCircuitsCircuitGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsCreateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsCreateExecute(r) +} + +/* +CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate + +Post a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest { + return ApiCircuitsCircuitGroupsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy + +Delete a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest { + return ApiCircuitsCircuitGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Description(description []string) ApiCircuitsCircuitGroupsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Id(id []int32) ApiCircuitsCircuitGroupsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Name(name []string) ApiCircuitsCircuitGroupsListRequest { + r.name = &name + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIc(nameIc []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIe(nameIe []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIew(nameIew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameN(nameN []string) ApiCircuitsCircuitGroupsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNic(nameNic []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNie(nameNie []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCircuitsCircuitGroupsListRequest) Q(q string) ApiCircuitsCircuitGroupsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Slug(slug []string) ApiCircuitsCircuitGroupsListRequest { + r.slug = &slug + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugN(slugN []string) ApiCircuitsCircuitGroupsListRequest { + r.slugN = &slugN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Execute() (*PaginatedCircuitGroupList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsListExecute(r) +} + +/* +CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList + +Get a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest { + return ApiCircuitsCircuitGroupsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupList +func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.tenant != nil { + t := *r.tenant + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + } + } + if r.tenantN != nil { + t := *r.tenantN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + } + } + if r.tenantGroup != nil { + t := *r.tenantGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + } + } + if r.tenantGroupN != nil { + t := *r.tenantGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + } + } + if r.tenantGroupId != nil { + t := *r.tenantGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + } + } + if r.tenantGroupIdN != nil { + t := *r.tenantGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + } + } + if r.tenantId != nil { + t := *r.tenantId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + } + } + if r.tenantIdN != nil { + t := *r.tenantIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedCircuitGroupRequest *PatchedCircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) PatchedCircuitGroupRequest(patchedCircuitGroupRequest PatchedCircuitGroupRequest) ApiCircuitsCircuitGroupsPartialUpdateRequest { + r.patchedCircuitGroupRequest = &patchedCircuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate + +Patch a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest { + return ApiCircuitsCircuitGroupsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedCircuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve + +Get a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest { + return ApiCircuitsCircuitGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate + +Put a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest { + return ApiCircuitsCircuitGroupsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { ctx context.Context ApiService *CircuitsAPIService @@ -5615,8 +9590,8 @@ type ApiCircuitsCircuitsListRequest struct { commitRateN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -5674,16 +9649,16 @@ type ApiCircuitsCircuitsListRequest struct { providerNetworkId *[]int32 providerNetworkIdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -5692,10 +9667,10 @@ type ApiCircuitsCircuitsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]*int32 @@ -5818,14 +9793,12 @@ func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCi return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []string) ApiCircuitsCircuitsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsCircuitsListRequest { r.contactGroupN = &contactGroupN return r } @@ -6131,26 +10104,22 @@ func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListReque return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) Region(region []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) Region(region []string) ApiCircuitsCircuitsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []string) ApiCircuitsCircuitsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []string) ApiCircuitsCircuitsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitsListRequest { r.regionIdN = ®ionIdN return r } @@ -6167,26 +10136,22 @@ func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuit return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -6235,26 +10200,22 @@ func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCir return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -12929,8 +16890,8 @@ type ApiCircuitsProvidersListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12982,16 +16943,16 @@ type ApiCircuitsProvidersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -13046,14 +17007,12 @@ func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsP return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []string) ApiCircuitsProvidersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProvidersListRequest { r.contactGroupN = &contactGroupN return r } @@ -13319,26 +17278,22 @@ func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListReq return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) Region(region []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) Region(region []string) ApiCircuitsProvidersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) RegionN(regionN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionN(regionN []string) ApiCircuitsProvidersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionId(regionId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionId(regionId []string) ApiCircuitsProvidersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []string) ApiCircuitsProvidersListRequest { r.regionIdN = ®ionIdN return r } @@ -13355,26 +17310,22 @@ func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvid return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []string) ApiCircuitsProvidersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsProvidersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsProvidersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsProvidersListRequest { r.siteGroupIdN = &siteGroupIdN return r } diff --git a/api_core.go b/api_core.go index 73022d4199..ecae14a73d 100644 --- a/api_core.go +++ b/api_core.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -4567,3 +4567,1155 @@ func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiCoreObjectChangesListRequest struct { + ctx context.Context + ApiService *CoreAPIService + action *CoreObjectChangesListActionParameter + actionN *CoreObjectChangesListActionParameter + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 + changedObjectTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectRepr *[]string + objectReprEmpty *bool + objectReprIc *[]string + objectReprIe *[]string + objectReprIew *[]string + objectReprIsw *[]string + objectReprN *[]string + objectReprNic *[]string + objectReprNie *[]string + objectReprNiew *[]string + objectReprNisw *[]string + offset *int32 + ordering *string + q *string + relatedObjectId *[]int32 + relatedObjectIdEmpty *bool + relatedObjectIdGt *[]int32 + relatedObjectIdGte *[]int32 + relatedObjectIdLt *[]int32 + relatedObjectIdLte *[]int32 + relatedObjectIdN *[]int32 + relatedObjectType *int32 + relatedObjectTypeN *int32 + requestId *string + timeAfter *time.Time + timeBefore *time.Time + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + userName *[]string + userNameEmpty *bool + userNameIc *[]string + userNameIe *[]string + userNameIew *[]string + userNameIsw *[]string + userNameN *[]string + userNameNic *[]string + userNameNie *[]string + userNameNiew *[]string + userNameNisw *[]string +} + +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) Action(action CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.action = &action + return r +} + +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) ActionN(actionN CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.actionN = &actionN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectId = &changedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGt = &changedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGte = &changedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLt = &changedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLte = &changedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdN = &changedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiCoreObjectChangesListRequest { + r.changedObjectType = &changedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiCoreObjectChangesListRequest { + r.changedObjectTypeN = &changedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeId = &changedObjectTypeId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeIdN = &changedObjectTypeIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) Id(id []int32) ApiCoreObjectChangesListRequest { + r.id = &id + return r +} + +func (r ApiCoreObjectChangesListRequest) IdEmpty(idEmpty bool) ApiCoreObjectChangesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGt(idGt []int32) ApiCoreObjectChangesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGte(idGte []int32) ApiCoreObjectChangesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLt(idLt []int32) ApiCoreObjectChangesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLte(idLte []int32) ApiCoreObjectChangesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdN(idN []int32) ApiCoreObjectChangesListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiCoreObjectChangesListRequest) Limit(limit int32) ApiCoreObjectChangesListRequest { + r.limit = &limit + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiCoreObjectChangesListRequest { + r.objectRepr = &objectRepr + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiCoreObjectChangesListRequest { + r.objectReprEmpty = &objectReprEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiCoreObjectChangesListRequest { + r.objectReprIc = &objectReprIc + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiCoreObjectChangesListRequest { + r.objectReprIe = &objectReprIe + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiCoreObjectChangesListRequest { + r.objectReprIew = &objectReprIew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiCoreObjectChangesListRequest { + r.objectReprIsw = &objectReprIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiCoreObjectChangesListRequest { + r.objectReprN = &objectReprN + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiCoreObjectChangesListRequest { + r.objectReprNic = &objectReprNic + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiCoreObjectChangesListRequest { + r.objectReprNie = &objectReprNie + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiCoreObjectChangesListRequest { + r.objectReprNiew = &objectReprNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiCoreObjectChangesListRequest { + r.objectReprNisw = &objectReprNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCoreObjectChangesListRequest) Offset(offset int32) ApiCoreObjectChangesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCoreObjectChangesListRequest) Ordering(ordering string) ApiCoreObjectChangesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCoreObjectChangesListRequest) Q(q string) ApiCoreObjectChangesListRequest { + r.q = &q + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectId = &relatedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.relatedObjectIdEmpty = &relatedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGt = &relatedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGte = &relatedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLt = &relatedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLte = &relatedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdN = &relatedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiCoreObjectChangesListRequest { + r.relatedObjectType = &relatedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiCoreObjectChangesListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) RequestId(requestId string) ApiCoreObjectChangesListRequest { + r.requestId = &requestId + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiCoreObjectChangesListRequest { + r.timeAfter = &timeAfter + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiCoreObjectChangesListRequest { + r.timeBefore = &timeBefore + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) User(user []string) ApiCoreObjectChangesListRequest { + r.user = &user + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) UserN(userN []string) ApiCoreObjectChangesListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserId(userId []*int32) ApiCoreObjectChangesListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserIdN(userIdN []*int32) ApiCoreObjectChangesListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserName(userName []string) ApiCoreObjectChangesListRequest { + r.userName = &userName + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiCoreObjectChangesListRequest { + r.userNameEmpty = &userNameEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIc(userNameIc []string) ApiCoreObjectChangesListRequest { + r.userNameIc = &userNameIc + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIe(userNameIe []string) ApiCoreObjectChangesListRequest { + r.userNameIe = &userNameIe + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIew(userNameIew []string) ApiCoreObjectChangesListRequest { + r.userNameIew = &userNameIew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiCoreObjectChangesListRequest { + r.userNameIsw = &userNameIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameN(userNameN []string) ApiCoreObjectChangesListRequest { + r.userNameN = &userNameN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNic(userNameNic []string) ApiCoreObjectChangesListRequest { + r.userNameNic = &userNameNic + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNie(userNameNie []string) ApiCoreObjectChangesListRequest { + r.userNameNie = &userNameNie + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiCoreObjectChangesListRequest { + r.userNameNiew = &userNameNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiCoreObjectChangesListRequest { + r.userNameNisw = &userNameNisw + return r +} + +func (r ApiCoreObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { + return r.ApiService.CoreObjectChangesListExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest { + return ApiCoreObjectChangesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedObjectChangeList +func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + } + if r.actionN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") + } + if r.changedObjectId != nil { + t := *r.changedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") + } + } + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + } + if r.changedObjectIdGt != nil { + t := *r.changedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") + } + } + if r.changedObjectIdGte != nil { + t := *r.changedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") + } + } + if r.changedObjectIdLt != nil { + t := *r.changedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") + } + } + if r.changedObjectIdLte != nil { + t := *r.changedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") + } + } + if r.changedObjectIdN != nil { + t := *r.changedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + } + } + if r.changedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") + } + if r.changedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") + } + if r.changedObjectTypeId != nil { + t := *r.changedObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") + } + } + if r.changedObjectTypeIdN != nil { + t := *r.changedObjectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.objectRepr != nil { + t := *r.objectRepr + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") + } + } + if r.objectReprEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") + } + if r.objectReprIc != nil { + t := *r.objectReprIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") + } + } + if r.objectReprIe != nil { + t := *r.objectReprIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") + } + } + if r.objectReprIew != nil { + t := *r.objectReprIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") + } + } + if r.objectReprIsw != nil { + t := *r.objectReprIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") + } + } + if r.objectReprN != nil { + t := *r.objectReprN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") + } + } + if r.objectReprNic != nil { + t := *r.objectReprNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") + } + } + if r.objectReprNie != nil { + t := *r.objectReprNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") + } + } + if r.objectReprNiew != nil { + t := *r.objectReprNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") + } + } + if r.objectReprNisw != nil { + t := *r.objectReprNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.relatedObjectId != nil { + t := *r.relatedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") + } + } + if r.relatedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") + } + if r.relatedObjectIdGt != nil { + t := *r.relatedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") + } + } + if r.relatedObjectIdGte != nil { + t := *r.relatedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") + } + } + if r.relatedObjectIdLt != nil { + t := *r.relatedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") + } + } + if r.relatedObjectIdLte != nil { + t := *r.relatedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") + } + } + if r.relatedObjectIdN != nil { + t := *r.relatedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") + } + } + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") + } + if r.timeAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") + } + if r.timeBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.userName != nil { + t := *r.userName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") + } + } + if r.userNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") + } + if r.userNameIc != nil { + t := *r.userNameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") + } + } + if r.userNameIe != nil { + t := *r.userNameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") + } + } + if r.userNameIew != nil { + t := *r.userNameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") + } + } + if r.userNameIsw != nil { + t := *r.userNameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") + } + } + if r.userNameN != nil { + t := *r.userNameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") + } + } + if r.userNameNic != nil { + t := *r.userNameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") + } + } + if r.userNameNie != nil { + t := *r.userNameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") + } + } + if r.userNameNiew != nil { + t := *r.userNameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") + } + } + if r.userNameNisw != nil { + t := *r.userNameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") + } + } + // 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 ApiCoreObjectChangesRetrieveRequest struct { + ctx context.Context + ApiService *CoreAPIService + id int32 +} + +func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { + return r.ApiService.CoreObjectChangesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest { + return ApiCoreObjectChangesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return ObjectChange +func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectChange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/{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 +} diff --git a/api_dcim.go b/api_dcim.go index 0427ae7cc5..a8d0c8b4b8 100644 --- a/api_dcim.go +++ b/api_dcim.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2355,10 +2355,10 @@ type ApiDcimCablesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]int32 @@ -2796,26 +2796,22 @@ func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListReq return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []string) ApiDcimCablesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimCablesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimCablesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimCablesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5066,8 +5062,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -5097,8 +5091,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -5225,18 +5217,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { r.id = &id return r @@ -5385,18 +5365,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { r.name = &name return r @@ -5743,28 +5711,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6052,28 +5998,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7272,6 +7196,12 @@ type ApiDcimConsolePortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -7329,20 +7259,16 @@ type ApiDcimConsolePortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -7511,6 +7437,40 @@ func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimCons return r } +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsolePortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsolePortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsolePortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsolePortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { r.deviceType = &deviceType @@ -7814,54 +7774,26 @@ func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleP return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) Region(region []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) Region(region []string) ApiDcimConsolePortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) RegionN(regionN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionN(regionN []string) ApiDcimConsolePortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionId(regionId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionId(regionId []string) ApiDcimConsolePortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsolePortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { r.site = &site @@ -7874,26 +7806,22 @@ func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePort return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsolePortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsolePortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsolePortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsolePortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -8285,6 +8213,72 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -8876,50 +8870,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10282,8 +10232,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -10313,8 +10261,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -10441,18 +10387,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeId return r } -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.id = &id return r @@ -10601,18 +10535,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeId return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { r.name = &name return r @@ -10959,28 +10881,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11268,28 +11168,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -12488,6 +12366,12 @@ type ApiDcimConsoleServerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -12545,20 +12429,16 @@ type ApiDcimConsoleServerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -12727,6 +12607,40 @@ func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDc return r } +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { r.deviceType = &deviceType @@ -13030,54 +12944,26 @@ func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimCo return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) Region(region []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Region(region []string) ApiDcimConsoleServerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []string) ApiDcimConsoleServerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []string) ApiDcimConsoleServerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsoleServerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { r.site = &site @@ -13090,26 +12976,22 @@ func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConso return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsoleServerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -13501,6 +13383,72 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14092,50 +14040,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15498,8 +15402,6 @@ type ApiDcimDeviceBayTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -15651,18 +15553,6 @@ func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int3 return r } -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { r.id = &id return r @@ -16133,28 +16023,6 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -17606,6 +17474,12 @@ type ApiDcimDeviceBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -17663,20 +17537,16 @@ type ApiDcimDeviceBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -17807,6 +17677,40 @@ func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDevice return r } +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRole(deviceRole []string) ApiDcimDeviceBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimDeviceBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimDeviceBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { r.deviceType = &deviceType @@ -18112,54 +18016,26 @@ func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBays return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) Region(region []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) Region(region []string) ApiDcimDeviceBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []string) ApiDcimDeviceBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []string) ApiDcimDeviceBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []string) ApiDcimDeviceBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { r.site = &site @@ -18172,26 +18048,22 @@ func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysLis return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []string) ApiDcimDeviceBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimDeviceBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimDeviceBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDeviceBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -18525,6 +18397,72 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -19132,50 +19070,6 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -26587,6 +26481,10 @@ type ApiDcimDevicesListRequest struct { assetTagNie *[]string assetTagNiew *[]string assetTagNisw *[]string + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 clusterId *[]*int32 clusterIdN *[]*int32 configTemplateId *[]*int32 @@ -26609,8 +26507,8 @@ type ApiDcimDevicesListRequest struct { consoleServerPorts *bool contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -26695,8 +26593,8 @@ type ApiDcimDevicesListRequest struct { latitudeN *[]float64 limit *int32 localContextData *bool - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string longitude *[]float64 longitudeEmpty *bool longitudeGt *[]float64 @@ -26790,10 +26688,10 @@ type ApiDcimDevicesListRequest struct { rearPortCountLt *[]int32 rearPortCountLte *[]int32 rearPortCountN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]int32 @@ -26811,10 +26709,10 @@ type ApiDcimDevicesListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -26823,10 +26721,10 @@ type ApiDcimDevicesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -26916,6 +26814,30 @@ func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDe return r } +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroup(clusterGroup []string) ApiDcimDevicesListRequest { + r.clusterGroup = &clusterGroup + return r +} + +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroupN(clusterGroupN []string) ApiDcimDevicesListRequest { + r.clusterGroupN = &clusterGroupN + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupId(clusterGroupId []int32) ApiDcimDevicesListRequest { + r.clusterGroupId = &clusterGroupId + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiDcimDevicesListRequest { + r.clusterGroupIdN = &clusterGroupIdN + return r +} + // VM cluster (ID) func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { r.clusterId = &clusterId @@ -27034,14 +26956,12 @@ func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesList return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []string) ApiDcimDevicesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []string) ApiDcimDevicesListRequest { r.contactGroupN = &contactGroupN return r } @@ -27482,14 +27402,12 @@ func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDc return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationId(locationId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []string) ApiDcimDevicesListRequest { r.locationIdN = &locationIdN return r } @@ -27988,26 +27906,22 @@ func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDci return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) Region(region []string) ApiDcimDevicesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) RegionN(regionN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionN(regionN []string) ApiDcimDevicesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionId(regionId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionId(regionId []string) ApiDcimDevicesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesListRequest { r.regionIdN = ®ionIdN return r } @@ -28103,26 +28017,22 @@ func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListReque return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []string) ApiDcimDevicesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []string) ApiDcimDevicesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []string) ApiDcimDevicesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDevicesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -28171,26 +28081,22 @@ func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListR return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []string) ApiDcimDevicesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimDevicesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimDevicesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimDevicesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28460,6 +28366,50 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") } } + if r.clusterGroup != nil { + t := *r.clusterGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") + } + } + if r.clusterGroupN != nil { + t := *r.clusterGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") + } + } + if r.clusterGroupId != nil { + t := *r.clusterGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") + } + } + if r.clusterGroupIdN != nil { + t := *r.clusterGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") + } + } if r.clusterId != nil { t := *r.clusterId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -32192,8 +32142,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -32223,8 +32171,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -32415,18 +32361,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { r.id = &id return r @@ -32575,18 +32509,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { r.name = &name return r @@ -33089,28 +33011,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33398,28 +33298,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -34735,6 +34613,12 @@ type ApiDcimFrontPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -34801,20 +34685,16 @@ type ApiDcimFrontPortsListRequest struct { rearPortPositionLt *[]int32 rearPortPositionLte *[]int32 rearPortPositionN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -35031,6 +34911,40 @@ func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontP return r } +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRole(deviceRole []string) ApiDcimFrontPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimFrontPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimFrontPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimFrontPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { r.deviceType = &deviceType @@ -35379,54 +35293,26 @@ func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int3 return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) Region(region []string) ApiDcimFrontPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) RegionN(regionN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionN(regionN []string) ApiDcimFrontPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionId(regionId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionId(regionId []string) ApiDcimFrontPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []string) ApiDcimFrontPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { r.site = &site @@ -35439,26 +35325,22 @@ func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsLis return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []string) ApiDcimFrontPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimFrontPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimFrontPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimFrontPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -35946,6 +35828,72 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36628,50 +36576,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -38030,8 +37934,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 enabled *bool id *[]int32 idEmpty *bool @@ -38063,8 +37965,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -38207,18 +38107,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { r.enabled = &enabled return r @@ -38377,18 +38265,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { r.name = &name return r @@ -38785,28 +38661,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -39100,28 +38954,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -40404,6 +40236,12 @@ type ApiDcimInterfacesListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -40497,10 +40335,10 @@ type ApiDcimInterfacesListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string rfChannel *[]string rfChannelN *[]string rfChannelFrequency *[]float64 @@ -40519,16 +40357,12 @@ type ApiDcimInterfacesListRequest struct { rfChannelWidthN *[]float64 rfRole *[]string rfRoleN *[]string - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *[]int32 @@ -40749,6 +40583,40 @@ func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterf return r } +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRole(deviceRole []string) ApiDcimInterfacesListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInterfacesListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInterfacesListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInterfacesListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatus(deviceStatus []string) ApiDcimInterfacesListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInterfacesListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { r.deviceType = &deviceType @@ -41243,26 +41111,22 @@ func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfaces return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) Region(region []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) Region(region []string) ApiDcimInterfacesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) RegionN(regionN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionN(regionN []string) ApiDcimInterfacesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionId(regionId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionId(regionId []string) ApiDcimInterfacesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []string) ApiDcimInterfacesListRequest { r.regionIdN = ®ionIdN return r } @@ -41357,30 +41221,6 @@ func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterface return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { r.site = &site @@ -41393,26 +41233,22 @@ func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesLis return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []string) ApiDcimInterfacesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []string) ApiDcimInterfacesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []string) ApiDcimInterfacesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInterfacesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -42038,6 +41874,72 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43159,50 +43061,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -47253,8 +47111,6 @@ type ApiDcimInventoryItemTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -47472,18 +47328,6 @@ func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN [] return r } -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { r.id = &id return r @@ -48152,28 +47996,6 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -49868,6 +49690,12 @@ type ApiDcimInventoryItemsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -49939,10 +49767,10 @@ type ApiDcimInventoryItemsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -49960,10 +49788,10 @@ type ApiDcimInventoryItemsListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -50194,6 +50022,40 @@ func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimIn return r } +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatus(deviceStatus []string) ApiDcimInventoryItemsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { r.deviceType = &deviceType @@ -50571,26 +50433,22 @@ func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInvent return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) Region(region []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) Region(region []string) ApiDcimInventoryItemsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []string) ApiDcimInventoryItemsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []string) ApiDcimInventoryItemsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []string) ApiDcimInventoryItemsListRequest { r.regionIdN = ®ionIdN return r } @@ -50686,26 +50544,22 @@ func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventory return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []string) ApiDcimInventoryItemsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []string) ApiDcimInventoryItemsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []string) ApiDcimInventoryItemsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInventoryItemsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -51235,6 +51089,72 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -53332,14 +53252,14 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe type ApiDcimLocationsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -53406,16 +53326,16 @@ type ApiDcimLocationsListRequest struct { parentId *[]*int32 parentIdN *[]*int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -53435,35 +53355,31 @@ type ApiDcimLocationsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string } -// Location (slug) -func (r ApiDcimLocationsListRequest) Ancestor(ancestor []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest { r.ancestor = &ancestor return r } -// Location (slug) -func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []string) ApiDcimLocationsListRequest { r.ancestorN = &ancestorN return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []string) ApiDcimLocationsListRequest { r.ancestorId = &ancestorId return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimLocationsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -53480,14 +53396,12 @@ func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocations return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []string) ApiDcimLocationsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []string) ApiDcimLocationsListRequest { r.contactGroupN = &contactGroupN return r } @@ -53832,26 +53746,22 @@ func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) Region(region []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Region(region []string) ApiDcimLocationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) RegionN(regionN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionN(regionN []string) ApiDcimLocationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionId(regionId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionId(regionId []string) ApiDcimLocationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []string) ApiDcimLocationsListRequest { r.regionIdN = ®ionIdN return r } @@ -53868,26 +53778,22 @@ func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListR return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []string) ApiDcimLocationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimLocationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimLocationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimLocationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -53991,26 +53897,22 @@ func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsL return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []string) ApiDcimLocationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimLocationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimLocationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimLocationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -56227,8 +56129,8 @@ type ApiDcimManufacturersListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -56308,14 +56210,12 @@ func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManuf return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []string) ApiDcimManufacturersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []string) ApiDcimManufacturersListRequest { r.contactGroupN = &contactGroupN return r } @@ -58420,10 +58320,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 + deviceTypeId *[]*int32 + deviceTypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -58451,6 +58349,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { lastUpdatedN *[]time.Time limit *int32 modifiedByRequest *string + moduleTypeId *[]*int32 + moduleTypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -58575,29 +58475,17 @@ func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw [] } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { r.id = &id return r @@ -58734,6 +58622,18 @@ func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByReques return r } +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeId = &moduleTypeId + return r +} + +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r @@ -59123,28 +59023,6 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -59410,6 +59288,28 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleTypeId != nil { + t := *r.moduleTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + } + } + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -60709,6 +60609,12 @@ type ApiDcimModuleBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -60746,6 +60652,8 @@ type ApiDcimModuleBaysListRequest struct { locationId *[]int32 locationIdN *[]int32 modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -60759,6 +60667,8 @@ type ApiDcimModuleBaysListRequest struct { nameNisw *[]string offset *int32 ordering *string + parentId *[]*int32 + parentIdN *[]*int32 position *[]string positionEmpty *bool positionIc *[]string @@ -60775,20 +60685,16 @@ type ApiDcimModuleBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -60919,6 +60825,40 @@ func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModule return r } +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRole(deviceRole []string) ApiDcimModuleBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimModuleBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimModuleBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimModuleBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { r.deviceType = &deviceType @@ -61115,6 +61055,18 @@ func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string return r } +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleId(moduleId []*int32) ApiDcimModuleBaysListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimModuleBaysListRequest { + r.moduleIdN = &moduleIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r @@ -61182,6 +61134,18 @@ func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBay return r } +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentId(parentId []*int32) ApiDcimModuleBaysListRequest { + r.parentId = &parentId + return r +} + +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentIdN(parentIdN []*int32) ApiDcimModuleBaysListRequest { + r.parentIdN = &parentIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { r.position = &position return r @@ -61267,54 +61231,26 @@ func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBays return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) Region(region []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) Region(region []string) ApiDcimModuleBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) RegionN(regionN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionN(regionN []string) ApiDcimModuleBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionId(regionId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionId(regionId []string) ApiDcimModuleBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []string) ApiDcimModuleBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { r.site = &site @@ -61327,26 +61263,22 @@ func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysLis return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []string) ApiDcimModuleBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimModuleBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimModuleBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModuleBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -61680,6 +61612,72 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62055,6 +62053,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleId != nil { + t := *r.moduleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62174,6 +62194,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } + if r.parentId != nil { + t := *r.parentId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + } + } + if r.parentIdN != nil { + t := *r.parentIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + } + } if r.position != nil { t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62378,50 +62420,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -63617,6 +63615,8 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr type ApiDcimModuleTypesListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimModuleTypesListAirflowParameter + airflowN *DcimModuleTypesListAirflowParameter consolePorts *bool consoleServerPorts *bool created *[]time.Time @@ -63701,6 +63701,18 @@ type ApiDcimModuleTypesListRequest struct { weightUnitN *DcimDeviceTypesListWeightUnitParameter } +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +func (r ApiDcimModuleTypesListRequest) Airflow(airflow DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflow = &airflow + return r +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +func (r ApiDcimModuleTypesListRequest) AirflowN(airflowN DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflowN = &airflowN + return r +} + // Has console ports func (r ApiDcimModuleTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimModuleTypesListRequest { r.consolePorts = &consolePorts @@ -64168,6 +64180,12 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } + if r.airflowN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + } if r.consolePorts != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") } @@ -66000,8 +66018,8 @@ type ApiDcimModulesListRequest struct { manufacturerId *[]int32 manufacturerIdN *[]int32 modifiedByRequest *string - moduleBayId *[]int32 - moduleBayIdN *[]int32 + moduleBayId *[]string + moduleBayIdN *[]string moduleType *[]string moduleTypeN *[]string moduleTypeId *[]int32 @@ -66294,14 +66312,12 @@ func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) A return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []string) ApiDcimModulesListRequest { r.moduleBayId = &moduleBayId return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []string) ApiDcimModulesListRequest { r.moduleBayIdN = &moduleBayIdN return r } @@ -70535,16 +70551,16 @@ type ApiDcimPowerFeedsListRequest struct { q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -70555,10 +70571,10 @@ type ApiDcimPowerFeedsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *DcimPowerFeedsListTypeParameter @@ -71007,26 +71023,22 @@ func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeeds return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) Region(region []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) Region(region []string) ApiDcimPowerFeedsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []string) ApiDcimPowerFeedsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []string) ApiDcimPowerFeedsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerFeedsListRequest { r.regionIdN = ®ionIdN return r } @@ -71043,26 +71055,22 @@ func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsLis return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerFeedsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerFeedsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerFeedsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerFeedsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -71123,26 +71131,22 @@ func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeed return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []string) ApiDcimPowerFeedsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimPowerFeedsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -73541,8 +73545,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 feedLeg *[]string feedLegN *[]string id *[]int32 @@ -73574,8 +73576,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -73704,18 +73704,6 @@ func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - // Phase (for three-phase feeds) func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { r.feedLeg = &feedLeg @@ -73876,18 +73864,6 @@ func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { r.name = &name return r @@ -73973,13 +73949,13 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTe return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `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` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `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` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.typeN = &typeN return r @@ -74246,28 +74222,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.feedLeg != nil { t := *r.feedLeg if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -74577,28 +74531,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -75819,6 +75751,12 @@ type ApiDcimPowerOutletsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -75880,20 +75818,16 @@ type ApiDcimPowerOutletsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -76060,6 +75994,40 @@ func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowe return r } +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerOutletsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerOutletsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerOutletsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { r.deviceType = &deviceType @@ -76387,54 +76355,26 @@ func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOut return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) Region(region []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) Region(region []string) ApiDcimPowerOutletsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []string) ApiDcimPowerOutletsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []string) ApiDcimPowerOutletsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerOutletsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) Role(role []string) ApiDcimPowerOutletsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) RoleN(roleN []string) ApiDcimPowerOutletsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleId(roleId []int32) ApiDcimPowerOutletsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { r.site = &site @@ -76447,26 +76387,22 @@ func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutlet return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerOutletsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerOutletsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerOutletsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerOutletsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -76846,6 +76782,72 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77481,50 +77483,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -78862,8 +78820,8 @@ type ApiDcimPowerPanelsListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -78900,8 +78858,8 @@ type ApiDcimPowerPanelsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string modifiedByRequest *string name *[]string nameEmpty *bool @@ -78917,16 +78875,16 @@ type ApiDcimPowerPanelsListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -78946,14 +78904,12 @@ func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPa return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []string) ApiDcimPowerPanelsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []string) ApiDcimPowerPanelsListRequest { r.contactGroupN = &contactGroupN return r } @@ -79141,14 +79097,12 @@ func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsList return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []string) ApiDcimPowerPanelsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []string) ApiDcimPowerPanelsListRequest { r.locationIdN = &locationIdN return r } @@ -79231,26 +79185,22 @@ func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) Region(region []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) Region(region []string) ApiDcimPowerPanelsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []string) ApiDcimPowerPanelsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []string) ApiDcimPowerPanelsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPanelsListRequest { r.regionIdN = ®ionIdN return r } @@ -79267,26 +79217,22 @@ func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsL return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPanelsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPanelsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPanelsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPanelsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -81137,8 +81083,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -81175,8 +81119,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -81338,18 +81280,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { r.id = &id return r @@ -81533,18 +81463,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { r.name = &name return r @@ -81618,13 +81536,13 @@ func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTempla return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.typeN = &typeN return r @@ -81960,28 +81878,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -82338,28 +82234,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -83565,6 +83439,12 @@ type ApiDcimPowerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -83629,20 +83509,16 @@ type ApiDcimPowerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -83844,6 +83720,40 @@ func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerP return r } +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { r.deviceType = &deviceType @@ -84182,54 +84092,26 @@ func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPorts return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) Region(region []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) Region(region []string) ApiDcimPowerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) RegionN(regionN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionN(regionN []string) ApiDcimPowerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionId(regionId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionId(regionId []string) ApiDcimPowerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) Role(role []string) ApiDcimPowerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) RoleN(roleN []string) ApiDcimPowerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleId(roleId []int32) ApiDcimPowerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { r.site = &site @@ -84242,26 +84124,22 @@ func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsLis return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -84710,6 +84588,72 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85370,50 +85314,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -86783,36 +86683,36 @@ type ApiDcimRackReservationsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string modifiedByRequest *string offset *int32 ordering *string q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 unit *float32 @@ -86994,26 +86894,22 @@ func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReserv return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) Location(location []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Location(location []string) ApiDcimRackReservationsListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) LocationN(locationN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationN(locationN []string) ApiDcimRackReservationsListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationId(locationId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationId(locationId []string) ApiDcimRackReservationsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []string) ApiDcimRackReservationsListRequest { r.locationIdN = &locationIdN return r } @@ -87053,26 +86949,22 @@ func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRack return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) Region(region []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Region(region []string) ApiDcimRackReservationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) RegionN(regionN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionN(regionN []string) ApiDcimRackReservationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionId(regionId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionId(regionId []string) ApiDcimRackReservationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []string) ApiDcimRackReservationsListRequest { r.regionIdN = ®ionIdN return r } @@ -87089,26 +86981,22 @@ func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackRes return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []string) ApiDcimRackReservationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRackReservationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRackReservationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRackReservationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -87147,26 +87035,22 @@ func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRac return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []string) ApiDcimRackReservationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRackReservationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRackReservationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRackReservationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -90285,33 +90169,3069 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedRackRoleRequest *PatchedRackRoleRequest +type ApiDcimRackRolesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedRackRoleRequest *PatchedRackRoleRequest +} + +func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { + r.patchedRackRoleRequest = &patchedRackRoleRequest + return r +} + +func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { + return ApiDcimRackRolesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"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.patchedRackRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackRolesRetrieveRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { + return ApiDcimRackRolesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // 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 ApiDcimRackRolesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + rackRoleRequest *RackRoleRequest +} + +func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { + r.rackRoleRequest = &rackRoleRequest + return r +} + +func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { + return ApiDcimRackRolesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest 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.rackRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkDestroyRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkDestroyRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest { + return ApiDcimRackTypesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return nil, reportError("rackTypeRequest 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.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + 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 ApiDcimRackTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkPartialUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest { + return ApiDcimRackTypesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest 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.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest { + return ApiDcimRackTypesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest 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.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesCreateRequest struct { + ctx context.Context + ApiService *DcimAPIService + writableRackTypeRequest *WritableRackTypeRequest +} + +func (r ApiDcimRackTypesCreateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesCreateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest + return r +} + +func (r ApiDcimRackTypesCreateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest { + return ApiDcimRackTypesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return RackType +func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest 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.writableRackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest { + return ApiDcimRackTypesDestroyRequest{ + ApiService: a, + 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 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 ApiDcimRackTypesListRequest struct { + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + 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 + formFactorN *[]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 + outerUnitN *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 + weightUnitN *DcimDeviceTypesListWeightUnitParameter + width *[]int32 + widthN *[]int32 +} + +func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest { + r.created = &created + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackTypesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackTypesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackTypesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackTypesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedN(createdN []time.Time) ApiDcimRackTypesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackTypesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) DescUnits(descUnits bool) ApiDcimRackTypesListRequest { + r.descUnits = &descUnits + return r +} + +func (r ApiDcimRackTypesListRequest) Description(description []string) ApiDcimRackTypesListRequest { + r.description = &description + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackTypesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackTypesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackTypesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackTypesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackTypesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionN(descriptionN []string) ApiDcimRackTypesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackTypesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackTypesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackTypesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackTypesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactor(formFactor []string) ApiDcimRackTypesListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactorN(formFactorN []string) ApiDcimRackTypesListRequest { + r.formFactorN = &formFactorN + return r +} + +func (r ApiDcimRackTypesListRequest) Id(id []int32) ApiDcimRackTypesListRequest { + r.id = &id + return r +} + +func (r ApiDcimRackTypesListRequest) IdEmpty(idEmpty bool) ApiDcimRackTypesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) IdGt(idGt []int32) ApiDcimRackTypesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiDcimRackTypesListRequest) IdGte(idGte []int32) ApiDcimRackTypesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimRackTypesListRequest) IdLt(idLt []int32) ApiDcimRackTypesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimRackTypesListRequest) IdLte(idLte []int32) ApiDcimRackTypesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimRackTypesListRequest) IdN(idN []int32) ApiDcimRackTypesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimRackTypesListRequest) Limit(limit int32) ApiDcimRackTypesListRequest { + r.limit = &limit + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) Manufacturer(manufacturer []string) ApiDcimRackTypesListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimRackTypesListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRackTypesListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRackTypesListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeight(maxWeight []int32) ApiDcimRackTypesListRequest { + r.maxWeight = &maxWeight + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRackTypesListRequest { + r.maxWeightEmpty = &maxWeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRackTypesListRequest { + r.maxWeightGt = &maxWeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGte(maxWeightGte []int32) ApiDcimRackTypesListRequest { + r.maxWeightGte = &maxWeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLt(maxWeightLt []int32) ApiDcimRackTypesListRequest { + r.maxWeightLt = &maxWeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLte(maxWeightLte []int32) ApiDcimRackTypesListRequest { + r.maxWeightLte = &maxWeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRackTypesListRequest { + r.maxWeightN = &maxWeightN + return r +} + +func (r ApiDcimRackTypesListRequest) Model(model []string) ApiDcimRackTypesListRequest { + r.model = &model + return r +} + +func (r ApiDcimRackTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimRackTypesListRequest { + r.modelEmpty = &modelEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIc(modelIc []string) ApiDcimRackTypesListRequest { + r.modelIc = &modelIc + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIe(modelIe []string) ApiDcimRackTypesListRequest { + r.modelIe = &modelIe + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIew(modelIew []string) ApiDcimRackTypesListRequest { + r.modelIew = &modelIew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIsw(modelIsw []string) ApiDcimRackTypesListRequest { + r.modelIsw = &modelIsw + return r +} + +func (r ApiDcimRackTypesListRequest) ModelN(modelN []string) ApiDcimRackTypesListRequest { + r.modelN = &modelN + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNic(modelNic []string) ApiDcimRackTypesListRequest { + r.modelNic = &modelNic + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNie(modelNie []string) ApiDcimRackTypesListRequest { + r.modelNie = &modelNie + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNiew(modelNiew []string) ApiDcimRackTypesListRequest { + r.modelNiew = &modelNiew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNisw(modelNisw []string) ApiDcimRackTypesListRequest { + r.modelNisw = &modelNisw + return r +} + +func (r ApiDcimRackTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepth(mountingDepth []int32) ApiDcimRackTypesListRequest { + r.mountingDepth = &mountingDepth + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRackTypesListRequest { + r.mountingDepthEmpty = &mountingDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGt = &mountingDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGte(mountingDepthGte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGte = &mountingDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLt(mountingDepthLt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLt = &mountingDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLte(mountingDepthLte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLte = &mountingDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthN(mountingDepthN []int32) ApiDcimRackTypesListRequest { + r.mountingDepthN = &mountingDepthN + return r +} + +// The initial index from which to return the results. +func (r ApiDcimRackTypesListRequest) Offset(offset int32) ApiDcimRackTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimRackTypesListRequest) Ordering(ordering string) ApiDcimRackTypesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepth(outerDepth []int32) ApiDcimRackTypesListRequest { + r.outerDepth = &outerDepth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRackTypesListRequest { + r.outerDepthEmpty = &outerDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRackTypesListRequest { + r.outerDepthGt = &outerDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGte(outerDepthGte []int32) ApiDcimRackTypesListRequest { + r.outerDepthGte = &outerDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLt(outerDepthLt []int32) ApiDcimRackTypesListRequest { + r.outerDepthLt = &outerDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLte(outerDepthLte []int32) ApiDcimRackTypesListRequest { + r.outerDepthLte = &outerDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRackTypesListRequest { + r.outerDepthN = &outerDepthN + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnit = &outerUnit + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnitN = &outerUnitN + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidth(outerWidth []int32) ApiDcimRackTypesListRequest { + r.outerWidth = &outerWidth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRackTypesListRequest { + r.outerWidthEmpty = &outerWidthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRackTypesListRequest { + r.outerWidthGt = &outerWidthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGte(outerWidthGte []int32) ApiDcimRackTypesListRequest { + r.outerWidthGte = &outerWidthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLt(outerWidthLt []int32) ApiDcimRackTypesListRequest { + r.outerWidthLt = &outerWidthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLte(outerWidthLte []int32) ApiDcimRackTypesListRequest { + r.outerWidthLte = &outerWidthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthN(outerWidthN []int32) ApiDcimRackTypesListRequest { + r.outerWidthN = &outerWidthN + return r +} + +// Search +func (r ApiDcimRackTypesListRequest) Q(q string) ApiDcimRackTypesListRequest { + r.q = &q + return r +} + +func (r ApiDcimRackTypesListRequest) Slug(slug []string) ApiDcimRackTypesListRequest { + r.slug = &slug + return r +} + +func (r ApiDcimRackTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackTypesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIc(slugIc []string) ApiDcimRackTypesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIe(slugIe []string) ApiDcimRackTypesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIew(slugIew []string) ApiDcimRackTypesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIsw(slugIsw []string) ApiDcimRackTypesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiDcimRackTypesListRequest) SlugN(slugN []string) ApiDcimRackTypesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNic(slugNic []string) ApiDcimRackTypesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNie(slugNie []string) ApiDcimRackTypesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNiew(slugNiew []string) ApiDcimRackTypesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNisw(slugNisw []string) ApiDcimRackTypesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnit(startingUnit []int32) ApiDcimRackTypesListRequest { + r.startingUnit = &startingUnit + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRackTypesListRequest { + r.startingUnitEmpty = &startingUnitEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRackTypesListRequest { + r.startingUnitGt = &startingUnitGt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRackTypesListRequest { + r.startingUnitGte = &startingUnitGte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRackTypesListRequest { + r.startingUnitLt = &startingUnitLt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRackTypesListRequest { + r.startingUnitLte = &startingUnitLte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRackTypesListRequest { + r.startingUnitN = &startingUnitN + return r +} + +func (r ApiDcimRackTypesListRequest) Tag(tag []string) ApiDcimRackTypesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest { + r.uHeight = &uHeight + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRackTypesListRequest { + r.uHeightEmpty = &uHeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGt(uHeightGt []int32) ApiDcimRackTypesListRequest { + r.uHeightGt = &uHeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGte(uHeightGte []int32) ApiDcimRackTypesListRequest { + r.uHeightGte = &uHeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLt(uHeightLt []int32) ApiDcimRackTypesListRequest { + r.uHeightLt = &uHeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLte(uHeightLte []int32) ApiDcimRackTypesListRequest { + r.uHeightLte = &uHeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightN(uHeightN []int32) ApiDcimRackTypesListRequest { + r.uHeightN = &uHeightN + return r +} + +func (r ApiDcimRackTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackTypesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) Weight(weight []float64) ApiDcimRackTypesListRequest { + r.weight = &weight + return r +} + +func (r ApiDcimRackTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimRackTypesListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGt(weightGt []float64) ApiDcimRackTypesListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGte(weightGte []float64) ApiDcimRackTypesListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLt(weightLt []float64) ApiDcimRackTypesListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLte(weightLte []float64) ApiDcimRackTypesListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightN(weightN []float64) ApiDcimRackTypesListRequest { + r.weightN = &weightN + return r +} + +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnit = &weightUnit + return r +} + +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnitN = &weightUnitN + return r +} + +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) Width(width []int32) ApiDcimRackTypesListRequest { + r.width = &width + return r +} + +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthN(widthN []int32) ApiDcimRackTypesListRequest { + r.widthN = &widthN + return r +} + +func (r ApiDcimRackTypesListRequest) Execute() (*PaginatedRackTypeList, *http.Response, error) { + return r.ApiService.DcimRackTypesListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest { + return ApiDcimRackTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedRackTypeList +func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.descUnits != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } + if r.maxWeight != nil { + t := *r.maxWeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") + } + } + if r.maxWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") + } + if r.maxWeightGt != nil { + t := *r.maxWeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") + } + } + if r.maxWeightGte != nil { + t := *r.maxWeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") + } + } + if r.maxWeightLt != nil { + t := *r.maxWeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") + } + } + if r.maxWeightLte != nil { + t := *r.maxWeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") + } + } + if r.maxWeightN != nil { + t := *r.maxWeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") + } + } + if r.model != nil { + t := *r.model + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + } + } + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") + } + if r.modelIc != nil { + t := *r.modelIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") + } + } + if r.modelIe != nil { + t := *r.modelIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") + } + } + if r.modelIew != nil { + t := *r.modelIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") + } + } + if r.modelIsw != nil { + t := *r.modelIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") + } + } + if r.modelN != nil { + t := *r.modelN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + } + } + if r.modelNic != nil { + t := *r.modelNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") + } + } + if r.modelNie != nil { + t := *r.modelNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") + } + } + if r.modelNiew != nil { + t := *r.modelNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") + } + } + if r.modelNisw != nil { + t := *r.modelNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.mountingDepth != nil { + t := *r.mountingDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") + } + } + if r.mountingDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") + } + if r.mountingDepthGt != nil { + t := *r.mountingDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") + } + } + if r.mountingDepthGte != nil { + t := *r.mountingDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") + } + } + if r.mountingDepthLt != nil { + t := *r.mountingDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") + } + } + if r.mountingDepthLte != nil { + t := *r.mountingDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") + } + } + if r.mountingDepthN != nil { + t := *r.mountingDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.outerDepth != nil { + t := *r.outerDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") + } + } + if r.outerDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") + } + if r.outerDepthGt != nil { + t := *r.outerDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") + } + } + if r.outerDepthGte != nil { + t := *r.outerDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") + } + } + if r.outerDepthLt != nil { + t := *r.outerDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") + } + } + if r.outerDepthLte != nil { + t := *r.outerDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") + } + } + if r.outerDepthN != nil { + t := *r.outerDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") + } + } + if r.outerUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") + } + if r.outerUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit__n", r.outerUnitN, "") + } + if r.outerWidth != nil { + t := *r.outerWidth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") + } + } + if r.outerWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") + } + if r.outerWidthGt != nil { + t := *r.outerWidthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") + } + } + if r.outerWidthGte != nil { + t := *r.outerWidthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") + } + } + if r.outerWidthLt != nil { + t := *r.outerWidthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") + } + } + if r.outerWidthLte != nil { + t := *r.outerWidthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") + } + } + if r.outerWidthN != nil { + t := *r.outerWidthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.startingUnit != nil { + t := *r.startingUnit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") + } + } + if r.startingUnitEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") + } + if r.startingUnitGt != nil { + t := *r.startingUnitGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") + } + } + if r.startingUnitGte != nil { + t := *r.startingUnitGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") + } + } + if r.startingUnitLt != nil { + t := *r.startingUnitLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") + } + } + if r.startingUnitLte != nil { + t := *r.startingUnitLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") + } + } + if r.startingUnitN != nil { + t := *r.startingUnitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.uHeight != nil { + t := *r.uHeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") + } + } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + } + if r.uHeightGt != nil { + t := *r.uHeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") + } + } + if r.uHeightGte != nil { + t := *r.uHeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") + } + } + if r.uHeightLt != nil { + t := *r.uHeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") + } + } + if r.uHeightLte != nil { + t := *r.uHeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") + } + } + if r.uHeightN != nil { + t := *r.uHeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") + } + if r.weightUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") + } + if r.width != nil { + t := *r.width + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") + } + } + if r.widthN != nil { + t := *r.widthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest } -func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { - r.patchedRackRoleRequest = &patchedRackRoleRequest +func (r ApiDcimRackTypesPartialUpdateRequest) PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest PatchedWritableRackTypeRequest) ApiDcimRackTypesPartialUpdateRequest { + r.patchedWritableRackTypeRequest = &patchedWritableRackTypeRequest return r } -func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesPartialUpdateExecute(r) +func (r ApiDcimRackTypesPartialUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesPartialUpdateExecute(r) } /* -DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate +DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate -Patch a rack role object. +Patch a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesPartialUpdateRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { - return ApiDcimRackRolesPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest { + return ApiDcimRackTypesPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -90320,21 +93240,21 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int3 // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90359,7 +93279,7 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRackRoleRequest + localVarPostBody = r.patchedWritableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -90411,27 +93331,27 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesRetrieveRequest struct { +type ApiDcimRackTypesRetrieveRequest struct { ctx context.Context ApiService *DcimAPIService id int32 } -func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesRetrieveExecute(r) +func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesRetrieveExecute(r) } /* -DcimRackRolesRetrieve Method for DcimRackRolesRetrieve +DcimRackTypesRetrieve Method for DcimRackTypesRetrieve -Get a rack role object. +Get a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesRetrieveRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesRetrieveRequest */ -func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { - return ApiDcimRackRolesRetrieveRequest{ +func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest { + return ApiDcimRackTypesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -90440,21 +93360,21 @@ func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) Ap // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90529,33 +93449,33 @@ func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackRoleRequest *RackRoleRequest +type ApiDcimRackTypesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + writableRackTypeRequest *WritableRackTypeRequest } -func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesUpdateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesUpdateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest return r } -func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesUpdateExecute(r) +func (r ApiDcimRackTypesUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesUpdateExecute(r) } /* -DcimRackRolesUpdate Method for DcimRackRolesUpdate +DcimRackTypesUpdate Method for DcimRackTypesUpdate -Put a rack role object. +Put a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesUpdateRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { - return ApiDcimRackRolesUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest { + return ApiDcimRackTypesUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -90564,28 +93484,28 @@ func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiD // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -90606,7 +93526,7 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.writableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -91503,6 +94423,8 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati type ApiDcimRacksListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimRacksListAirflowParameter + airflowN *DcimRacksListAirflowParameter assetTag *[]string assetTagEmpty *bool assetTagIc *[]string @@ -91516,8 +94438,8 @@ type ApiDcimRacksListRequest struct { assetTagNisw *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -91551,6 +94473,8 @@ type ApiDcimRacksListRequest struct { facilityIdNie *[]string facilityIdNiew *[]string facilityIdNisw *[]string + formFactor *[]string + formFactorN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -91566,10 +94490,14 @@ type ApiDcimRacksListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 maxWeight *[]int32 maxWeightEmpty *bool maxWeightGt *[]int32 @@ -91605,8 +94533,8 @@ type ApiDcimRacksListRequest struct { outerDepthLt *[]int32 outerDepthLte *[]int32 outerDepthN *[]int32 - outerUnit *DcimRacksListOuterUnitParameter - outerUnitN *DcimRacksListOuterUnitParameter + outerUnit *DcimRackTypesListOuterUnitParameter + outerUnitN *DcimRackTypesListOuterUnitParameter outerWidth *[]int32 outerWidthEmpty *bool outerWidthGt *[]int32 @@ -91615,10 +94543,14 @@ type ApiDcimRacksListRequest struct { outerWidthLte *[]int32 outerWidthN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + rackType *[]string + rackTypeN *[]string + rackTypeId *[]*int32 + rackTypeIdN *[]*int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -91636,10 +94568,10 @@ type ApiDcimRacksListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 startingUnit *[]int32 @@ -91655,14 +94587,12 @@ type ApiDcimRacksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 - type_ *[]string - typeN *[]string uHeight *[]int32 uHeightEmpty *bool uHeightGt *[]int32 @@ -91684,6 +94614,18 @@ type ApiDcimRacksListRequest struct { widthN *[]int32 } +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) Airflow(airflow DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflow = &airflow + return r +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) AirflowN(airflowN DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflowN = &airflowN + return r +} + func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { r.assetTag = &assetTag return r @@ -91751,14 +94693,12 @@ func (r ApiDcimRacksListRequest) ContactN(contactN []int32) ApiDcimRacksListRequ return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []string) ApiDcimRacksListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []string) ApiDcimRacksListRequest { r.contactGroupN = &contactGroupN return r } @@ -91930,6 +94870,16 @@ func (r ApiDcimRacksListRequest) FacilityIdNisw(facilityIdNisw []string) ApiDcim return r } +func (r ApiDcimRacksListRequest) FormFactor(formFactor []string) ApiDcimRacksListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRacksListRequest) FormFactorN(formFactorN []string) ApiDcimRacksListRequest { + r.formFactorN = &formFactorN + return r +} + func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { r.id = &id return r @@ -92006,30 +94956,50 @@ func (r ApiDcimRacksListRequest) Limit(limit int32) ApiDcimRacksListRequest { return r } -// Location (slug) -func (r ApiDcimRacksListRequest) Location(location []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) Location(location []string) ApiDcimRacksListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRacksListRequest) LocationN(locationN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationN(locationN []string) ApiDcimRacksListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationId(locationId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationId(locationId []string) ApiDcimRacksListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []string) ApiDcimRacksListRequest { r.locationIdN = &locationIdN return r } +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) Manufacturer(manufacturer []string) ApiDcimRacksListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) ManufacturerN(manufacturerN []string) ApiDcimRacksListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRacksListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRacksListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRequest { r.maxWeight = &maxWeight return r @@ -92208,13 +95178,13 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnit = &outerUnit return r } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnitN = &outerUnitN return r } @@ -92260,26 +95230,46 @@ func (r ApiDcimRacksListRequest) Q(q string) ApiDcimRacksListRequest { return r } -// Region (slug) -func (r ApiDcimRacksListRequest) Region(region []int32) ApiDcimRacksListRequest { +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackType(rackType []string) ApiDcimRacksListRequest { + r.rackType = &rackType + return r +} + +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackTypeN(rackTypeN []string) ApiDcimRacksListRequest { + r.rackTypeN = &rackTypeN + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeId(rackTypeId []*int32) ApiDcimRacksListRequest { + r.rackTypeId = &rackTypeId + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeIdN(rackTypeIdN []*int32) ApiDcimRacksListRequest { + r.rackTypeIdN = &rackTypeIdN + return r +} + +func (r ApiDcimRacksListRequest) Region(region []string) ApiDcimRacksListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRacksListRequest) RegionN(regionN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionN(regionN []string) ApiDcimRacksListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionId(regionId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionId(regionId []string) ApiDcimRacksListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []string) ApiDcimRacksListRequest { r.regionIdN = ®ionIdN return r } @@ -92375,26 +95365,22 @@ func (r ApiDcimRacksListRequest) SiteN(siteN []string) ApiDcimRacksListRequest { return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []string) ApiDcimRacksListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []string) ApiDcimRacksListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []string) ApiDcimRacksListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRacksListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -92478,26 +95464,22 @@ func (r ApiDcimRacksListRequest) TenantN(tenantN []string) ApiDcimRacksListReque return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []string) ApiDcimRacksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRacksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRacksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRacksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -92514,16 +95496,6 @@ func (r ApiDcimRacksListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRacksListR return r } -func (r ApiDcimRacksListRequest) Type_(type_ []string) ApiDcimRacksListRequest { - r.type_ = &type_ - return r -} - -func (r ApiDcimRacksListRequest) TypeN(typeN []string) ApiDcimRacksListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListRequest { r.uHeight = &uHeight return r @@ -92664,6 +95636,12 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } + if r.airflowN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + } if r.assetTag != nil { t := *r.assetTag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93152,6 +96130,28 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") } } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93345,6 +96345,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } if r.maxWeight != nil { t := *r.maxWeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93752,6 +96796,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } + if r.rackType != nil { + t := *r.rackType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", t, "multi") + } + } + if r.rackTypeN != nil { + t := *r.rackTypeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", t, "multi") + } + } + if r.rackTypeId != nil { + t := *r.rackTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", t, "multi") + } + } + if r.rackTypeIdN != nil { + t := *r.rackTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", t, "multi") + } + } if r.region != nil { t := *r.region if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94242,28 +97330,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") } } - if r.type_ != nil { - t := *r.type_ - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } - } - if r.typeN != nil { - t := *r.typeN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") - } - } if r.uHeight != nil { t := *r.uHeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -95503,8 +98569,6 @@ type ApiDcimRearPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -95534,8 +98598,6 @@ type ApiDcimRearPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -95724,18 +98786,6 @@ func (r ApiDcimRearPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int3 return r } -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTemplatesListRequest { r.id = &id return r @@ -95884,18 +98934,6 @@ func (r ApiDcimRearPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int3 return r } -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Name(name []string) ApiDcimRearPortTemplatesListRequest { r.name = &name return r @@ -96388,28 +99426,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96697,28 +99713,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -98012,6 +101006,12 @@ type ApiDcimRearPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -98076,20 +101076,16 @@ type ApiDcimRearPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -98306,6 +101302,40 @@ func (r ApiDcimRearPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimRearPor return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRole(deviceRole []string) ApiDcimRearPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimRearPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimRearPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimRearPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimRearPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimRearPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest { r.deviceType = &deviceType @@ -98644,54 +101674,26 @@ func (r ApiDcimRearPortsListRequest) RackIdN(rackIdN []int32) ApiDcimRearPortsLi return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) Region(region []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) Region(region []string) ApiDcimRearPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) RegionN(regionN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionN(regionN []string) ApiDcimRearPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionId(regionId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionId(regionId []string) ApiDcimRearPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []string) ApiDcimRearPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimRearPortsListRequest) Role(role []string) ApiDcimRearPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimRearPortsListRequest) RoleN(roleN []string) ApiDcimRearPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleId(roleId []int32) ApiDcimRearPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimRearPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimRearPortsListRequest) Site(site []string) ApiDcimRearPortsListRequest { r.site = &site @@ -98704,26 +101706,22 @@ func (r ApiDcimRearPortsListRequest) SiteN(siteN []string) ApiDcimRearPortsListR return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []string) ApiDcimRearPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRearPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRearPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRearPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -99211,6 +102209,72 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -99871,50 +102935,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -101250,14 +104270,14 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques type ApiDcimRegionsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -101329,26 +104349,22 @@ type ApiDcimRegionsListRequest struct { updatedByRequest *string } -// Region (slug) -func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest { r.ancestor = &ancestor return r } -// Region (slug) -func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []string) ApiDcimRegionsListRequest { r.ancestorN = &ancestorN return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []string) ApiDcimRegionsListRequest { r.ancestorId = &ancestorId return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimRegionsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -101365,14 +104381,12 @@ func (r ApiDcimRegionsListRequest) ContactN(contactN []int32) ApiDcimRegionsList return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []string) ApiDcimRegionsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []string) ApiDcimRegionsListRequest { r.contactGroupN = &contactGroupN return r } @@ -103570,14 +106584,14 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy type ApiDcimSiteGroupsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -103649,26 +106663,22 @@ type ApiDcimSiteGroupsListRequest struct { updatedByRequest *string } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest { r.ancestor = &ancestor return r } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []string) ApiDcimSiteGroupsListRequest { r.ancestorN = &ancestorN return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []string) ApiDcimSiteGroupsListRequest { r.ancestorId = &ancestorId return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimSiteGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -103685,14 +106695,12 @@ func (r ApiDcimSiteGroupsListRequest) ContactN(contactN []int32) ApiDcimSiteGrou return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []string) ApiDcimSiteGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []string) ApiDcimSiteGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -105896,8 +108904,8 @@ type ApiDcimSitesListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -105930,10 +108938,10 @@ type ApiDcimSitesListRequest struct { facilityNie *[]string facilityNiew *[]string facilityNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -105978,10 +108986,10 @@ type ApiDcimSitesListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string slug *[]string slugEmpty *bool slugIc *[]string @@ -105999,10 +109007,10 @@ type ApiDcimSitesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 timeZone *[]string @@ -106054,14 +109062,12 @@ func (r ApiDcimSitesListRequest) ContactN(contactN []int32) ApiDcimSitesListRequ return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []string) ApiDcimSitesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []string) ApiDcimSitesListRequest { r.contactGroupN = &contactGroupN return r } @@ -106228,26 +109234,22 @@ func (r ApiDcimSitesListRequest) FacilityNisw(facilityNisw []string) ApiDcimSite return r } -// Group (slug) -func (r ApiDcimSitesListRequest) Group(group []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Group(group []string) ApiDcimSitesListRequest { r.group = &group return r } -// Group (slug) -func (r ApiDcimSitesListRequest) GroupN(groupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupN(groupN []string) ApiDcimSitesListRequest { r.groupN = &groupN return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupId(groupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupId(groupId []string) ApiDcimSitesListRequest { r.groupId = &groupId return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []string) ApiDcimSitesListRequest { r.groupIdN = &groupIdN return r } @@ -106476,26 +109478,22 @@ func (r ApiDcimSitesListRequest) Q(q string) ApiDcimSitesListRequest { return r } -// Region (slug) -func (r ApiDcimSitesListRequest) Region(region []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Region(region []string) ApiDcimSitesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimSitesListRequest) RegionN(regionN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionN(regionN []string) ApiDcimSitesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionId(regionId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionId(regionId []string) ApiDcimSitesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []string) ApiDcimSitesListRequest { r.regionIdN = ®ionIdN return r } @@ -106587,26 +109585,22 @@ func (r ApiDcimSitesListRequest) TenantN(tenantN []string) ApiDcimSitesListReque return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []string) ApiDcimSitesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimSitesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimSitesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimSitesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -109102,16 +112096,16 @@ type ApiDcimVirtualChassisListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -109486,26 +112480,22 @@ func (r ApiDcimVirtualChassisListRequest) Q(q string) ApiDcimVirtualChassisListR return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) Region(region []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) Region(region []string) ApiDcimVirtualChassisListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []string) ApiDcimVirtualChassisListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []string) ApiDcimVirtualChassisListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []string) ApiDcimVirtualChassisListRequest { r.regionIdN = ®ionIdN return r } @@ -109522,26 +112512,22 @@ func (r ApiDcimVirtualChassisListRequest) SiteN(siteN []string) ApiDcimVirtualCh return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []string) ApiDcimVirtualChassisListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []string) ApiDcimVirtualChassisListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []string) ApiDcimVirtualChassisListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimVirtualChassisListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -111643,10 +114629,10 @@ type ApiDcimVirtualDeviceContextsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -112034,26 +115020,22 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TenantN(tenantN []string) ApiDc return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_extras.go b/api_extras.go index 2b89c130c0..2390af24a1 100644 --- a/api_extras.go +++ b/api_extras.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2262,10 +2262,6 @@ type ApiExtrasConfigContextsListRequest struct { regionN *[]string regionId *[]int32 regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 site *[]string siteN *[]string siteGroup *[]string @@ -2782,30 +2778,6 @@ func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtr return r } -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { - r.role = &role - return r -} - -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { - r.roleN = &roleN - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { - r.roleId = &roleId - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site (slug) func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { r.site = &site @@ -3901,50 +3873,6 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9880,6 +9808,7 @@ type ApiExtrasCustomFieldsListRequest struct { uiEditableN *ExtrasCustomFieldsListUiEditableParameter uiVisible *ExtrasCustomFieldsListUiVisibleParameter uiVisibleN *ExtrasCustomFieldsListUiVisibleParameter + unique *bool updatedByRequest *string validationMaximum *[]int32 validationMaximumEmpty *bool @@ -10467,6 +10396,11 @@ func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN ExtrasCustomFiel return r } +func (r ApiExtrasCustomFieldsListRequest) Unique(unique bool) ApiExtrasCustomFieldsListRequest { + r.unique = &unique + return r +} + func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -11605,6 +11539,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if r.uiVisibleN != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "") } + if r.unique != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unique", r.unique, "") + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -13061,13 +12998,13 @@ type ApiExtrasCustomLinksListRequest struct { weightN *[]int32 } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClass = &buttonClass return r } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClassN(buttonClassN ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClassN = &buttonClassN return r @@ -15765,6 +15702,7 @@ type ApiExtrasEventRulesListRequest struct { descriptionNiew *[]string descriptionNisw *[]string enabled *bool + eventType *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -15809,11 +15747,6 @@ type ApiExtrasEventRulesListRequest struct { q *string tag *[]string tagN *[]string - typeCreate *bool - typeDelete *bool - typeJobEnd *bool - typeJobStart *bool - typeUpdate *bool updatedByRequest *string } @@ -15972,6 +15905,11 @@ func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRule return r } +func (r ApiExtrasEventRulesListRequest) EventType(eventType []string) ApiExtrasEventRulesListRequest { + r.eventType = &eventType + return r +} + func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { r.id = &id return r @@ -16196,31 +16134,6 @@ func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesL return r } -func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest { - r.typeCreate = &typeCreate - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest { - r.typeDelete = &typeDelete - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest { - r.typeJobEnd = &typeJobEnd - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest { - r.typeJobStart = &typeJobStart - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest { - r.typeUpdate = &typeUpdate - return r -} - func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -16568,6 +16481,17 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } + if r.eventType != nil { + t := *r.eventType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16916,21 +16840,6 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } - if r.typeCreate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "") - } - if r.typeDelete != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "") - } - if r.typeJobEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "") - } - if r.typeJobStart != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "") - } - if r.typeUpdate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -23786,407 +23695,394 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - action *ExtrasObjectChangesListActionParameter - actionN *ExtrasObjectChangesListActionParameter - changedObjectId *[]int32 - changedObjectIdEmpty *bool - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 - changedObjectTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - objectRepr *[]string - objectReprEmpty *bool - objectReprIc *[]string - objectReprIe *[]string - objectReprIew *[]string - objectReprIsw *[]string - objectReprN *[]string - objectReprNic *[]string - objectReprNie *[]string - objectReprNiew *[]string - objectReprNisw *[]string - offset *int32 - ordering *string - q *string - relatedObjectId *[]int32 - relatedObjectIdEmpty *bool - relatedObjectIdGt *[]int32 - relatedObjectIdGte *[]int32 - relatedObjectIdLt *[]int32 - relatedObjectIdLte *[]int32 - relatedObjectIdN *[]int32 - relatedObjectType *int32 - relatedObjectTypeN *int32 - requestId *string - timeAfter *time.Time - timeBefore *time.Time - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - userName *[]string - userNameEmpty *bool - userNameIc *[]string - userNameIe *[]string - userNameIew *[]string - userNameIsw *[]string - userNameN *[]string - userNameNic *[]string - userNameNie *[]string - userNameNiew *[]string - userNameNisw *[]string -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.action = &action - return r +type ApiExtrasNotificationGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.actionN = &actionN +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkDestroyRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectId = &changedObjectId - return r +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkDestroyExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.changedObjectIdEmpty = &changedObjectIdEmpty - return r -} +/* +ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGt = &changedObjectIdGt - return r -} +Delete a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGte = &changedObjectIdGte - return r + @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, + } } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLt = &changedObjectIdLt - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLte = &changedObjectIdLte - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdN = &changedObjectIdN - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiExtrasObjectChangesListRequest { - r.changedObjectType = &changedObjectType - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeN = &changedObjectTypeN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeId = &changedObjectTypeId - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeIdN = &changedObjectTypeIdN - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChangesListRequest { - r.id = &id - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } -func (r ApiExtrasObjectChangesListRequest) IdEmpty(idEmpty bool) ApiExtrasObjectChangesListRequest { - r.idEmpty = &idEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) IdGt(idGt []int32) ApiExtrasObjectChangesListRequest { - r.idGt = &idGt - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) IdGte(idGte []int32) ApiExtrasObjectChangesListRequest { - r.idGte = &idGte - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) IdLt(idLt []int32) ApiExtrasObjectChangesListRequest { - r.idLt = &idLt - return r + return localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) IdLte(idLte []int32) ApiExtrasObjectChangesListRequest { - r.idLte = &idLte - return r +type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) IdN(idN []int32) ApiExtrasObjectChangesListRequest { - r.idN = &idN +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -// Number of results to return per page. -func (r ApiExtrasObjectChangesListRequest) Limit(limit int32) ApiExtrasObjectChangesListRequest { - r.limit = &limit - return r +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkPartialUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiExtrasObjectChangesListRequest { - r.objectRepr = &objectRepr - return r -} +/* +ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate -func (r ApiExtrasObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiExtrasObjectChangesListRequest { - r.objectReprEmpty = &objectReprEmpty - return r -} +Patch a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiExtrasObjectChangesListRequest { - r.objectReprIc = &objectReprIc - return r + @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, + } } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiExtrasObjectChangesListRequest { - r.objectReprIe = &objectReprIe - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -func (r ApiExtrasObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiExtrasObjectChangesListRequest { - r.objectReprIew = &objectReprIew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiExtrasObjectChangesListRequest { - r.objectReprIsw = &objectReprIsw - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiExtrasObjectChangesListRequest { - r.objectReprN = &objectReprN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiExtrasObjectChangesListRequest { - r.objectReprNic = &objectReprNic - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiExtrasObjectChangesListRequest { - r.objectReprNie = &objectReprNie - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiExtrasObjectChangesListRequest { - r.objectReprNiew = &objectReprNiew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiExtrasObjectChangesListRequest { - r.objectReprNisw = &objectReprNisw - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasObjectChangesListRequest) Offset(offset int32) ApiExtrasObjectChangesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasObjectChangesListRequest) Ordering(ordering string) ApiExtrasObjectChangesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesListRequest { - r.q = &q - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectId = &relatedObjectId - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdEmpty = &relatedObjectIdEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGt = &relatedObjectIdGt - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGte = &relatedObjectIdGte - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLt = &relatedObjectIdLt - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLte = &relatedObjectIdLte - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdN = &relatedObjectIdN - return r +type ApiExtrasNotificationGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectType = &relatedObjectType +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN - return r +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) RequestId(requestId string) ApiExtrasObjectChangesListRequest { - r.requestId = &requestId - return r -} +/* +ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate -func (r ApiExtrasObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiExtrasObjectChangesListRequest { - r.timeAfter = &timeAfter - return r -} +Put a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiExtrasObjectChangesListRequest { - r.timeBefore = &timeBefore - return r + @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, + } } -// User name -func (r ApiExtrasObjectChangesListRequest) User(user []string) ApiExtrasObjectChangesListRequest { - r.user = &user - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -// User name -func (r ApiExtrasObjectChangesListRequest) UserN(userN []string) ApiExtrasObjectChangesListRequest { - r.userN = &userN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserId(userId []*int32) ApiExtrasObjectChangesListRequest { - r.userId = &userId - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserIdN(userIdN []*int32) ApiExtrasObjectChangesListRequest { - r.userIdN = &userIdN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) UserName(userName []string) ApiExtrasObjectChangesListRequest { - r.userName = &userName - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiExtrasObjectChangesListRequest { - r.userNameEmpty = &userNameEmpty - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) UserNameIc(userNameIc []string) ApiExtrasObjectChangesListRequest { - r.userNameIc = &userNameIc - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) UserNameIe(userNameIe []string) ApiExtrasObjectChangesListRequest { - r.userNameIe = &userNameIe - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIew(userNameIew []string) ApiExtrasObjectChangesListRequest { - r.userNameIew = &userNameIew - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiExtrasObjectChangesListRequest { - r.userNameIsw = &userNameIsw - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameN(userNameN []string) ApiExtrasObjectChangesListRequest { - r.userNameN = &userNameN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNic(userNameNic []string) ApiExtrasObjectChangesListRequest { - r.userNameNic = &userNameNic - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNie(userNameNie []string) ApiExtrasObjectChangesListRequest { - r.userNameNie = &userNameNie - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiExtrasObjectChangesListRequest { - r.userNameNiew = &userNameNiew - return r +type ApiExtrasNotificationGroupsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiExtrasObjectChangesListRequest { - r.userNameNisw = &userNameNisw +func (r ApiExtrasNotificationGroupsCreateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsCreateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesListExecute(r) +func (r ApiExtrasNotificationGroupsCreateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsCreateExecute(r) } /* -ExtrasObjectChangesList Method for ExtrasObjectChangesList +ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate -Retrieve a list of recent changes. +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 ApiExtrasObjectChangesListRequest + @return ApiExtrasNotificationGroupsCreateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { - return ApiExtrasObjectChangesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest { + return ApiExtrasNotificationGroupsCreateRequest{ ApiService: a, ctx: ctx, } @@ -24194,563 +24090,280 @@ func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtra // Execute executes the request // -// @return PaginatedObjectChangeList -func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - if r.action != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.actionN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.changedObjectId != nil { - t := *r.changedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") } } - if r.changedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.changedObjectIdGt != nil { - t := *r.changedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.changedObjectIdGte != nil { - t := *r.changedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") - } - } - if r.changedObjectIdLt != nil { - t := *r.changedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.changedObjectIdLte != nil { - t := *r.changedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.changedObjectIdN != nil { - t := *r.changedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.changedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsDestroyExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest { + return ApiExtrasNotificationGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.changedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.changedObjectTypeId != nil { - t := *r.changedObjectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.changedObjectTypeIdN != nil { - t := *r.changedObjectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasNotificationGroupsListRequest) Limit(limit int32) ApiExtrasNotificationGroupsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasNotificationGroupsListRequest) Offset(offset int32) ApiExtrasNotificationGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasNotificationGroupsListRequest) Ordering(ordering string) ApiExtrasNotificationGroupsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasNotificationGroupsListRequest) Execute() (*PaginatedNotificationGroupList, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsListExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest { + return ApiExtrasNotificationGroupsListRequest{ + ApiService: a, + ctx: ctx, } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedNotificationGroupList +func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/extras/notification-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.objectRepr != nil { - t := *r.objectRepr - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } - if r.objectReprEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") - } - if r.objectReprIc != nil { - t := *r.objectReprIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") - } - } - if r.objectReprIe != nil { - t := *r.objectReprIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") - } - } - if r.objectReprIew != nil { - t := *r.objectReprIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") - } - } - if r.objectReprIsw != nil { - t := *r.objectReprIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") - } - } - if r.objectReprN != nil { - t := *r.objectReprN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") - } - } - if r.objectReprNic != nil { - t := *r.objectReprNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") - } - } - if r.objectReprNie != nil { - t := *r.objectReprNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") - } - } - if r.objectReprNiew != nil { - t := *r.objectReprNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") - } - } - if r.objectReprNisw != nil { - t := *r.objectReprNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectId != nil { - t := *r.relatedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") - } - } - if r.relatedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") - } - if r.relatedObjectIdGt != nil { - t := *r.relatedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") - } - } - if r.relatedObjectIdGte != nil { - t := *r.relatedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") - } - } - if r.relatedObjectIdLt != nil { - t := *r.relatedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") - } - } - if r.relatedObjectIdLte != nil { - t := *r.relatedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") - } - } - if r.relatedObjectIdN != nil { - t := *r.relatedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") - } - } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") - } - if r.requestId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") - } - if r.timeAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") - } - if r.timeBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.userName != nil { - t := *r.userName - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") - } - } - if r.userNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") - } - if r.userNameIc != nil { - t := *r.userNameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") - } - } - if r.userNameIe != nil { - t := *r.userNameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") - } - } - if r.userNameIew != nil { - t := *r.userNameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") - } - } - if r.userNameIsw != nil { - t := *r.userNameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") - } - } - if r.userNameN != nil { - t := *r.userNameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") - } - } - if r.userNameNic != nil { - t := *r.userNameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") - } - } - if r.userNameNie != nil { - t := *r.userNameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") - } - } - if r.userNameNiew != nil { - t := *r.userNameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") - } - } - if r.userNameNisw != nil { - t := *r.userNameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") - } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24820,27 +24433,33 @@ func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationGroupRequest *PatchedNotificationGroupRequest +} + +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) PatchedNotificationGroupRequest(patchedNotificationGroupRequest PatchedNotificationGroupRequest) ApiExtrasNotificationGroupsPartialUpdateRequest { + r.patchedNotificationGroupRequest = &patchedNotificationGroupRequest + return r } -func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsPartialUpdateExecute(r) } /* -ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve +ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate -Retrieve a list of recent changes. +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 object change. - @return ApiExtrasObjectChangesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { - return ApiExtrasObjectChangesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest { + return ApiExtrasNotificationGroupsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -24849,21 +24468,21 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id i // Execute executes the request // -// @return ObjectChange -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectChange + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -24871,7 +24490,7 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -24887,6 +24506,8 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedNotificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24938,119 +24559,56 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectTypesListRequest struct { +type ApiExtrasNotificationGroupsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - appLabel *string - id *int32 - limit *int32 - model *string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { - r.appLabel = &appLabel - return r -} - -func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { - r.id = &id - return r -} - -// Number of results to return per page. -func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { - r.limit = &limit - return r -} - -func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { - r.model = &model - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { - r.q = &q - return r + id int32 } -func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesListExecute(r) +func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsRetrieveExecute(r) } /* -ExtrasObjectTypesList Method for ExtrasObjectTypesList +ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve -Read-only list of ObjectTypes. +Get a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectTypesListRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { - return ApiExtrasObjectTypesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest { + return ApiExtrasNotificationGroupsRetrieveRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return PaginatedObjectTypeList -func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectTypeList + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") - } - if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25119,27 +24677,33 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsUpdateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsUpdateExecute(r) } /* -ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve +ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate -Read-only list of ObjectTypes. +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 object type. - @return ApiExtrasObjectTypesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { - return ApiExtrasObjectTypesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest { + return ApiExtrasNotificationGroupsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -25148,29 +24712,32 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int // Execute executes the request // -// @return ObjectType -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectType + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -25186,6 +24753,8 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25237,56 +24806,56 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkDestroyRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkDestroyRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +func (r ApiExtrasNotificationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkDestroyExecute(r) } /* -ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy +ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy -Delete a list of saved filter 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 ApiExtrasSavedFiltersBulkDestroyRequest + @return ApiExtrasNotificationsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { - return ApiExtrasSavedFiltersBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest { + return ApiExtrasNotificationsBulkDestroyRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25307,7 +24876,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25350,31 +24919,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkPartialUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkPartialUpdateExecute(r) } /* -ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate +ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate -Patch a list of saved filter 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 ApiExtrasSavedFiltersBulkPartialUpdateRequest + @return ApiExtrasNotificationsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest { + return ApiExtrasNotificationsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25382,27 +24951,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Conte // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25423,7 +24992,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25475,31 +25044,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +func (r ApiExtrasNotificationsBulkUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkUpdateExecute(r) } /* -ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate +ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate -Put a list of saved filter 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 ApiExtrasSavedFiltersBulkUpdateRequest + @return ApiExtrasNotificationsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { - return ApiExtrasSavedFiltersBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest { + return ApiExtrasNotificationsBulkUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25507,27 +25076,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) Api // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25548,7 +25117,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25600,31 +25169,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *SavedFilterRequest +type ApiExtrasNotificationsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *NotificationRequest } -func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsCreateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsCreateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +func (r ApiExtrasNotificationsCreateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsCreateExecute(r) } /* -ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate +ExtrasNotificationsCreate Method for ExtrasNotificationsCreate -Post a list of saved filter 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 ApiExtrasSavedFiltersCreateRequest + @return ApiExtrasNotificationsCreateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { - return ApiExtrasSavedFiltersCreateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest { + return ApiExtrasNotificationsCreateRequest{ ApiService: a, ctx: ctx, } @@ -25632,27 +25201,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtr // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25673,7 +25242,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25725,27 +25294,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersDestroyRequest struct { +type ApiExtrasNotificationsDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService id int32 } -func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsDestroyExecute(r) } /* -ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy +ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy -Delete a saved filter 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 saved filter. - @return ApiExtrasSavedFiltersDestroyRequest + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { - return ApiExtrasSavedFiltersDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest { + return ApiExtrasNotificationsDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -25753,19 +25322,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/notifications/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -25831,555 +25400,588 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - 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 +type ApiExtrasNotificationsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string } -func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { - r.created = &created +// Number of results to return per page. +func (r ApiExtrasNotificationsListRequest) Limit(limit int32) ApiExtrasNotificationsListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdEmpty = &createdEmpty +// The initial index from which to return the results. +func (r ApiExtrasNotificationsListRequest) Offset(offset int32) ApiExtrasNotificationsListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGt = &createdGt +// Which field to use when ordering the results. +func (r ApiExtrasNotificationsListRequest) Ordering(ordering string) ApiExtrasNotificationsListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGte = &createdGte - return r +func (r ApiExtrasNotificationsListRequest) Execute() (*PaginatedNotificationList, *http.Response, error) { + return r.ApiService.ExtrasNotificationsListExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLt = &createdLt - return r -} +/* +ExtrasNotificationsList Method for ExtrasNotificationsList -func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLte = &createdLte - return r -} +Get a list of notification objects. -func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdN = &createdN - return r + @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, + } } -func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { - r.createdByRequest = &createdByRequest - return r -} +// Execute executes the request +// +// @return PaginatedNotificationList +func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationList + ) -func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { - r.description = &description - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/" -func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIc = &descriptionIc - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIe = &descriptionIe - return r -} + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIew = &descriptionIew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { - r.descriptionN = &descriptionN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNic = &descriptionNic - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNie = &descriptionNie - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { - r.enabled = &enabled - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { - r.id = &id - return r +type ApiExtrasNotificationsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationRequest *PatchedNotificationRequest } -func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { - r.idEmpty = &idEmpty +func (r ApiExtrasNotificationsPartialUpdateRequest) PatchedNotificationRequest(patchedNotificationRequest PatchedNotificationRequest) ApiExtrasNotificationsPartialUpdateRequest { + r.patchedNotificationRequest = &patchedNotificationRequest return r } -func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { - r.idGt = &idGt - return r +func (r ApiExtrasNotificationsPartialUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsPartialUpdateExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { - r.idGte = &idGte - return r -} +/* +ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate -func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { - r.idLt = &idLt - return r -} +Patch a notification object. -func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { - r.idLte = &idLte - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest { + return ApiExtrasNotificationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { - r.idN = &idN - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdated = &lastUpdated - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedNotificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -// Number of results to return per page. -func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { - r.limit = &limit - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { - r.name = &name - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { - r.nameEmpty = &nameEmpty - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { - r.nameIc = &nameIc - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { - r.nameIe = &nameIe - return r +type ApiExtrasNotificationsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { - r.nameIew = &nameIew - return r +func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsRetrieveExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { - r.nameIsw = &nameIsw - return r -} +/* +ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve -func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { - r.nameN = &nameN - return r -} +Get a notification object. -func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { - r.nameNic = &nameNic - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest { + return ApiExtrasNotificationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { - r.nameNie = &nameNie - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { - r.nameNiew = &nameNiew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { - r.nameNisw = &nameNisw - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { - r.objectType = &objectType - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIc = &objectTypeIc - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIe = &objectTypeIe - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIew = &objectTypeIew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIsw = &objectTypeIsw - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { - r.objectTypeN = &objectTypeN - return r + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNic = &objectTypeNic - return r +type ApiExtrasNotificationsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationRequest *NotificationRequest } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNie = &objectTypeNie +func (r ApiExtrasNotificationsUpdateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNiew = &objectTypeNiew - return r +func (r ApiExtrasNotificationsUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsUpdateExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNisw = &objectTypeNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeId = &objectTypeId - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeIdN = &objectTypeIdN - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { - r.q = &q - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { - r.shared = &shared - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { - r.slug = &slug - return r -} +/* +ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate -func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { - r.slugEmpty = &slugEmpty - return r -} +Put a notification object. -func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { - r.slugIc = &slugIc - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest { + return ApiExtrasNotificationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { - r.slugIe = &slugIe - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { - r.slugIew = &slugIew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { - r.slugIsw = &slugIsw - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { - r.slugN = &slugN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + } -func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { - r.slugNic = &slugNic - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { - r.slugNie = &slugNie - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { - r.slugNiew = &slugNiew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { - r.slugNisw = &slugNisw - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { - r.usable = &usable - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { - r.user = &user - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { - r.userN = &userN - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { - r.userId = &userId - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { - r.userIdN = &userIdN - return r +type ApiExtrasObjectTypesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string } -func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { - r.weight = &weight +func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { + r.appLabel = &appLabel return r } -func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { - r.weightEmpty = &weightEmpty +func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { + r.id = &id return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { - r.weightGt = &weightGt +// Number of results to return per page. +func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { - r.weightGte = &weightGte +func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { + r.model = &model return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { - r.weightLt = &weightLt +// The initial index from which to return the results. +func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { - r.weightLte = &weightLte +// Which field to use when ordering the results. +func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { - r.weightN = &weightN +// Search +func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { + r.q = &q return r } -func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersListExecute(r) +func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesListExecute(r) } /* -ExtrasSavedFiltersList Method for ExtrasSavedFiltersList +ExtrasObjectTypesList Method for ExtrasObjectTypesList -Get a list of saved filter objects. +Read-only list of ObjectTypes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersListRequest + @return ApiExtrasObjectTypesListRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { - return ApiExtrasSavedFiltersListRequest{ +func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { + return ApiExtrasObjectTypesListRequest{ ApiService: a, ctx: ctx, } @@ -26387,783 +25989,3242 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtras // Execute executes the request // -// @return PaginatedSavedFilterList -func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { +// @return PaginatedObjectTypeList +func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList + localVarReturnValue *PaginatedObjectTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/object-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } + if r.appLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasObjectTypesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { + return ApiExtrasObjectTypesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } +} + +// Execute executes the request +// +// @return ObjectType +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + + localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { + return ApiExtrasSavedFiltersBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return nil, reportError("savedFilterRequest is required and must be specified") } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + + // to determine 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.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + return localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate + +Patch a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate + +Put a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { + return ApiExtrasSavedFiltersBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { + return ApiExtrasSavedFiltersCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { + return ApiExtrasSavedFiltersDestroyRequest{ + ApiService: a, + 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 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + 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 ApiExtrasSavedFiltersListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + shared *bool + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + updatedByRequest *string + usable *bool + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { + r.created = &created + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { + r.description = &description + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { + r.enabled = &enabled + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { + r.id = &id + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { + r.name = &name + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { + r.nameNisw = &nameNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { + r.objectType = &objectType + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIc = &objectTypeIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIe = &objectTypeIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIew = &objectTypeIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIsw = &objectTypeIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { + r.objectTypeN = &objectTypeN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNic = &objectTypeNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNie = &objectTypeNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNiew = &objectTypeNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNisw = &objectTypeNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeId = &objectTypeId + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeIdN = &objectTypeIdN + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { + r.q = &q + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { + r.shared = &shared + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { + r.slug = &slug + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { + r.slugN = &slugN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { + r.usable = &usable + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { + r.user = &user + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { + r.weight = &weight + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { + r.weightN = &weightN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersListExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { + return ApiExtrasSavedFiltersListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSavedFilterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + } + if r.objectTypeId != nil { + t := *r.objectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + } + } + if r.objectTypeIdN != nil { + t := *r.objectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.shared != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.usable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSavedFilterRequest *PatchedSavedFilterRequest +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { + r.patchedSavedFilterRequest = &patchedSavedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate + +Patch a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { + return ApiExtrasSavedFiltersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedSavedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +} + +/* +ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve + +Get a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { + return ApiExtrasSavedFiltersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +} + +/* +ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate + +Put a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { + return ApiExtrasSavedFiltersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService +} + +func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsCreateExecute(r) +} + +/* +ExtrasScriptsCreate Method for ExtrasScriptsCreate + +Post a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { + return ApiExtrasScriptsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string +} + +func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasScriptsDestroyExecute(r) +} + +/* +ExtrasScriptsDestroy Method for ExtrasScriptsDestroy + +Delete a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { + return ApiExtrasScriptsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + + return localVarHTTPResponse, nil +} + +type ApiExtrasScriptsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isExecutable *bool + limit *int32 + moduleId *[]int32 + moduleIdN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { + r.isExecutable = &isExecutable + return r +} + +// Number of results to return per page. +func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { + r.limit = &limit + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { + r.moduleId = &moduleId + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { + r.q = &q + return r +} + +func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { + return r.ApiService.ExtrasScriptsListExecute(r) +} + +/* +ExtrasScriptsList Method for ExtrasScriptsList + +Get a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsListRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { + return ApiExtrasScriptsListRequest{ + ApiService: a, + ctx: ctx, } - if r.objectTypeId != nil { - t := *r.objectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedScriptList +func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedScriptList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectTypeIdN != nil { - t := *r.objectTypeIdN + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.shared != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") } - if r.slug != nil { - t := *r.slug + if r.idGt != nil { + t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + if r.idGte != nil { + t := *r.idGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.idLt != nil { + t := *r.idLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.idLte != nil { + t := *r.idLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.idN != nil { + t := *r.idN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } + if r.isExecutable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.slugNie != nil { - t := *r.slugNie + if r.moduleId != nil { + t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.moduleIdN != nil { + t := *r.moduleIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.name != nil { + t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.usable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } - if r.userN != nil { - t := *r.userN + if r.nameIc != nil { + t := *r.nameIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") } } - if r.userId != nil { - t := *r.userId + if r.nameIe != nil { + t := *r.nameIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.userIdN != nil { - t := *r.userIdN + if r.nameIew != nil { + t := *r.nameIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") } - } - if r.weight != nil { - t := *r.weight + } + 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, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + if r.nameN != nil { + t := *r.nameN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") } } - if r.weightGte != nil { - t := *r.weightGte + if r.nameNic != nil { + t := *r.nameNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") } } - if r.weightLt != nil { - t := *r.weightLt + if r.nameNie != nil { + t := *r.nameNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") } } - if r.weightLte != nil { - t := *r.weightLte + if r.nameNiew != nil { + t := *r.nameNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } } - if r.weightN != nil { - t := *r.weightN + if r.nameNisw != nil { + t := *r.nameNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27232,33 +29293,33 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersPartialUpdateRequest struct { +type ApiExtrasScriptsPartialUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - patchedSavedFilterRequest *PatchedSavedFilterRequest + id string + patchedScriptInputRequest *PatchedScriptInputRequest } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { - r.patchedSavedFilterRequest = &patchedSavedFilterRequest +func (r ApiExtrasScriptsPartialUpdateRequest) PatchedScriptInputRequest(patchedScriptInputRequest PatchedScriptInputRequest) ApiExtrasScriptsPartialUpdateRequest { + r.patchedScriptInputRequest = &patchedScriptInputRequest return r } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) } /* -ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate +ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate -Patch a saved filter object. +Patch a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersPartialUpdateRequest + @param id + @return ApiExtrasScriptsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { - return ApiExtrasSavedFiltersPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { + return ApiExtrasScriptsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -27267,21 +29328,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27306,7 +29367,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedSavedFilterRequest + localVarPostBody = r.patchedScriptInputRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27358,27 +29419,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersRetrieveRequest struct { +type ApiExtrasScriptsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 + id string } -func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsRetrieveExecute(r) } /* -ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve +ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve -Get a saved filter object. +Get a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersRetrieveRequest + @param id + @return ApiExtrasScriptsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { - return ApiExtrasSavedFiltersRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { + return ApiExtrasScriptsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -27387,21 +29448,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id in // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27476,63 +29537,185 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersUpdateRequest struct { +type ApiExtrasScriptsUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - savedFilterRequest *SavedFilterRequest + id string + scriptInputRequest *ScriptInputRequest } -func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasScriptsUpdateRequest) ScriptInputRequest(scriptInputRequest ScriptInputRequest) ApiExtrasScriptsUpdateRequest { + r.scriptInputRequest = &scriptInputRequest return r } -func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsUpdateExecute(r) } /* -ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate +ExtrasScriptsUpdate Method for ExtrasScriptsUpdate -Put a saved filter object. +Put a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersUpdateRequest + @param id + @return ApiExtrasScriptsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { - return ApiExtrasSavedFiltersUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { + return ApiExtrasScriptsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.scriptInputRequest == nil { + return localVarReturnValue, nil, reportError("scriptInputRequest 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.scriptInputRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkDestroyRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest { + return ApiExtrasSubscriptionsBulkDestroyRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.subscriptionRequest == nil { + return nil, reportError("subscriptionRequest is required and must be specified") } // to determine the Content-Type header @@ -27545,7 +29728,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -27553,7 +29736,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27570,19 +29753,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -27590,40 +29773,37 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + return localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -type ApiExtrasScriptsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r } -func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsCreateExecute(r) +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkPartialUpdateExecute(r) } /* -ExtrasScriptsCreate Method for ExtrasScriptsCreate +ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate -Post a list of script objects. +Patch a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsCreateRequest + @return ApiExtrasSubscriptionsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { - return ApiExtrasScriptsCreateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + return ApiExtrasSubscriptionsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -27631,28 +29811,31 @@ func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScr // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27668,6 +29851,8 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27719,55 +29904,63 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasScriptsDestroyExecute(r) +func (r ApiExtrasSubscriptionsBulkUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkUpdateExecute(r) } /* -ExtrasScriptsDestroy Method for ExtrasScriptsDestroy +ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate -Delete a script object. +Put a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsDestroyRequest + @return ApiExtrasSubscriptionsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { - return ApiExtrasScriptsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest { + return ApiExtrasSubscriptionsBulkUpdateRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { +// +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27776,13 +29969,15 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27799,207 +29994,66 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasScriptsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isExecutable *bool - limit *int32 - moduleId *[]int32 - moduleIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { - r.id = &id - return r -} - -func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { - r.isExecutable = &isExecutable - return r -} - -// Number of results to return per page. -func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { - r.limit = &limit - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { - r.moduleId = &moduleId - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { - r.nameNic = &nameNic - return r -} + return localVarReturnValue, nil, err + } -func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { - r.nameNie = &nameNie - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { - r.nameNiew = &nameNiew - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { - r.nameNisw = &nameNisw - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// The initial index from which to return the results. -func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { - r.offset = &offset - return r + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -// Which field to use when ordering the results. -func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { - r.ordering = &ordering - return r +type ApiExtrasSubscriptionsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *SubscriptionRequest } -// Search -func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { - r.q = &q +func (r ApiExtrasSubscriptionsCreateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsCreateRequest { + r.subscriptionRequest = &subscriptionRequest return r } -func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { - return r.ApiService.ExtrasScriptsListExecute(r) +func (r ApiExtrasSubscriptionsCreateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsCreateExecute(r) } /* -ExtrasScriptsList Method for ExtrasScriptsList +ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate -Get a list of script objects. +Post a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsListRequest + @return ApiExtrasSubscriptionsCreateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { - return ApiExtrasScriptsListRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest { + return ApiExtrasSubscriptionsCreateRequest{ ApiService: a, ctx: ctx, } @@ -28007,235 +30061,274 @@ func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScrip // Execute executes the request // -// @return PaginatedScriptList -func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedScriptList + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.subscriptionRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.isExecutable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.moduleId != nil { - t := *r.moduleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.moduleIdN != nil { - t := *r.moduleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsDestroyExecute(r) +} + +/* +ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy + +Delete a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest { + return ApiExtrasSubscriptionsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasSubscriptionsListRequest) Limit(limit int32) ApiExtrasSubscriptionsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSubscriptionsListRequest) Offset(offset int32) ApiExtrasSubscriptionsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSubscriptionsListRequest) Ordering(ordering string) ApiExtrasSubscriptionsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasSubscriptionsListRequest) Execute() (*PaginatedSubscriptionList, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsListExecute(r) +} + +/* +ExtrasSubscriptionsList Method for ExtrasSubscriptionsList + +Get a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsListRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest { + return ApiExtrasSubscriptionsListRequest{ + ApiService: a, + ctx: ctx, } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedSubscriptionList +func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/subscriptions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") @@ -28243,9 +30336,6 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28314,27 +30404,33 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSubscriptionRequest *PatchedSubscriptionRequest } -func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) +func (r ApiExtrasSubscriptionsPartialUpdateRequest) PatchedSubscriptionRequest(patchedSubscriptionRequest PatchedSubscriptionRequest) ApiExtrasSubscriptionsPartialUpdateRequest { + r.patchedSubscriptionRequest = &patchedSubscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsPartialUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsPartialUpdateExecute(r) } /* -ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate +ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate -Patch a script object. +Patch a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsPartialUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { - return ApiExtrasScriptsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest { + return ApiExtrasSubscriptionsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -28343,21 +30439,21 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id st // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28365,7 +30461,7 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28381,6 +30477,8 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedSubscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28432,27 +30530,27 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsRetrieveRequest struct { +type ApiExtrasSubscriptionsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string + id int32 } -func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsRetrieveExecute(r) +func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r) } /* -ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve +ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve -Get a script object. +Get a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsRetrieveRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { - return ApiExtrasScriptsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest { + return ApiExtrasSubscriptionsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -28461,21 +30559,21 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28550,27 +30648,33 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + subscriptionRequest *SubscriptionRequest } -func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsUpdateExecute(r) +func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsUpdateExecute(r) } /* -ExtrasScriptsUpdate Method for ExtrasScriptsUpdate +ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate -Put a script object. +Put a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { - return ApiExtrasScriptsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest { + return ApiExtrasSubscriptionsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -28579,29 +30683,32 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) A // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28617,6 +30724,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/api_ipam.go b/api_ipam.go index 0e906f7521..08a835d003 100644 --- a/api_ipam.go +++ b/api_ipam.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -676,10 +676,10 @@ type ApiIpamAggregatesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -971,26 +971,22 @@ func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregate return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []string) ApiIpamAggregatesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAggregatesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAggregatesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAggregatesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3006,10 +3002,10 @@ type ApiIpamAsnRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3435,26 +3431,22 @@ func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesL return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5491,10 +5483,10 @@ type ApiIpamAsnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5823,26 +5815,22 @@ func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -11794,10 +11782,10 @@ type ApiIpamIpAddressesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12275,26 +12263,22 @@ func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddres return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpAddressesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpAddressesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpAddressesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpAddressesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14756,10 +14740,10 @@ type ApiIpamIpRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -15087,26 +15071,22 @@ func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesLis return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -17475,20 +17455,20 @@ type ApiIpamPrefixesListRequest struct { presentInVrf *string presentInVrfId *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -17497,10 +17477,10 @@ type ApiIpamPrefixesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -17836,26 +17816,22 @@ func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) Region(region []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) Region(region []string) ApiIpamPrefixesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) RegionN(regionN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionN(regionN []string) ApiIpamPrefixesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionId(regionId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionId(regionId []string) ApiIpamPrefixesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []string) ApiIpamPrefixesListRequest { r.regionIdN = ®ionIdN return r } @@ -17896,26 +17872,22 @@ func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListReq return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []string) ApiIpamPrefixesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []string) ApiIpamPrefixesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []string) ApiIpamPrefixesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamPrefixesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -17966,26 +17938,22 @@ func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesLis return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []string) ApiIpamPrefixesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamPrefixesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamPrefixesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamPrefixesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -24459,10 +24427,10 @@ type ApiIpamRouteTargetsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -24835,26 +24803,22 @@ func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTa return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []string) ApiIpamRouteTargetsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamRouteTargetsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28663,10 +28627,6 @@ type ApiIpamServicesListRequest struct { ipAddressN *[]string ipAddressId *[]int32 ipAddressIdN *[]int32 - ipaddress *[]string - ipaddressN *[]string - ipaddressId *[]int32 - ipaddressIdN *[]int32 lastUpdated *[]time.Time lastUpdatedEmpty *[]time.Time lastUpdatedGt *[]time.Time @@ -28880,30 +28840,6 @@ func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamSe return r } -// IP address -func (r ApiIpamServicesListRequest) Ipaddress(ipaddress []string) ApiIpamServicesListRequest { - r.ipaddress = &ipaddress - return r -} - -// IP address -func (r ApiIpamServicesListRequest) IpaddressN(ipaddressN []string) ApiIpamServicesListRequest { - r.ipaddressN = &ipaddressN - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressId(ipaddressId []int32) ApiIpamServicesListRequest { - r.ipaddressId = &ipaddressId - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressIdN(ipaddressIdN []int32) ApiIpamServicesListRequest { - r.ipaddressIdN = &ipaddressIdN - return r -} - func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { r.lastUpdated = &lastUpdated return r @@ -29470,50 +29406,6 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "multi") } } - if r.ipaddress != nil { - t := *r.ipaddress - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") - } - } - if r.ipaddressN != nil { - t := *r.ipaddressN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") - } - } - if r.ipaddressId != nil { - t := *r.ipaddressId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") - } - } - if r.ipaddressIdN != nil { - t := *r.ipaddressIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") - } - } if r.lastUpdated != nil { t := *r.lastUpdated if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -31084,7 +30976,7 @@ type ApiIpamVlanGroupsListRequest struct { ApiService *IpamAPIService cluster *int32 clusterGroup *int32 - clustergroup *int32 + containsVid *float32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -31120,20 +31012,6 @@ type ApiIpamVlanGroupsListRequest struct { lastUpdatedN *[]time.Time limit *int32 location *int32 - maxVid *[]int32 - maxVidEmpty *bool - maxVidGt *[]int32 - maxVidGte *[]int32 - maxVidLt *[]int32 - maxVidLte *[]int32 - maxVidN *[]int32 - minVid *[]int32 - minVidEmpty *bool - minVidGt *[]int32 - minVidGte *[]int32 - minVidLt *[]int32 - minVidLte *[]int32 - minVidN *[]int32 modifiedByRequest *string name *[]string nameEmpty *bool @@ -31162,7 +31040,6 @@ type ApiIpamVlanGroupsListRequest struct { scopeTypeN *string site *int32 siteGroup *int32 - sitegroup *int32 slug *[]string slugEmpty *bool slugIc *[]string @@ -31189,8 +31066,8 @@ func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVl return r } -func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest { - r.clustergroup = &clustergroup +func (r ApiIpamVlanGroupsListRequest) ContainsVid(containsVid float32) ApiIpamVlanGroupsListRequest { + r.containsVid = &containsVid return r } @@ -31370,76 +31247,6 @@ func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroups return r } -func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsListRequest { - r.maxVid = &maxVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.maxVidEmpty = &maxVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGt = &maxVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGte(maxVidGte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGte = &maxVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLt(maxVidLt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLt = &maxVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLte(maxVidLte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLte = &maxVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidN(maxVidN []int32) ApiIpamVlanGroupsListRequest { - r.maxVidN = &maxVidN - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsListRequest { - r.minVid = &minVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidEmpty(minVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.minVidEmpty = &minVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGt(minVidGt []int32) ApiIpamVlanGroupsListRequest { - r.minVidGt = &minVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGte(minVidGte []int32) ApiIpamVlanGroupsListRequest { - r.minVidGte = &minVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLt(minVidLt []int32) ApiIpamVlanGroupsListRequest { - r.minVidLt = &minVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLte(minVidLte []int32) ApiIpamVlanGroupsListRequest { - r.minVidLte = &minVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroupsListRequest { - r.minVidN = &minVidN - return r -} - func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -31583,11 +31390,6 @@ func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGrou return r } -func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest { - r.sitegroup = &sitegroup - return r -} - func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { r.slug = &slug return r @@ -31705,8 +31507,8 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.clusterGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "") } - if r.clustergroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "clustergroup", r.clustergroup, "") + if r.containsVid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains_vid", r.containsVid, "") } if r.created != nil { t := *r.created @@ -32053,144 +31855,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.location != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "") } - if r.maxVid != nil { - t := *r.maxVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", t, "multi") - } - } - if r.maxVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__empty", r.maxVidEmpty, "") - } - if r.maxVidGt != nil { - t := *r.maxVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") - } - } - if r.maxVidGte != nil { - t := *r.maxVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") - } - } - if r.maxVidLt != nil { - t := *r.maxVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") - } - } - if r.maxVidLte != nil { - t := *r.maxVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") - } - } - if r.maxVidN != nil { - t := *r.maxVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") - } - } - if r.minVid != nil { - t := *r.minVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") - } - } - if r.minVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") - } - if r.minVidGt != nil { - t := *r.minVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") - } - } - if r.minVidGte != nil { - t := *r.minVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") - } - } - if r.minVidLt != nil { - t := *r.minVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") - } - } - if r.minVidLte != nil { - t := *r.minVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") - } - } - if r.minVidN != nil { - t := *r.minVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") - } - } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -32403,9 +32067,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.siteGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "") } - if r.sitegroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sitegroup", r.sitegroup, "") - } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33642,20 +33303,20 @@ type ApiIpamVlansListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -33664,10 +33325,10 @@ type ApiIpamVlansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -33992,26 +33653,22 @@ func (r ApiIpamVlansListRequest) Q(q string) ApiIpamVlansListRequest { return r } -// Region (slug) -func (r ApiIpamVlansListRequest) Region(region []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) Region(region []string) ApiIpamVlansListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamVlansListRequest) RegionN(regionN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionN(regionN []string) ApiIpamVlansListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionId(regionId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionId(regionId []string) ApiIpamVlansListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []string) ApiIpamVlansListRequest { r.regionIdN = ®ionIdN return r } @@ -34052,26 +33709,22 @@ func (r ApiIpamVlansListRequest) SiteN(siteN []string) ApiIpamVlansListRequest { return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []string) ApiIpamVlansListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []string) ApiIpamVlansListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []string) ApiIpamVlansListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamVlansListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -34122,26 +33775,22 @@ func (r ApiIpamVlansListRequest) TenantN(tenantN []string) ApiIpamVlansListReque return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []string) ApiIpamVlansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -36294,10 +35943,10 @@ type ApiIpamVrfsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -36682,26 +36331,22 @@ func (r ApiIpamVrfsListRequest) TenantN(tenantN []string) ApiIpamVrfsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []string) ApiIpamVrfsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVrfsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVrfsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVrfsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_schema.go b/api_schema.go index 5394105aa6..161765a881 100644 --- a/api_schema.go +++ b/api_schema.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_status.go b/api_status.go index 9f266f5234..6391bfcf55 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tenancy.go b/api_tenancy.go index 0b17b4c3a9..33122a720c 100644 --- a/api_tenancy.go +++ b/api_tenancy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -631,10 +631,10 @@ type ApiTenancyContactAssignmentsListRequest struct { createdLte *[]time.Time createdN *[]time.Time createdByRequest *string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -664,8 +664,8 @@ type ApiTenancyContactAssignmentsListRequest struct { objectTypeIdN *int32 offset *int32 ordering *string - priority *TenancyContactAssignmentsListPriorityParameter - priorityN *TenancyContactAssignmentsListPriorityParameter + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter q *string role *[]string roleN *[]string @@ -728,26 +728,22 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Group(group []string) ApiTenancyContactAssignmentsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []string) ApiTenancyContactAssignmentsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []string) ApiTenancyContactAssignmentsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactAssignmentsListRequest { r.groupIdN = &groupIdN return r } @@ -901,13 +897,13 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priority = &priority return r } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priorityN = &priorityN return r } @@ -2499,10 +2495,10 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta type ApiTenancyContactGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -2572,26 +2568,22 @@ type ApiTenancyContactGroupsListRequest struct { updatedByRequest *string } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest { r.ancestor = &ancestor return r } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyContactGroupsListRequest { r.ancestorN = &ancestorN return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyContactGroupsListRequest { r.ancestorId = &ancestorId return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyContactGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -6820,10 +6812,10 @@ type ApiTenancyContactsListRequest struct { emailNie *[]string emailNiew *[]string emailNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -7097,26 +7089,22 @@ func (r ApiTenancyContactsListRequest) EmailNisw(emailNisw []string) ApiTenancyC return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) Group(group []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) Group(group []string) ApiTenancyContactsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) GroupN(groupN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupN(groupN []string) ApiTenancyContactsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupId(groupId []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupId(groupId []string) ApiTenancyContactsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactsListRequest { r.groupIdN = &groupIdN return r } @@ -9635,10 +9623,10 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant type ApiTenancyTenantGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -9708,26 +9696,22 @@ type ApiTenancyTenantGroupsListRequest struct { updatedByRequest *string } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest { r.ancestor = &ancestor return r } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyTenantGroupsListRequest { r.ancestorN = &ancestorN return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyTenantGroupsListRequest { r.ancestorId = &ancestorId return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyTenantGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -11849,8 +11833,8 @@ type ApiTenancyTenantsListRequest struct { ApiService *TenancyAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -11872,10 +11856,10 @@ type ApiTenancyTenantsListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -11934,14 +11918,12 @@ func (r ApiTenancyTenantsListRequest) ContactN(contactN []int32) ApiTenancyTenan return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []string) ApiTenancyTenantsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []string) ApiTenancyTenantsListRequest { r.contactGroupN = &contactGroupN return r } @@ -12053,26 +12035,22 @@ func (r ApiTenancyTenantsListRequest) DescriptionNisw(descriptionNisw []string) return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) Group(group []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) Group(group []string) ApiTenancyTenantsListRequest { r.group = &group return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) GroupN(groupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupN(groupN []string) ApiTenancyTenantsListRequest { r.groupN = &groupN return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupId(groupId []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupId(groupId []string) ApiTenancyTenantsListRequest { r.groupId = &groupId return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []string) ApiTenancyTenantsListRequest { r.groupIdN = &groupIdN return r } diff --git a/api_users.go b/api_users.go index f872d1a93a..cd750c4592 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -733,45 +733,47 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - userId *[]int32 - userIdN *[]int32 + ctx context.Context + ApiService *UsersAPIService + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + userId *[]int32 + userIdN *[]int32 } func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest { @@ -925,6 +927,18 @@ func (r ApiUsersGroupsListRequest) NameNisw(nameNisw []string) ApiUsersGroupsLis return r } +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersGroupsListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersGroupsListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersGroupsListRequest) Offset(offset int32) ApiUsersGroupsListRequest { r.offset = &offset @@ -1306,6 +1320,28 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6303,86 +6339,88 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersAPIService - dateJoined *[]time.Time - dateJoinedEmpty *bool - dateJoinedGt *[]time.Time - dateJoinedGte *[]time.Time - dateJoinedLt *[]time.Time - dateJoinedLte *[]time.Time - dateJoinedN *[]time.Time - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - firstName *[]string - firstNameEmpty *bool - firstNameIc *[]string - firstNameIe *[]string - firstNameIew *[]string - firstNameIsw *[]string - firstNameN *[]string - firstNameNic *[]string - firstNameNie *[]string - firstNameNiew *[]string - firstNameNisw *[]string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - isSuperuser *bool - lastLogin *[]time.Time - lastLoginEmpty *bool - lastLoginGt *[]time.Time - lastLoginGte *[]time.Time - lastLoginLt *[]time.Time - lastLoginLte *[]time.Time - lastLoginN *[]time.Time - lastName *[]string - lastNameEmpty *bool - lastNameIc *[]string - lastNameIe *[]string - lastNameIew *[]string - lastNameIsw *[]string - lastNameN *[]string - lastNameNic *[]string - lastNameNie *[]string - lastNameNiew *[]string - lastNameNisw *[]string - limit *int32 - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + ctx context.Context + ApiService *UsersAPIService + dateJoined *[]time.Time + dateJoinedEmpty *bool + dateJoinedGt *[]time.Time + dateJoinedGte *[]time.Time + dateJoinedLt *[]time.Time + dateJoinedLte *[]time.Time + dateJoinedN *[]time.Time + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + firstName *[]string + firstNameEmpty *bool + firstNameIc *[]string + firstNameIe *[]string + firstNameIew *[]string + firstNameIsw *[]string + firstNameN *[]string + firstNameNic *[]string + firstNameNie *[]string + firstNameNiew *[]string + firstNameNisw *[]string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastLogin *[]time.Time + lastLoginEmpty *bool + lastLoginGt *[]time.Time + lastLoginGte *[]time.Time + lastLoginLt *[]time.Time + lastLoginLte *[]time.Time + lastLoginN *[]time.Time + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + username *[]string + usernameEmpty *bool + usernameIc *[]string + usernameIe *[]string + usernameIew *[]string + usernameIsw *[]string + usernameN *[]string + usernameNic *[]string + usernameNie *[]string + usernameNiew *[]string + usernameNisw *[]string } func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest { @@ -6700,6 +6738,18 @@ func (r ApiUsersUsersListRequest) Limit(limit int32) ApiUsersUsersListRequest { return r } +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersUsersListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersUsersListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersUsersListRequest) Offset(offset int32) ApiUsersUsersListRequest { r.offset = &offset @@ -7428,6 +7478,28 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } diff --git a/api_virtualization.go b/api_virtualization.go index 2216c43f9d..62ae7138e4 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -623,8 +623,8 @@ type ApiVirtualizationClusterGroupsListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -704,14 +704,12 @@ func (r ApiVirtualizationClusterGroupsListRequest) ContactN(contactN []int32) Ap return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -4867,8 +4865,8 @@ type ApiVirtualizationClustersListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -4924,16 +4922,16 @@ type ApiVirtualizationClustersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -4942,10 +4940,10 @@ type ApiVirtualizationClustersListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -4967,14 +4965,12 @@ func (r ApiVirtualizationClustersListRequest) ContactN(contactN []int32) ApiVirt return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClustersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClustersListRequest { r.contactGroupN = &contactGroupN return r } @@ -5264,26 +5260,22 @@ func (r ApiVirtualizationClustersListRequest) Q(q string) ApiVirtualizationClust return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) Region(region []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) Region(region []string) ApiVirtualizationClustersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) RegionN(regionN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionN(regionN []string) ApiVirtualizationClustersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionId(regionId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionId(regionId []string) ApiVirtualizationClustersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []string) ApiVirtualizationClustersListRequest { r.regionIdN = ®ionIdN return r } @@ -5300,26 +5292,22 @@ func (r ApiVirtualizationClustersListRequest) SiteN(siteN []string) ApiVirtualiz return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []string) ApiVirtualizationClustersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationClustersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationClustersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationClustersListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -5368,26 +5356,22 @@ func (r ApiVirtualizationClustersListRequest) TenantN(tenantN []string) ApiVirtu return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationClustersListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationClustersListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationClustersListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationClustersListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -12067,8 +12051,8 @@ type ApiVirtualizationVirtualMachinesListRequest struct { configTemplateIdN *[]*int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12165,20 +12149,31 @@ type ApiVirtualizationVirtualMachinesListRequest struct { primaryIp6Id *[]int32 primaryIp6IdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]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 *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -12187,10 +12182,10 @@ type ApiVirtualizationVirtualMachinesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12306,14 +12301,12 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ContactN(contactN []int32) return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroupN = &contactGroupN return r } @@ -12818,26 +12811,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizati return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []string) ApiVirtualizationVirtualMachinesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []string) ApiVirtualizationVirtualMachinesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionIdN = ®ionIdN return r } @@ -12866,6 +12855,61 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) A return r } +func (r ApiVirtualizationVirtualMachinesListRequest) Serial(serial []string) ApiVirtualizationVirtualMachinesListRequest { + r.serial = &serial + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialEmpty(serialEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.serialEmpty = &serialEmpty + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIc(serialIc []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIc = &serialIc + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIe(serialIe []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIe = &serialIe + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIew(serialIew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIew = &serialIew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIsw(serialIsw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIsw = &serialIsw + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialN(serialN []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialN = &serialN + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNic(serialNic []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNic = &serialNic + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNie(serialNie []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNie = &serialNie + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNiew(serialNiew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNiew = &serialNiew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNisw(serialNisw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNisw = &serialNisw + return r +} + // Site (slug) func (r ApiVirtualizationVirtualMachinesListRequest) Site(site []string) ApiVirtualizationVirtualMachinesListRequest { r.site = &site @@ -12878,26 +12922,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) SiteN(siteN []string) ApiVi return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -12946,26 +12986,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TenantN(tenantN []string) A return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14328,6 +14364,119 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") } } + if r.serial != nil { + t := *r.serial + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + } + } + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + } + if r.serialIc != nil { + t := *r.serialIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + } + } + if r.serialIe != nil { + t := *r.serialIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + } + } + if r.serialIew != nil { + t := *r.serialIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + } + } + if r.serialIsw != nil { + t := *r.serialIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + } + } + if r.serialN != nil { + t := *r.serialN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + } + } + if r.serialNic != nil { + t := *r.serialNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + } + } + if r.serialNie != nil { + t := *r.serialNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + } + } + if r.serialNiew != nil { + t := *r.serialNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + } + } + if r.serialNisw != nil { + t := *r.serialNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_vpn.go b/api_vpn.go index 6893f11ad3..b22bce11fd 100644 --- a/api_vpn.go +++ b/api_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -685,10 +685,6 @@ type ApiVpnIkePoliciesListRequest struct { presharedKeyNie *string presharedKeyNiew *string presharedKeyNisw *string - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -1020,26 +1016,6 @@ func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) return r } -func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest { - r.proposal = &proposal - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest { - r.proposalN = &proposalN - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest { - r.proposalId = &proposalId - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest { - r.proposalIdN = &proposalIdN - return r -} - // Search func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { r.q = &q @@ -1672,50 +1648,6 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if r.presharedKeyNisw != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "") } - if r.proposal != nil { - t := *r.proposal - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") - } - } - if r.proposalN != nil { - t := *r.proposalN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") - } - } - if r.proposalId != nil { - t := *r.proposalId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") - } - } - if r.proposalIdN != nil { - t := *r.proposalIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") - } - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -5068,10 +5000,6 @@ type ApiVpnIpsecPoliciesListRequest struct { ordering *string pfsGroup *[]*int32 pfsGroupN *[]*int32 - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -5353,26 +5281,6 @@ func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpse return r } -func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest { - r.proposal = &proposal - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest { - r.proposalN = &proposalN - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalId = &proposalId - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalIdN = &proposalIdN - return r -} - // Search func (r ApiVpnIpsecPoliciesListRequest) Q(q string) ApiVpnIpsecPoliciesListRequest { r.q = &q @@ -5965,50 +5873,6 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi") } } - if r.proposal != nil { - t := *r.proposal - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") - } - } - if r.proposalN != nil { - t := *r.proposalN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") - } - } - if r.proposalId != nil { - t := *r.proposalId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") - } - } - if r.proposalIdN != nil { - t := *r.proposalIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") - } - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -13702,10 +13566,10 @@ type ApiVpnL2vpnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -14122,26 +13986,22 @@ func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListReque return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []string) ApiVpnL2vpnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnL2vpnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnL2vpnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnL2vpnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -20203,10 +20063,10 @@ type ApiVpnTunnelsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 tunnelId *[]int32 @@ -20558,26 +20418,22 @@ func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListReq return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []string) ApiVpnTunnelsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnTunnelsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnTunnelsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnTunnelsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_wireless.go b/api_wireless.go index ac16ccf584..cf2ee2700f 100644 --- a/api_wireless.go +++ b/api_wireless.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -621,10 +621,10 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele type ApiWirelessWirelessLanGroupsListRequest struct { ctx context.Context ApiService *WirelessAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -694,22 +694,22 @@ type ApiWirelessWirelessLanGroupsListRequest struct { updatedByRequest *string } -func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -2859,10 +2859,10 @@ type ApiWirelessWirelessLansListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -2901,10 +2901,10 @@ type ApiWirelessWirelessLansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3082,22 +3082,22 @@ func (r ApiWirelessWirelessLansListRequest) DescriptionNisw(descriptionNisw []st return r } -func (r ApiWirelessWirelessLansListRequest) Group(group []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) Group(group []string) ApiWirelessWirelessLansListRequest { r.group = &group return r } -func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []string) ApiWirelessWirelessLansListRequest { r.groupN = &groupN return r } -func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []string) ApiWirelessWirelessLansListRequest { r.groupId = &groupId return r } -func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []string) ApiWirelessWirelessLansListRequest { r.groupIdN = &groupIdN return r } @@ -3298,26 +3298,22 @@ func (r ApiWirelessWirelessLansListRequest) TenantN(tenantN []string) ApiWireles return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5309,6 +5305,15 @@ type ApiWirelessWirelessLinksListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string + distance *[]float64 + distanceEmpty *bool + distanceGt *[]float64 + distanceGte *[]float64 + distanceLt *[]float64 + distanceLte *[]float64 + distanceN *[]float64 + distanceUnit *WirelessWirelessLinksListDistanceUnitParameter + distanceUnitN *WirelessWirelessLinksListDistanceUnitParameter id *[]int32 idEmpty *bool idGt *[]int32 @@ -5349,10 +5354,10 @@ type ApiWirelessWirelessLinksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5528,6 +5533,53 @@ func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []s return r } +func (r ApiWirelessWirelessLinksListRequest) Distance(distance []float64) ApiWirelessWirelessLinksListRequest { + r.distance = &distance + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceEmpty(distanceEmpty bool) ApiWirelessWirelessLinksListRequest { + r.distanceEmpty = &distanceEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGt(distanceGt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGt = &distanceGt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGte(distanceGte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGte = &distanceGte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLt(distanceLt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLt = &distanceLt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLte(distanceLte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLte = &distanceLte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceN(distanceN []float64) ApiWirelessWirelessLinksListRequest { + r.distanceN = &distanceN + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnit(distanceUnit WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnit = &distanceUnit + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnitN(distanceUnitN WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnitN = &distanceUnitN + return r +} + func (r ApiWirelessWirelessLinksListRequest) Id(id []int32) ApiWirelessWirelessLinksListRequest { r.id = &id return r @@ -5734,26 +5786,22 @@ func (r ApiWirelessWirelessLinksListRequest) TenantN(tenantN []string) ApiWirele return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLinksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -6166,6 +6214,81 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } + if r.distance != nil { + t := *r.distance + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "multi") + } + } + if r.distanceEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "") + } + if r.distanceGt != nil { + t := *r.distanceGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "multi") + } + } + if r.distanceGte != nil { + t := *r.distanceGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "multi") + } + } + if r.distanceLt != nil { + t := *r.distanceLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "multi") + } + } + if r.distanceLte != nil { + t := *r.distanceLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "multi") + } + } + if r.distanceN != nil { + t := *r.distanceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "multi") + } + } + if r.distanceUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "") + } + if r.distanceUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit__n", r.distanceUnitN, "") + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/client.go b/client.go index 7ced10a114..80c533f632 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the NetBox REST API API v4.0.3 (4.0) +// APIClient manages communication with the NetBox REST API API v4.1.1 (4.1) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index e65a51b2fa..82caa23f4a 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "go-netbox/4.0.3", + UserAgent: "go-netbox/4.1.1", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/ASN.md b/docs/ASN.md index fed0cdda30..730b7346ad 100644 --- a/docs/ASN.md +++ b/docs/ASN.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIR**](RIR.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIR**](BriefRIR.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewASN -`func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` +`func NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` NewASN instantiates a new ASN object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ASN) GetDisplay() string` @@ -120,20 +141,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASN) GetRir() RIR` +`func (o *ASN) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASN) GetRirOk() (*RIR, bool)` +`func (o *ASN) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASN) SetRir(v RIR)` +`func (o *ASN) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -155,20 +176,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASN) GetTenant() Tenant` +`func (o *ASN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASN) GetTenantOk() (*Tenant, bool)` +`func (o *ASN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASN) SetTenant(v Tenant)` +`func (o *ASN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRange.md b/docs/ASNRange.md index 8efc8ef064..5158cf9e40 100644 --- a/docs/ASNRange.md +++ b/docs/ASNRange.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIR**](RIR.md) | | +**Rir** | [**BriefRIR**](BriefRIR.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewASNRange -`func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` +`func NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` NewASNRange instantiates a new ASNRange object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASNRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASNRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASNRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ASNRange) GetDisplay() string` @@ -141,20 +162,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRange) GetRir() RIR` +`func (o *ASNRange) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRange) GetRirOk() (*RIR, bool)` +`func (o *ASNRange) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRange) SetRir(v RIR)` +`func (o *ASNRange) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -201,20 +222,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRange) GetTenant() Tenant` +`func (o *ASNRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRange) GetTenantOk() (*Tenant, bool)` +`func (o *ASNRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRange) SetTenant(v Tenant)` +`func (o *ASNRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRangeRequest.md b/docs/ASNRangeRequest.md index c7b5e284f0..1c1f5dd354 100644 --- a/docs/ASNRangeRequest.md +++ b/docs/ASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewASNRangeRequest -`func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64, ) *ASNRangeRequest` +`func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64, ) *ASNRangeRequest` NewASNRangeRequest instantiates a new ASNRangeRequest object This constructor will assign default values to properties that have it defined, @@ -75,20 +75,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRangeRequest) GetRir() RIRRequest` +`func (o *ASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRangeRequest) SetRir(v RIRRequest)` +`func (o *ASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -135,20 +135,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRangeRequest) GetTenant() TenantRequest` +`func (o *ASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRequest.md b/docs/ASNRequest.md index c82eb08301..ef24115a1c 100644 --- a/docs/ASNRequest.md +++ b/docs/ASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -53,20 +53,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASNRequest) GetRir() RIRRequest` +`func (o *ASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRequest) SetRir(v RIRRequest)` +`func (o *ASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -88,20 +88,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASNRequest) GetTenant() TenantRequest` +`func (o *ASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRequest) SetTenant(v TenantRequest)` +`func (o *ASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/Aggregate.md b/docs/Aggregate.md index aab5e70991..781d2e6908 100644 --- a/docs/Aggregate.md +++ b/docs/Aggregate.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Rir** | [**RIR**](RIR.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | [**BriefRIR**](BriefRIR.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewAggregate -`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` +`func NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` NewAggregate instantiates a new Aggregate object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Aggregate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Aggregate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Aggregate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Aggregate) GetDisplay() string` @@ -140,40 +161,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *Aggregate) GetRir() RIR` +`func (o *Aggregate) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *Aggregate) GetRirOk() (*RIR, bool)` +`func (o *Aggregate) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *Aggregate) SetRir(v RIR)` +`func (o *Aggregate) SetRir(v BriefRIR)` SetRir sets Rir field to given value. ### GetTenant -`func (o *Aggregate) GetTenant() Tenant` +`func (o *Aggregate) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Aggregate) GetTenantOk() (*Tenant, bool)` +`func (o *Aggregate) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Aggregate) SetTenant(v Tenant)` +`func (o *Aggregate) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/AggregateRequest.md b/docs/AggregateRequest.md index 197cf18973..a11fa9f7aa 100644 --- a/docs/AggregateRequest.md +++ b/docs/AggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAggregateRequest -`func NewAggregateRequest(prefix string, rir RIRRequest, ) *AggregateRequest` +`func NewAggregateRequest(prefix string, rir BriefRIRRequest, ) *AggregateRequest` NewAggregateRequest instantiates a new AggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *AggregateRequest) GetRir() RIRRequest` +`func (o *AggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *AggregateRequest) SetRir(v RIRRequest)` +`func (o *AggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *AggregateRequest) GetTenant() TenantRequest` +`func (o *AggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *AggregateRequest) SetTenant(v TenantRequest)` +`func (o *AggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/AvailableIP.md b/docs/AvailableIP.md index 9fa0b65df5..961593aa57 100644 --- a/docs/AvailableIP.md +++ b/docs/AvailableIP.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Address** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] **Description** | Pointer to **string** | | [optional] ## Methods ### NewAvailableIP -`func NewAvailableIP(family int32, address string, vrf NullableVRF, ) *AvailableIP` +`func NewAvailableIP(family int32, address string, vrf NullableBriefVRF, ) *AvailableIP` NewAvailableIP instantiates a new AvailableIP object This constructor will assign default values to properties that have it defined, @@ -70,20 +70,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *AvailableIP) GetVrf() VRF` +`func (o *AvailableIP) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailableIP) GetVrfOk() (*VRF, bool)` +`func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailableIP) SetVrf(v VRF)` +`func (o *AvailableIP) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailablePrefix.md b/docs/AvailablePrefix.md index e9f9da1fe9..dd87383063 100644 --- a/docs/AvailablePrefix.md +++ b/docs/AvailablePrefix.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Prefix** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] ## Methods ### NewAvailablePrefix -`func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF, ) *AvailablePrefix` +`func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF, ) *AvailablePrefix` NewAvailablePrefix instantiates a new AvailablePrefix object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetPrefix sets Prefix field to given value. ### GetVrf -`func (o *AvailablePrefix) GetVrf() VRF` +`func (o *AvailablePrefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailablePrefix) GetVrfOk() (*VRF, bool)` +`func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailablePrefix) SetVrf(v VRF)` +`func (o *AvailablePrefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailableVLAN.md b/docs/AvailableVLAN.md index 86e18eea98..c002250805 100644 --- a/docs/AvailableVLAN.md +++ b/docs/AvailableVLAN.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Vid** | **int32** | | [readonly] -**Group** | [**NullableVLANGroup**](VLANGroup.md) | | [readonly] +**Group** | [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [readonly] ## Methods ### NewAvailableVLAN -`func NewAvailableVLAN(vid int32, group NullableVLANGroup, ) *AvailableVLAN` +`func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup, ) *AvailableVLAN` NewAvailableVLAN instantiates a new AvailableVLAN object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetVid sets Vid field to given value. ### GetGroup -`func (o *AvailableVLAN) GetGroup() VLANGroup` +`func (o *AvailableVLAN) GetGroup() BriefVLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool)` +`func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *AvailableVLAN) SetGroup(v VLANGroup)` +`func (o *AvailableVLAN) SetGroup(v BriefVLANGroup)` SetGroup sets Group field to given value. diff --git a/docs/Bookmark.md b/docs/Bookmark.md index 68ef93cced..05631b586f 100644 --- a/docs/Bookmark.md +++ b/docs/Bookmark.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **interface{}** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] ## Methods ### NewBookmark -`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time, ) *Bookmark` +`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Bookmark` NewBookmark instantiates a new Bookmark object This constructor will assign default values to properties that have it defined, @@ -164,20 +164,20 @@ SetObject sets Object field to given value. UnsetObject ensures that no value is present for Object, not even an explicit nil ### GetUser -`func (o *Bookmark) GetUser() User` +`func (o *Bookmark) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Bookmark) GetUserOk() (*User, bool)` +`func (o *Bookmark) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Bookmark) SetUser(v User)` +`func (o *Bookmark) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/BookmarkRequest.md b/docs/BookmarkRequest.md index caeb3fc592..ab40a26e96 100644 --- a/docs/BookmarkRequest.md +++ b/docs/BookmarkRequest.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | ## Methods ### NewBookmarkRequest -`func NewBookmarkRequest(objectType string, objectId int64, user UserRequest, ) *BookmarkRequest` +`func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest, ) *BookmarkRequest` NewBookmarkRequest instantiates a new BookmarkRequest object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value. ### GetUser -`func (o *BookmarkRequest) GetUser() UserRequest` +`func (o *BookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *BookmarkRequest) SetUser(v UserRequest)` +`func (o *BookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/BriefCable.md b/docs/BriefCable.md new file mode 100644 index 0000000000..16efce10b0 --- /dev/null +++ b/docs/BriefCable.md @@ -0,0 +1,145 @@ +# BriefCable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Label** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCable + +`func NewBriefCable(id int32, url string, display string, ) *BriefCable` + +NewBriefCable instantiates a new BriefCable object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCableWithDefaults + +`func NewBriefCableWithDefaults() *BriefCable` + +NewBriefCableWithDefaults instantiates a new BriefCable object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCable) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCable) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCable) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCable) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCable) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCable) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCable) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCable) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCable) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetLabel + +`func (o *BriefCable) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCable) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCable) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCable) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefCable) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCable) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCable) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCable) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCableRequest.md b/docs/BriefCableRequest.md new file mode 100644 index 0000000000..7a5b52bd69 --- /dev/null +++ b/docs/BriefCableRequest.md @@ -0,0 +1,82 @@ +# BriefCableRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCableRequest + +`func NewBriefCableRequest() *BriefCableRequest` + +NewBriefCableRequest instantiates a new BriefCableRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCableRequestWithDefaults + +`func NewBriefCableRequestWithDefaults() *BriefCableRequest` + +NewBriefCableRequestWithDefaults instantiates a new BriefCableRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLabel + +`func (o *BriefCableRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCableRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCableRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCableRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefCableRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCableRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCableRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCableRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuit.md b/docs/BriefCircuit.md new file mode 100644 index 0000000000..138f8f8fe7 --- /dev/null +++ b/docs/BriefCircuit.md @@ -0,0 +1,161 @@ +# BriefCircuit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProvider**](BriefProvider.md) | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuit + +`func NewBriefCircuit(id int32, url string, display string, cid string, provider BriefProvider, ) *BriefCircuit` + +NewBriefCircuit instantiates a new BriefCircuit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitWithDefaults + +`func NewBriefCircuitWithDefaults() *BriefCircuit` + +NewBriefCircuitWithDefaults instantiates a new BriefCircuit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuit) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuit) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuit) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuit) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuit) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuit) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuit) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuit) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuit) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetCid + +`func (o *BriefCircuit) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *BriefCircuit) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *BriefCircuit) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProvider + +`func (o *BriefCircuit) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *BriefCircuit) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *BriefCircuit) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + +### GetDescription + +`func (o *BriefCircuit) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuit) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuit) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuit) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroup.md b/docs/BriefCircuitGroup.md new file mode 100644 index 0000000000..25564b648b --- /dev/null +++ b/docs/BriefCircuitGroup.md @@ -0,0 +1,114 @@ +# BriefCircuitGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | + +## Methods + +### NewBriefCircuitGroup + +`func NewBriefCircuitGroup(id int32, url string, display string, name string, ) *BriefCircuitGroup` + +NewBriefCircuitGroup instantiates a new BriefCircuitGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupWithDefaults + +`func NewBriefCircuitGroupWithDefaults() *BriefCircuitGroup` + +NewBriefCircuitGroupWithDefaults instantiates a new BriefCircuitGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCircuitGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitGroup) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializer.md b/docs/BriefCircuitGroupAssignmentSerializer.md new file mode 100644 index 0000000000..2036b6e32b --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializer.md @@ -0,0 +1,140 @@ +# BriefCircuitGroupAssignmentSerializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Group** | [**BriefCircuitGroup**](BriefCircuitGroup.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializer + +`func NewBriefCircuitGroupAssignmentSerializer(id int32, url string, display string, group BriefCircuitGroup, ) *BriefCircuitGroupAssignmentSerializer` + +NewBriefCircuitGroupAssignmentSerializer instantiates a new BriefCircuitGroupAssignmentSerializer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerWithDefaults() *BriefCircuitGroupAssignmentSerializer` + +NewBriefCircuitGroupAssignmentSerializerWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitGroupAssignmentSerializer) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitGroupAssignmentSerializer) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitGroupAssignmentSerializer) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetGroup + +`func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetGroupOk() (*BriefCircuitGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup)` + +SetGroup sets Group field to given value. + + +### GetPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializerPriority.md b/docs/BriefCircuitGroupAssignmentSerializerPriority.md new file mode 100644 index 0000000000..1d96671574 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriority.md @@ -0,0 +1,82 @@ +# BriefCircuitGroupAssignmentSerializerPriority + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Label** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityLabel**](BriefCircuitGroupAssignmentSerializerPriorityLabel.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializerPriority + +`func NewBriefCircuitGroupAssignmentSerializerPriority() *BriefCircuitGroupAssignmentSerializerPriority` + +NewBriefCircuitGroupAssignmentSerializerPriority instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults() *BriefCircuitGroupAssignmentSerializerPriority` + +NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValue() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValueOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) SetValue(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabel() BriefCircuitGroupAssignmentSerializerPriorityLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabelOk() (*BriefCircuitGroupAssignmentSerializerPriorityLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitGroupAssignmentSerializerPriorityLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md b/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md new file mode 100644 index 0000000000..9cca225d81 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md @@ -0,0 +1,17 @@ +# BriefCircuitGroupAssignmentSerializerPriorityLabel + +## Enum + + +* `PRIMARY` (value: `"Primary"`) + +* `SECONDARY` (value: `"Secondary"`) + +* `TERTIARY` (value: `"Tertiary"`) + +* `INACTIVE` (value: `"Inactive"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md b/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md new file mode 100644 index 0000000000..00692d0a1d --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md @@ -0,0 +1,19 @@ +# BriefCircuitGroupAssignmentSerializerPriorityValue + +## Enum + + +* `PRIMARY` (value: `"primary"`) + +* `SECONDARY` (value: `"secondary"`) + +* `TERTIARY` (value: `"tertiary"`) + +* `INACTIVE` (value: `"inactive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializerRequest.md b/docs/BriefCircuitGroupAssignmentSerializerRequest.md new file mode 100644 index 0000000000..e05840b8b9 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerRequest.md @@ -0,0 +1,77 @@ +# BriefCircuitGroupAssignmentSerializerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializerRequest + +`func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest, ) *BriefCircuitGroupAssignmentSerializerRequest` + +NewBriefCircuitGroupAssignmentSerializerRequest instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuitGroupAssignmentSerializerRequest` + +NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupRequest.md b/docs/BriefCircuitGroupRequest.md new file mode 100644 index 0000000000..edd865f31d --- /dev/null +++ b/docs/BriefCircuitGroupRequest.md @@ -0,0 +1,51 @@ +# BriefCircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewBriefCircuitGroupRequest + +`func NewBriefCircuitGroupRequest(name string, ) *BriefCircuitGroupRequest` + +NewBriefCircuitGroupRequest instantiates a new BriefCircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupRequestWithDefaults + +`func NewBriefCircuitGroupRequestWithDefaults() *BriefCircuitGroupRequest` + +NewBriefCircuitGroupRequestWithDefaults instantiates a new BriefCircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitRequest.md b/docs/BriefCircuitRequest.md new file mode 100644 index 0000000000..9dca17169b --- /dev/null +++ b/docs/BriefCircuitRequest.md @@ -0,0 +1,98 @@ +# BriefCircuitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuitRequest + +`func NewBriefCircuitRequest(cid string, provider BriefProviderRequest, ) *BriefCircuitRequest` + +NewBriefCircuitRequest instantiates a new BriefCircuitRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitRequestWithDefaults + +`func NewBriefCircuitRequestWithDefaults() *BriefCircuitRequest` + +NewBriefCircuitRequestWithDefaults instantiates a new BriefCircuitRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCid + +`func (o *BriefCircuitRequest) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *BriefCircuitRequest) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *BriefCircuitRequest) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProvider + +`func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + +### GetDescription + +`func (o *BriefCircuitRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitType.md b/docs/BriefCircuitType.md new file mode 100644 index 0000000000..77987dfcdf --- /dev/null +++ b/docs/BriefCircuitType.md @@ -0,0 +1,182 @@ +# BriefCircuitType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewBriefCircuitType + +`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefCircuitType` + +NewBriefCircuitType instantiates a new BriefCircuitType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitTypeWithDefaults + +`func NewBriefCircuitTypeWithDefaults() *BriefCircuitType` + +NewBriefCircuitTypeWithDefaults instantiates a new BriefCircuitType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCircuitType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefCircuitType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefCircuitType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefCircuitType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefCircuitType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCircuitCount + +`func (o *BriefCircuitType) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *BriefCircuitType) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitTypeRequest.md b/docs/BriefCircuitTypeRequest.md new file mode 100644 index 0000000000..38531bc02f --- /dev/null +++ b/docs/BriefCircuitTypeRequest.md @@ -0,0 +1,98 @@ +# BriefCircuitTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuitTypeRequest + +`func NewBriefCircuitTypeRequest(name string, slug string, ) *BriefCircuitTypeRequest` + +NewBriefCircuitTypeRequest instantiates a new BriefCircuitTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitTypeRequestWithDefaults + +`func NewBriefCircuitTypeRequestWithDefaults() *BriefCircuitTypeRequest` + +NewBriefCircuitTypeRequestWithDefaults instantiates a new BriefCircuitTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCircuitTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitTypeRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefCircuitTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefCircuitTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefCircuitTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefCircuitTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCluster.md b/docs/BriefCluster.md new file mode 100644 index 0000000000..9520dc9283 --- /dev/null +++ b/docs/BriefCluster.md @@ -0,0 +1,161 @@ +# BriefCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**VirtualmachineCount** | **int64** | | [readonly] + +## Methods + +### NewBriefCluster + +`func NewBriefCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *BriefCluster` + +NewBriefCluster instantiates a new BriefCluster object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterWithDefaults + +`func NewBriefClusterWithDefaults() *BriefCluster` + +NewBriefClusterWithDefaults instantiates a new BriefCluster object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCluster) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCluster) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCluster) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCluster) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCluster) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCluster) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCluster) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCluster) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCluster) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCluster) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCluster) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCluster) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCluster) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCluster) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCluster) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCluster) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *BriefCluster) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefCluster) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefCluster) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterGroup.md b/docs/BriefClusterGroup.md new file mode 100644 index 0000000000..2fe6cce7fe --- /dev/null +++ b/docs/BriefClusterGroup.md @@ -0,0 +1,182 @@ +# BriefClusterGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ClusterCount** | **int64** | | [readonly] + +## Methods + +### NewBriefClusterGroup + +`func NewBriefClusterGroup(id int32, url string, display string, name string, slug string, clusterCount int64, ) *BriefClusterGroup` + +NewBriefClusterGroup instantiates a new BriefClusterGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterGroupWithDefaults + +`func NewBriefClusterGroupWithDefaults() *BriefClusterGroup` + +NewBriefClusterGroupWithDefaults instantiates a new BriefClusterGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefClusterGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefClusterGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefClusterGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefClusterGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefClusterGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefClusterGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefClusterGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefClusterGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefClusterGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefClusterGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClusterCount + +`func (o *BriefClusterGroup) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *BriefClusterGroup) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *BriefClusterGroup) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterGroupRequest.md b/docs/BriefClusterGroupRequest.md new file mode 100644 index 0000000000..c5dbaff197 --- /dev/null +++ b/docs/BriefClusterGroupRequest.md @@ -0,0 +1,98 @@ +# BriefClusterGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterGroupRequest + +`func NewBriefClusterGroupRequest(name string, slug string, ) *BriefClusterGroupRequest` + +NewBriefClusterGroupRequest instantiates a new BriefClusterGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterGroupRequestWithDefaults + +`func NewBriefClusterGroupRequestWithDefaults() *BriefClusterGroupRequest` + +NewBriefClusterGroupRequestWithDefaults instantiates a new BriefClusterGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterRequest.md b/docs/BriefClusterRequest.md new file mode 100644 index 0000000000..e2dc40671a --- /dev/null +++ b/docs/BriefClusterRequest.md @@ -0,0 +1,77 @@ +# BriefClusterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterRequest + +`func NewBriefClusterRequest(name string, ) *BriefClusterRequest` + +NewBriefClusterRequest instantiates a new BriefClusterRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterRequestWithDefaults + +`func NewBriefClusterRequestWithDefaults() *BriefClusterRequest` + +NewBriefClusterRequestWithDefaults instantiates a new BriefClusterRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefClusterRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterType.md b/docs/BriefClusterType.md new file mode 100644 index 0000000000..7464c686ab --- /dev/null +++ b/docs/BriefClusterType.md @@ -0,0 +1,182 @@ +# BriefClusterType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ClusterCount** | **int64** | | [readonly] + +## Methods + +### NewBriefClusterType + +`func NewBriefClusterType(id int32, url string, display string, name string, slug string, clusterCount int64, ) *BriefClusterType` + +NewBriefClusterType instantiates a new BriefClusterType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterTypeWithDefaults + +`func NewBriefClusterTypeWithDefaults() *BriefClusterType` + +NewBriefClusterTypeWithDefaults instantiates a new BriefClusterType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefClusterType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefClusterType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefClusterType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefClusterType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefClusterType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefClusterType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefClusterType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefClusterType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefClusterType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefClusterType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClusterCount + +`func (o *BriefClusterType) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *BriefClusterType) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *BriefClusterType) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterTypeRequest.md b/docs/BriefClusterTypeRequest.md new file mode 100644 index 0000000000..516608463c --- /dev/null +++ b/docs/BriefClusterTypeRequest.md @@ -0,0 +1,98 @@ +# BriefClusterTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterTypeRequest + +`func NewBriefClusterTypeRequest(name string, slug string, ) *BriefClusterTypeRequest` + +NewBriefClusterTypeRequest instantiates a new BriefClusterTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterTypeRequestWithDefaults + +`func NewBriefClusterTypeRequestWithDefaults() *BriefClusterTypeRequest` + +NewBriefClusterTypeRequestWithDefaults instantiates a new BriefClusterTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterTypeRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefConfigTemplate.md b/docs/BriefConfigTemplate.md new file mode 100644 index 0000000000..ea23146a7f --- /dev/null +++ b/docs/BriefConfigTemplate.md @@ -0,0 +1,140 @@ +# BriefConfigTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefConfigTemplate + +`func NewBriefConfigTemplate(id int32, url string, display string, name string, ) *BriefConfigTemplate` + +NewBriefConfigTemplate instantiates a new BriefConfigTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefConfigTemplateWithDefaults + +`func NewBriefConfigTemplateWithDefaults() *BriefConfigTemplate` + +NewBriefConfigTemplateWithDefaults instantiates a new BriefConfigTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefConfigTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefConfigTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefConfigTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefConfigTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefConfigTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefConfigTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefConfigTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefConfigTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefConfigTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefConfigTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefConfigTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefConfigTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefConfigTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefConfigTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefConfigTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefConfigTemplate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefConfigTemplateRequest.md b/docs/BriefConfigTemplateRequest.md new file mode 100644 index 0000000000..0ae8e8d49b --- /dev/null +++ b/docs/BriefConfigTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefConfigTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefConfigTemplateRequest + +`func NewBriefConfigTemplateRequest(name string, ) *BriefConfigTemplateRequest` + +NewBriefConfigTemplateRequest instantiates a new BriefConfigTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefConfigTemplateRequestWithDefaults + +`func NewBriefConfigTemplateRequestWithDefaults() *BriefConfigTemplateRequest` + +NewBriefConfigTemplateRequestWithDefaults instantiates a new BriefConfigTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefConfigTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefConfigTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefConfigTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefConfigTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefConfigTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefConfigTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefConfigTemplateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContact.md b/docs/BriefContact.md new file mode 100644 index 0000000000..966138ba8b --- /dev/null +++ b/docs/BriefContact.md @@ -0,0 +1,140 @@ +# BriefContact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContact + +`func NewBriefContact(id int32, url string, display string, name string, ) *BriefContact` + +NewBriefContact instantiates a new BriefContact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactWithDefaults + +`func NewBriefContactWithDefaults() *BriefContact` + +NewBriefContactWithDefaults instantiates a new BriefContact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContact) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContact) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContact) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContact) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContact) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContact) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContact) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContact) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContact) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContact) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContact) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContact) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefContact) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContact) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContact) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContact) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactGroup.md b/docs/BriefContactGroup.md new file mode 100644 index 0000000000..0b68127398 --- /dev/null +++ b/docs/BriefContactGroup.md @@ -0,0 +1,203 @@ +# BriefContactGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ContactCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefContactGroup + +`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *BriefContactGroup` + +NewBriefContactGroup instantiates a new BriefContactGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactGroupWithDefaults + +`func NewBriefContactGroupWithDefaults() *BriefContactGroup` + +NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContactGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContactGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContactGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContactGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContactGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContactGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContactGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContactGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContactGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContactGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContactCount + +`func (o *BriefContactGroup) GetContactCount() int32` + +GetContactCount returns the ContactCount field if non-nil, zero value otherwise. + +### GetContactCountOk + +`func (o *BriefContactGroup) GetContactCountOk() (*int32, bool)` + +GetContactCountOk returns a tuple with the ContactCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactCount + +`func (o *BriefContactGroup) SetContactCount(v int32)` + +SetContactCount sets ContactCount field to given value. + + +### GetDepth + +`func (o *BriefContactGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefContactGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefContactGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactGroupRequest.md b/docs/BriefContactGroupRequest.md new file mode 100644 index 0000000000..43bd0093d1 --- /dev/null +++ b/docs/BriefContactGroupRequest.md @@ -0,0 +1,98 @@ +# BriefContactGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactGroupRequest + +`func NewBriefContactGroupRequest(name string, slug string, ) *BriefContactGroupRequest` + +NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactGroupRequestWithDefaults + +`func NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest` + +NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactRequest.md b/docs/BriefContactRequest.md new file mode 100644 index 0000000000..fcfc9f9a6f --- /dev/null +++ b/docs/BriefContactRequest.md @@ -0,0 +1,77 @@ +# BriefContactRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRequest + +`func NewBriefContactRequest(name string, ) *BriefContactRequest` + +NewBriefContactRequest instantiates a new BriefContactRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRequestWithDefaults + +`func NewBriefContactRequestWithDefaults() *BriefContactRequest` + +NewBriefContactRequestWithDefaults instantiates a new BriefContactRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefContactRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactRole.md b/docs/BriefContactRole.md new file mode 100644 index 0000000000..0d0856a58e --- /dev/null +++ b/docs/BriefContactRole.md @@ -0,0 +1,161 @@ +# BriefContactRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRole + +`func NewBriefContactRole(id int32, url string, display string, name string, slug string, ) *BriefContactRole` + +NewBriefContactRole instantiates a new BriefContactRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRoleWithDefaults + +`func NewBriefContactRoleWithDefaults() *BriefContactRole` + +NewBriefContactRoleWithDefaults instantiates a new BriefContactRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContactRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContactRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContactRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContactRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContactRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContactRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContactRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContactRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContactRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContactRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactRoleRequest.md b/docs/BriefContactRoleRequest.md new file mode 100644 index 0000000000..e8a89fac6a --- /dev/null +++ b/docs/BriefContactRoleRequest.md @@ -0,0 +1,98 @@ +# BriefContactRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRoleRequest + +`func NewBriefContactRoleRequest(name string, slug string, ) *BriefContactRoleRequest` + +NewBriefContactRoleRequest instantiates a new BriefContactRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRoleRequestWithDefaults + +`func NewBriefContactRoleRequestWithDefaults() *BriefContactRoleRequest` + +NewBriefContactRoleRequestWithDefaults instantiates a new BriefContactRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCustomFieldChoiceSet.md b/docs/BriefCustomFieldChoiceSet.md new file mode 100644 index 0000000000..6f5b276759 --- /dev/null +++ b/docs/BriefCustomFieldChoiceSet.md @@ -0,0 +1,161 @@ +# BriefCustomFieldChoiceSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ChoicesCount** | **string** | | [readonly] + +## Methods + +### NewBriefCustomFieldChoiceSet + +`func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, ) *BriefCustomFieldChoiceSet` + +NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCustomFieldChoiceSetWithDefaults + +`func NewBriefCustomFieldChoiceSetWithDefaults() *BriefCustomFieldChoiceSet` + +NewBriefCustomFieldChoiceSetWithDefaults instantiates a new BriefCustomFieldChoiceSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCustomFieldChoiceSet) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCustomFieldChoiceSet) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCustomFieldChoiceSet) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCustomFieldChoiceSet) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCustomFieldChoiceSet) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCustomFieldChoiceSet) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCustomFieldChoiceSet) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCustomFieldChoiceSet) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCustomFieldChoiceSet) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCustomFieldChoiceSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCustomFieldChoiceSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCustomFieldChoiceSet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCustomFieldChoiceSet) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCustomFieldChoiceSet) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCustomFieldChoiceSet) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCustomFieldChoiceSet) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetChoicesCount + +`func (o *BriefCustomFieldChoiceSet) GetChoicesCount() string` + +GetChoicesCount returns the ChoicesCount field if non-nil, zero value otherwise. + +### GetChoicesCountOk + +`func (o *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool)` + +GetChoicesCountOk returns a tuple with the ChoicesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChoicesCount + +`func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string)` + +SetChoicesCount sets ChoicesCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCustomFieldChoiceSetRequest.md b/docs/BriefCustomFieldChoiceSetRequest.md new file mode 100644 index 0000000000..5add176ca3 --- /dev/null +++ b/docs/BriefCustomFieldChoiceSetRequest.md @@ -0,0 +1,77 @@ +# BriefCustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCustomFieldChoiceSetRequest + +`func NewBriefCustomFieldChoiceSetRequest(name string, ) *BriefCustomFieldChoiceSetRequest` + +NewBriefCustomFieldChoiceSetRequest instantiates a new BriefCustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCustomFieldChoiceSetRequestWithDefaults + +`func NewBriefCustomFieldChoiceSetRequestWithDefaults() *BriefCustomFieldChoiceSetRequest` + +NewBriefCustomFieldChoiceSetRequestWithDefaults instantiates a new BriefCustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCustomFieldChoiceSetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCustomFieldChoiceSetRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDataFile.md b/docs/BriefDataFile.md new file mode 100644 index 0000000000..f083e7ab46 --- /dev/null +++ b/docs/BriefDataFile.md @@ -0,0 +1,114 @@ +# BriefDataFile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Path** | **string** | File path relative to the data source's root | [readonly] + +## Methods + +### NewBriefDataFile + +`func NewBriefDataFile(id int32, url string, display string, path string, ) *BriefDataFile` + +NewBriefDataFile instantiates a new BriefDataFile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataFileWithDefaults + +`func NewBriefDataFileWithDefaults() *BriefDataFile` + +NewBriefDataFileWithDefaults instantiates a new BriefDataFile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDataFile) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDataFile) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDataFile) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDataFile) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDataFile) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDataFile) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDataFile) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDataFile) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDataFile) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetPath + +`func (o *BriefDataFile) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *BriefDataFile) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *BriefDataFile) SetPath(v string)` + +SetPath sets Path field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDataSource.md b/docs/BriefDataSource.md new file mode 100644 index 0000000000..38d2eba305 --- /dev/null +++ b/docs/BriefDataSource.md @@ -0,0 +1,140 @@ +# BriefDataSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDataSource + +`func NewBriefDataSource(id int32, url string, display string, name string, ) *BriefDataSource` + +NewBriefDataSource instantiates a new BriefDataSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataSourceWithDefaults + +`func NewBriefDataSourceWithDefaults() *BriefDataSource` + +NewBriefDataSourceWithDefaults instantiates a new BriefDataSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDataSource) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDataSource) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDataSource) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDataSource) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDataSource) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDataSource) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDataSource) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDataSource) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDataSource) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDataSource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDataSource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDataSource) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefDataSource) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDataSource) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDataSource) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDataSource) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDataSourceRequest.md b/docs/BriefDataSourceRequest.md new file mode 100644 index 0000000000..2fa1fac6a8 --- /dev/null +++ b/docs/BriefDataSourceRequest.md @@ -0,0 +1,77 @@ +# BriefDataSourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDataSourceRequest + +`func NewBriefDataSourceRequest(name string, ) *BriefDataSourceRequest` + +NewBriefDataSourceRequest instantiates a new BriefDataSourceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataSourceRequestWithDefaults + +`func NewBriefDataSourceRequestWithDefaults() *BriefDataSourceRequest` + +NewBriefDataSourceRequestWithDefaults instantiates a new BriefDataSourceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDataSourceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDataSourceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDataSourceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefDataSourceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDataSourceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDataSourceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDataSourceRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDevice.md b/docs/BriefDevice.md new file mode 100644 index 0000000000..0748fff496 --- /dev/null +++ b/docs/BriefDevice.md @@ -0,0 +1,155 @@ +# BriefDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDevice + +`func NewBriefDevice(id int32, url string, display string, ) *BriefDevice` + +NewBriefDevice instantiates a new BriefDevice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceWithDefaults + +`func NewBriefDeviceWithDefaults() *BriefDevice` + +NewBriefDeviceWithDefaults instantiates a new BriefDevice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDevice) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDevice) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDevice) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDevice) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDevice) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDevice) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDevice) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDevice) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDevice) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDevice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDevice) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDevice) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefDevice) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *BriefDevice) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *BriefDevice) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *BriefDevice) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDevice) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDevice) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDevice) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDeviceRequest.md b/docs/BriefDeviceRequest.md new file mode 100644 index 0000000000..9671b9f39e --- /dev/null +++ b/docs/BriefDeviceRequest.md @@ -0,0 +1,92 @@ +# BriefDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceRequest + +`func NewBriefDeviceRequest() *BriefDeviceRequest` + +NewBriefDeviceRequest instantiates a new BriefDeviceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRequestWithDefaults + +`func NewBriefDeviceRequestWithDefaults() *BriefDeviceRequest` + +NewBriefDeviceRequestWithDefaults instantiates a new BriefDeviceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDeviceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefDeviceRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *BriefDeviceRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *BriefDeviceRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *BriefDeviceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDeviceRole.md b/docs/BriefDeviceRole.md new file mode 100644 index 0000000000..462f3ae197 --- /dev/null +++ b/docs/BriefDeviceRole.md @@ -0,0 +1,203 @@ +# BriefDeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | **int64** | | [readonly] +**VirtualmachineCount** | **int64** | | [readonly] + +## Methods + +### NewBriefDeviceRole + +`func NewBriefDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *BriefDeviceRole` + +NewBriefDeviceRole instantiates a new BriefDeviceRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRoleWithDefaults + +`func NewBriefDeviceRoleWithDefaults() *BriefDeviceRole` + +NewBriefDeviceRoleWithDefaults instantiates a new BriefDeviceRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDeviceRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDeviceRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDeviceRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDeviceRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDeviceRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDeviceRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDeviceRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDeviceRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDeviceRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDeviceRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefDeviceRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefDeviceRole) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefDeviceRole) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefDeviceRole) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + +### GetVirtualmachineCount + +`func (o *BriefDeviceRole) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefDeviceRole) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefDeviceRole) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDeviceRoleRequest.md b/docs/BriefDeviceRoleRequest.md new file mode 100644 index 0000000000..cff3dcc04f --- /dev/null +++ b/docs/BriefDeviceRoleRequest.md @@ -0,0 +1,98 @@ +# BriefDeviceRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceRoleRequest + +`func NewBriefDeviceRoleRequest(name string, slug string, ) *BriefDeviceRoleRequest` + +NewBriefDeviceRoleRequest instantiates a new BriefDeviceRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRoleRequestWithDefaults + +`func NewBriefDeviceRoleRequestWithDefaults() *BriefDeviceRoleRequest` + +NewBriefDeviceRoleRequestWithDefaults instantiates a new BriefDeviceRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDeviceRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefDeviceRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDeviceType.md b/docs/BriefDeviceType.md new file mode 100644 index 0000000000..fbf030f1de --- /dev/null +++ b/docs/BriefDeviceType.md @@ -0,0 +1,203 @@ +# BriefDeviceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | **int64** | | [readonly] + +## Methods + +### NewBriefDeviceType + +`func NewBriefDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, deviceCount int64, ) *BriefDeviceType` + +NewBriefDeviceType instantiates a new BriefDeviceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceTypeWithDefaults + +`func NewBriefDeviceTypeWithDefaults() *BriefDeviceType` + +NewBriefDeviceTypeWithDefaults instantiates a new BriefDeviceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDeviceType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDeviceType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDeviceType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDeviceType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDeviceType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDeviceType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDeviceType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDeviceType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDeviceType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefDeviceType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefDeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefDeviceType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefDeviceType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefDeviceType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefDeviceType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefDeviceType) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefDeviceType) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefDeviceType) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDeviceTypeRequest.md b/docs/BriefDeviceTypeRequest.md new file mode 100644 index 0000000000..aecf3cf0ae --- /dev/null +++ b/docs/BriefDeviceTypeRequest.md @@ -0,0 +1,119 @@ +# BriefDeviceTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceTypeRequest + +`func NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *BriefDeviceTypeRequest` + +NewBriefDeviceTypeRequest instantiates a new BriefDeviceTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceTypeRequestWithDefaults + +`func NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest` + +NewBriefDeviceTypeRequestWithDefaults instantiates a new BriefDeviceTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefDeviceTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefDeviceTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefDeviceTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefDeviceTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefFHRPGroup.md b/docs/BriefFHRPGroup.md new file mode 100644 index 0000000000..3c7eb23147 --- /dev/null +++ b/docs/BriefFHRPGroup.md @@ -0,0 +1,161 @@ +# BriefFHRPGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**GroupId** | **int32** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefFHRPGroup + +`func NewBriefFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, ) *BriefFHRPGroup` + +NewBriefFHRPGroup instantiates a new BriefFHRPGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefFHRPGroupWithDefaults + +`func NewBriefFHRPGroupWithDefaults() *BriefFHRPGroup` + +NewBriefFHRPGroupWithDefaults instantiates a new BriefFHRPGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefFHRPGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefFHRPGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefFHRPGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefFHRPGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefFHRPGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefFHRPGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefFHRPGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefFHRPGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefFHRPGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetProtocol + +`func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *BriefFHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` + +SetProtocol sets Protocol field to given value. + + +### GetGroupId + +`func (o *BriefFHRPGroup) GetGroupId() int32` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *BriefFHRPGroup) GetGroupIdOk() (*int32, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *BriefFHRPGroup) SetGroupId(v int32)` + +SetGroupId sets GroupId field to given value. + + +### GetDescription + +`func (o *BriefFHRPGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefFHRPGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefFHRPGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefFHRPGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefFHRPGroupProtocol.md b/docs/BriefFHRPGroupProtocol.md new file mode 100644 index 0000000000..1927b6d374 --- /dev/null +++ b/docs/BriefFHRPGroupProtocol.md @@ -0,0 +1,23 @@ +# BriefFHRPGroupProtocol + +## Enum + + +* `VRRP2` (value: `"vrrp2"`) + +* `VRRP3` (value: `"vrrp3"`) + +* `CARP` (value: `"carp"`) + +* `CLUSTERXL` (value: `"clusterxl"`) + +* `HSRP` (value: `"hsrp"`) + +* `GLBP` (value: `"glbp"`) + +* `OTHER` (value: `"other"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefFHRPGroupRequest.md b/docs/BriefFHRPGroupRequest.md new file mode 100644 index 0000000000..ec3f629bd8 --- /dev/null +++ b/docs/BriefFHRPGroupRequest.md @@ -0,0 +1,98 @@ +# BriefFHRPGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**GroupId** | **int32** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefFHRPGroupRequest + +`func NewBriefFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *BriefFHRPGroupRequest` + +NewBriefFHRPGroupRequest instantiates a new BriefFHRPGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefFHRPGroupRequestWithDefaults + +`func NewBriefFHRPGroupRequestWithDefaults() *BriefFHRPGroupRequest` + +NewBriefFHRPGroupRequestWithDefaults instantiates a new BriefFHRPGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProtocol + +`func (o *BriefFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *BriefFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` + +SetProtocol sets Protocol field to given value. + + +### GetGroupId + +`func (o *BriefFHRPGroupRequest) GetGroupId() int32` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *BriefFHRPGroupRequest) GetGroupIdOk() (*int32, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *BriefFHRPGroupRequest) SetGroupId(v int32)` + +SetGroupId sets GroupId field to given value. + + +### GetDescription + +`func (o *BriefFHRPGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefFHRPGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefFHRPGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefFHRPGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIKEPolicy.md b/docs/BriefIKEPolicy.md new file mode 100644 index 0000000000..4010027b19 --- /dev/null +++ b/docs/BriefIKEPolicy.md @@ -0,0 +1,140 @@ +# BriefIKEPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIKEPolicy + +`func NewBriefIKEPolicy(id int32, url string, display string, name string, ) *BriefIKEPolicy` + +NewBriefIKEPolicy instantiates a new BriefIKEPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIKEPolicyWithDefaults + +`func NewBriefIKEPolicyWithDefaults() *BriefIKEPolicy` + +NewBriefIKEPolicyWithDefaults instantiates a new BriefIKEPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIKEPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIKEPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIKEPolicy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIKEPolicy) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIKEPolicy) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIKEPolicy) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIKEPolicy) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIKEPolicy) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIKEPolicy) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIKEPolicy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIKEPolicy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIKEPolicy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIKEPolicy) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIKEPolicy) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIKEPolicy) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIKEPolicy) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIKEPolicyRequest.md b/docs/BriefIKEPolicyRequest.md new file mode 100644 index 0000000000..11af2f4fd4 --- /dev/null +++ b/docs/BriefIKEPolicyRequest.md @@ -0,0 +1,77 @@ +# BriefIKEPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIKEPolicyRequest + +`func NewBriefIKEPolicyRequest(name string, ) *BriefIKEPolicyRequest` + +NewBriefIKEPolicyRequest instantiates a new BriefIKEPolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIKEPolicyRequestWithDefaults + +`func NewBriefIKEPolicyRequestWithDefaults() *BriefIKEPolicyRequest` + +NewBriefIKEPolicyRequestWithDefaults instantiates a new BriefIKEPolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIKEPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIKEPolicyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIKEPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIKEPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIKEPolicyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIKEPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIKEPolicyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPAddress.md b/docs/BriefIPAddress.md new file mode 100644 index 0000000000..6ad683fc94 --- /dev/null +++ b/docs/BriefIPAddress.md @@ -0,0 +1,161 @@ +# BriefIPAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Family** | [**AggregateFamily**](AggregateFamily.md) | | +**Address** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPAddress + +`func NewBriefIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *BriefIPAddress` + +NewBriefIPAddress instantiates a new BriefIPAddress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPAddressWithDefaults + +`func NewBriefIPAddressWithDefaults() *BriefIPAddress` + +NewBriefIPAddressWithDefaults instantiates a new BriefIPAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPAddress) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPAddress) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPAddress) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *BriefIPAddress) GetFamily() AggregateFamily` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *BriefIPAddress) GetFamilyOk() (*AggregateFamily, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *BriefIPAddress) SetFamily(v AggregateFamily)` + +SetFamily sets Family field to given value. + + +### GetAddress + +`func (o *BriefIPAddress) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *BriefIPAddress) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *BriefIPAddress) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetDescription + +`func (o *BriefIPAddress) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPAddress) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPAddress) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPAddress) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPAddressRequest.md b/docs/BriefIPAddressRequest.md new file mode 100644 index 0000000000..9041d294a4 --- /dev/null +++ b/docs/BriefIPAddressRequest.md @@ -0,0 +1,77 @@ +# BriefIPAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPAddressRequest + +`func NewBriefIPAddressRequest(address string, ) *BriefIPAddressRequest` + +NewBriefIPAddressRequest instantiates a new BriefIPAddressRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPAddressRequestWithDefaults + +`func NewBriefIPAddressRequestWithDefaults() *BriefIPAddressRequest` + +NewBriefIPAddressRequestWithDefaults instantiates a new BriefIPAddressRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *BriefIPAddressRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *BriefIPAddressRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *BriefIPAddressRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetDescription + +`func (o *BriefIPAddressRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPAddressRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPAddressRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPAddressRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPSecPolicy.md b/docs/BriefIPSecPolicy.md new file mode 100644 index 0000000000..046c03acc1 --- /dev/null +++ b/docs/BriefIPSecPolicy.md @@ -0,0 +1,140 @@ +# BriefIPSecPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecPolicy + +`func NewBriefIPSecPolicy(id int32, url string, display string, name string, ) *BriefIPSecPolicy` + +NewBriefIPSecPolicy instantiates a new BriefIPSecPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecPolicyWithDefaults + +`func NewBriefIPSecPolicyWithDefaults() *BriefIPSecPolicy` + +NewBriefIPSecPolicyWithDefaults instantiates a new BriefIPSecPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPSecPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPSecPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPSecPolicy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPSecPolicy) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPSecPolicy) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPSecPolicy) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPSecPolicy) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPSecPolicy) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPSecPolicy) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIPSecPolicy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecPolicy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecPolicy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecPolicy) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecPolicy) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecPolicy) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecPolicy) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPSecPolicyRequest.md b/docs/BriefIPSecPolicyRequest.md new file mode 100644 index 0000000000..6077a70488 --- /dev/null +++ b/docs/BriefIPSecPolicyRequest.md @@ -0,0 +1,77 @@ +# BriefIPSecPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecPolicyRequest + +`func NewBriefIPSecPolicyRequest(name string, ) *BriefIPSecPolicyRequest` + +NewBriefIPSecPolicyRequest instantiates a new BriefIPSecPolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecPolicyRequestWithDefaults + +`func NewBriefIPSecPolicyRequestWithDefaults() *BriefIPSecPolicyRequest` + +NewBriefIPSecPolicyRequestWithDefaults instantiates a new BriefIPSecPolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIPSecPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecPolicyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecPolicyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecPolicyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPSecProfile.md b/docs/BriefIPSecProfile.md new file mode 100644 index 0000000000..3dd97ae9eb --- /dev/null +++ b/docs/BriefIPSecProfile.md @@ -0,0 +1,140 @@ +# BriefIPSecProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecProfile + +`func NewBriefIPSecProfile(id int32, url string, display string, name string, ) *BriefIPSecProfile` + +NewBriefIPSecProfile instantiates a new BriefIPSecProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecProfileWithDefaults + +`func NewBriefIPSecProfileWithDefaults() *BriefIPSecProfile` + +NewBriefIPSecProfileWithDefaults instantiates a new BriefIPSecProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPSecProfile) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPSecProfile) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPSecProfile) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPSecProfile) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPSecProfile) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPSecProfile) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPSecProfile) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPSecProfile) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPSecProfile) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIPSecProfile) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecProfile) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecProfile) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecProfile) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecProfile) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecProfile) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecProfile) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefIPSecProfileRequest.md b/docs/BriefIPSecProfileRequest.md new file mode 100644 index 0000000000..3357d67510 --- /dev/null +++ b/docs/BriefIPSecProfileRequest.md @@ -0,0 +1,77 @@ +# BriefIPSecProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecProfileRequest + +`func NewBriefIPSecProfileRequest(name string, ) *BriefIPSecProfileRequest` + +NewBriefIPSecProfileRequest instantiates a new BriefIPSecProfileRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecProfileRequestWithDefaults + +`func NewBriefIPSecProfileRequestWithDefaults() *BriefIPSecProfileRequest` + +NewBriefIPSecProfileRequestWithDefaults instantiates a new BriefIPSecProfileRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIPSecProfileRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecProfileRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecProfileRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecProfileRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecProfileRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecProfileRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecProfileRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInterface.md b/docs/BriefInterface.md new file mode 100644 index 0000000000..cfa19b0978 --- /dev/null +++ b/docs/BriefInterface.md @@ -0,0 +1,213 @@ +# BriefInterface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewBriefInterface + +`func NewBriefInterface(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool, ) *BriefInterface` + +NewBriefInterface instantiates a new BriefInterface object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInterfaceWithDefaults + +`func NewBriefInterfaceWithDefaults() *BriefInterface` + +NewBriefInterfaceWithDefaults instantiates a new BriefInterface object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefInterface) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefInterface) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefInterface) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefInterface) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefInterface) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefInterface) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefInterface) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefInterface) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefInterface) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefInterface) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefInterface) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefInterface) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefInterface) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInterface) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInterface) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefInterface) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInterface) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInterface) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInterface) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCable + +`func (o *BriefInterface) GetCable() BriefCable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *BriefInterface) GetCableOk() (*BriefCable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *BriefInterface) SetCable(v BriefCable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *BriefInterface) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *BriefInterface) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetOccupied + +`func (o *BriefInterface) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *BriefInterface) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *BriefInterface) SetOccupied(v bool)` + +SetOccupied sets Occupied field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInterfaceRequest.md b/docs/BriefInterfaceRequest.md new file mode 100644 index 0000000000..d6d5c4129f --- /dev/null +++ b/docs/BriefInterfaceRequest.md @@ -0,0 +1,98 @@ +# BriefInterfaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefInterfaceRequest + +`func NewBriefInterfaceRequest(device BriefDeviceRequest, name string, ) *BriefInterfaceRequest` + +NewBriefInterfaceRequest instantiates a new BriefInterfaceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInterfaceRequestWithDefaults + +`func NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest` + +NewBriefInterfaceRequestWithDefaults instantiates a new BriefInterfaceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefInterfaceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInterfaceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInterfaceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefInterfaceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInterfaceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInterfaceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInterfaceRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInventoryItemRole.md b/docs/BriefInventoryItemRole.md new file mode 100644 index 0000000000..00a6568797 --- /dev/null +++ b/docs/BriefInventoryItemRole.md @@ -0,0 +1,182 @@ +# BriefInventoryItemRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**InventoryitemCount** | **int64** | | [readonly] + +## Methods + +### NewBriefInventoryItemRole + +`func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64, ) *BriefInventoryItemRole` + +NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInventoryItemRoleWithDefaults + +`func NewBriefInventoryItemRoleWithDefaults() *BriefInventoryItemRole` + +NewBriefInventoryItemRoleWithDefaults instantiates a new BriefInventoryItemRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefInventoryItemRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefInventoryItemRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefInventoryItemRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefInventoryItemRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefInventoryItemRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefInventoryItemRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefInventoryItemRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefInventoryItemRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefInventoryItemRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefInventoryItemRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInventoryItemRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInventoryItemRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefInventoryItemRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefInventoryItemRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefInventoryItemRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefInventoryItemRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInventoryItemRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInventoryItemRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInventoryItemRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInventoryitemCount + +`func (o *BriefInventoryItemRole) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool)` + +GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryitemCount + +`func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInventoryItemRoleRequest.md b/docs/BriefInventoryItemRoleRequest.md new file mode 100644 index 0000000000..3badc4bce7 --- /dev/null +++ b/docs/BriefInventoryItemRoleRequest.md @@ -0,0 +1,98 @@ +# BriefInventoryItemRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefInventoryItemRoleRequest + +`func NewBriefInventoryItemRoleRequest(name string, slug string, ) *BriefInventoryItemRoleRequest` + +NewBriefInventoryItemRoleRequest instantiates a new BriefInventoryItemRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInventoryItemRoleRequestWithDefaults + +`func NewBriefInventoryItemRoleRequestWithDefaults() *BriefInventoryItemRoleRequest` + +NewBriefInventoryItemRoleRequestWithDefaults instantiates a new BriefInventoryItemRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefInventoryItemRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInventoryItemRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInventoryItemRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefInventoryItemRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefInventoryItemRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefInventoryItemRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefInventoryItemRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInventoryItemRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInventoryItemRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInventoryItemRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJob.md b/docs/BriefJob.md new file mode 100644 index 0000000000..3a29c8b743 --- /dev/null +++ b/docs/BriefJob.md @@ -0,0 +1,150 @@ +# BriefJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | [readonly] +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | +**Created** | **time.Time** | | [readonly] +**Completed** | Pointer to **NullableTime** | | [optional] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] + +## Methods + +### NewBriefJob + +`func NewBriefJob(url string, status BriefJobStatus, created time.Time, user BriefUser, ) *BriefJob` + +NewBriefJob instantiates a new BriefJob object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobWithDefaults + +`func NewBriefJobWithDefaults() *BriefJob` + +NewBriefJobWithDefaults instantiates a new BriefJob object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *BriefJob) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefJob) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefJob) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetStatus + +`func (o *BriefJob) GetStatus() BriefJobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BriefJob) GetStatusOk() (*BriefJobStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BriefJob) SetStatus(v BriefJobStatus)` + +SetStatus sets Status field to given value. + + +### GetCreated + +`func (o *BriefJob) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *BriefJob) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *BriefJob) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetCompleted + +`func (o *BriefJob) GetCompleted() time.Time` + +GetCompleted returns the Completed field if non-nil, zero value otherwise. + +### GetCompletedOk + +`func (o *BriefJob) GetCompletedOk() (*time.Time, bool)` + +GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompleted + +`func (o *BriefJob) SetCompleted(v time.Time)` + +SetCompleted sets Completed field to given value. + +### HasCompleted + +`func (o *BriefJob) HasCompleted() bool` + +HasCompleted returns a boolean if a field has been set. + +### SetCompletedNil + +`func (o *BriefJob) SetCompletedNil(b bool)` + + SetCompletedNil sets the value for Completed to be an explicit nil + +### UnsetCompleted +`func (o *BriefJob) UnsetCompleted()` + +UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +### GetUser + +`func (o *BriefJob) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *BriefJob) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *BriefJob) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJobRequest.md b/docs/BriefJobRequest.md new file mode 100644 index 0000000000..6e62ff44c5 --- /dev/null +++ b/docs/BriefJobRequest.md @@ -0,0 +1,66 @@ +# BriefJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Completed** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewBriefJobRequest + +`func NewBriefJobRequest() *BriefJobRequest` + +NewBriefJobRequest instantiates a new BriefJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobRequestWithDefaults + +`func NewBriefJobRequestWithDefaults() *BriefJobRequest` + +NewBriefJobRequestWithDefaults instantiates a new BriefJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCompleted + +`func (o *BriefJobRequest) GetCompleted() time.Time` + +GetCompleted returns the Completed field if non-nil, zero value otherwise. + +### GetCompletedOk + +`func (o *BriefJobRequest) GetCompletedOk() (*time.Time, bool)` + +GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompleted + +`func (o *BriefJobRequest) SetCompleted(v time.Time)` + +SetCompleted sets Completed field to given value. + +### HasCompleted + +`func (o *BriefJobRequest) HasCompleted() bool` + +HasCompleted returns a boolean if a field has been set. + +### SetCompletedNil + +`func (o *BriefJobRequest) SetCompletedNil(b bool)` + + SetCompletedNil sets the value for Completed to be an explicit nil + +### UnsetCompleted +`func (o *BriefJobRequest) UnsetCompleted()` + +UnsetCompleted ensures that no value is present for Completed, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJobStatus.md b/docs/BriefJobStatus.md new file mode 100644 index 0000000000..42df2b5a55 --- /dev/null +++ b/docs/BriefJobStatus.md @@ -0,0 +1,82 @@ +# BriefJobStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefJobStatusValue**](BriefJobStatusValue.md) | | [optional] +**Label** | Pointer to [**BriefJobStatusLabel**](BriefJobStatusLabel.md) | | [optional] + +## Methods + +### NewBriefJobStatus + +`func NewBriefJobStatus() *BriefJobStatus` + +NewBriefJobStatus instantiates a new BriefJobStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobStatusWithDefaults + +`func NewBriefJobStatusWithDefaults() *BriefJobStatus` + +NewBriefJobStatusWithDefaults instantiates a new BriefJobStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefJobStatus) GetValue() BriefJobStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefJobStatus) GetValueOk() (*BriefJobStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefJobStatus) SetValue(v BriefJobStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefJobStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefJobStatus) GetLabel() BriefJobStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefJobStatus) GetLabelOk() (*BriefJobStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefJobStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJobStatusLabel.md b/docs/BriefJobStatusLabel.md new file mode 100644 index 0000000000..fe83a79993 --- /dev/null +++ b/docs/BriefJobStatusLabel.md @@ -0,0 +1,21 @@ +# BriefJobStatusLabel + +## Enum + + +* `PENDING` (value: `"Pending"`) + +* `SCHEDULED` (value: `"Scheduled"`) + +* `RUNNING` (value: `"Running"`) + +* `COMPLETED` (value: `"Completed"`) + +* `ERRORED` (value: `"Errored"`) + +* `FAILED` (value: `"Failed"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJobStatusValue.md b/docs/BriefJobStatusValue.md new file mode 100644 index 0000000000..e6bf72e539 --- /dev/null +++ b/docs/BriefJobStatusValue.md @@ -0,0 +1,21 @@ +# BriefJobStatusValue + +## Enum + + +* `PENDING` (value: `"pending"`) + +* `SCHEDULED` (value: `"scheduled"`) + +* `RUNNING` (value: `"running"`) + +* `COMPLETED` (value: `"completed"`) + +* `ERRORED` (value: `"errored"`) + +* `FAILED` (value: `"failed"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPN.md b/docs/BriefL2VPN.md new file mode 100644 index 0000000000..2a66326c13 --- /dev/null +++ b/docs/BriefL2VPN.md @@ -0,0 +1,223 @@ +# BriefL2VPN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Identifier** | Pointer to **NullableInt64** | | [optional] +**Name** | **string** | | +**Slug** | **string** | | +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefL2VPN + +`func NewBriefL2VPN(id int32, url string, display string, name string, slug string, ) *BriefL2VPN` + +NewBriefL2VPN instantiates a new BriefL2VPN object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNWithDefaults + +`func NewBriefL2VPNWithDefaults() *BriefL2VPN` + +NewBriefL2VPNWithDefaults instantiates a new BriefL2VPN object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefL2VPN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefL2VPN) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefL2VPN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefL2VPN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefL2VPN) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefL2VPN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefL2VPN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefL2VPN) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefL2VPN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetIdentifier + +`func (o *BriefL2VPN) GetIdentifier() int64` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BriefL2VPN) GetIdentifierOk() (*int64, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *BriefL2VPN) SetIdentifier(v int64)` + +SetIdentifier sets Identifier field to given value. + +### HasIdentifier + +`func (o *BriefL2VPN) HasIdentifier() bool` + +HasIdentifier returns a boolean if a field has been set. + +### SetIdentifierNil + +`func (o *BriefL2VPN) SetIdentifierNil(b bool)` + + SetIdentifierNil sets the value for Identifier to be an explicit nil + +### UnsetIdentifier +`func (o *BriefL2VPN) UnsetIdentifier()` + +UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +### GetName + +`func (o *BriefL2VPN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefL2VPN) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefL2VPN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefL2VPN) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefL2VPN) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefL2VPN) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetType + +`func (o *BriefL2VPN) GetType() BriefL2VPNType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BriefL2VPN) GetTypeOk() (*BriefL2VPNType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BriefL2VPN) SetType(v BriefL2VPNType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BriefL2VPN) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefL2VPN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefL2VPN) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefL2VPN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefL2VPN) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNRequest.md b/docs/BriefL2VPNRequest.md new file mode 100644 index 0000000000..be23320d90 --- /dev/null +++ b/docs/BriefL2VPNRequest.md @@ -0,0 +1,160 @@ +# BriefL2VPNRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | Pointer to **NullableInt64** | | [optional] +**Name** | **string** | | +**Slug** | **string** | | +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefL2VPNRequest + +`func NewBriefL2VPNRequest(name string, slug string, ) *BriefL2VPNRequest` + +NewBriefL2VPNRequest instantiates a new BriefL2VPNRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNRequestWithDefaults + +`func NewBriefL2VPNRequestWithDefaults() *BriefL2VPNRequest` + +NewBriefL2VPNRequestWithDefaults instantiates a new BriefL2VPNRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentifier + +`func (o *BriefL2VPNRequest) GetIdentifier() int64` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BriefL2VPNRequest) GetIdentifierOk() (*int64, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *BriefL2VPNRequest) SetIdentifier(v int64)` + +SetIdentifier sets Identifier field to given value. + +### HasIdentifier + +`func (o *BriefL2VPNRequest) HasIdentifier() bool` + +HasIdentifier returns a boolean if a field has been set. + +### SetIdentifierNil + +`func (o *BriefL2VPNRequest) SetIdentifierNil(b bool)` + + SetIdentifierNil sets the value for Identifier to be an explicit nil + +### UnsetIdentifier +`func (o *BriefL2VPNRequest) UnsetIdentifier()` + +UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +### GetName + +`func (o *BriefL2VPNRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefL2VPNRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefL2VPNRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefL2VPNRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefL2VPNRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefL2VPNRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetType + +`func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BriefL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BriefL2VPNRequest) SetType(v BriefL2VPNTypeValue)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BriefL2VPNRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefL2VPNRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefL2VPNRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefL2VPNRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefL2VPNRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNTermination.md b/docs/BriefL2VPNTermination.md new file mode 100644 index 0000000000..121bc7753f --- /dev/null +++ b/docs/BriefL2VPNTermination.md @@ -0,0 +1,114 @@ +# BriefL2VPNTermination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | + +## Methods + +### NewBriefL2VPNTermination + +`func NewBriefL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, ) *BriefL2VPNTermination` + +NewBriefL2VPNTermination instantiates a new BriefL2VPNTermination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTerminationWithDefaults + +`func NewBriefL2VPNTerminationWithDefaults() *BriefL2VPNTermination` + +NewBriefL2VPNTerminationWithDefaults instantiates a new BriefL2VPNTermination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefL2VPNTermination) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefL2VPNTermination) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefL2VPNTermination) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefL2VPNTermination) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefL2VPNTermination) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefL2VPNTermination) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefL2VPNTermination) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefL2VPNTermination) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefL2VPNTermination) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetL2vpn + +`func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN` + +GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. + +### GetL2vpnOk + +`func (o *BriefL2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` + +GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpn + +`func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN)` + +SetL2vpn sets L2vpn field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNTerminationRequest.md b/docs/BriefL2VPNTerminationRequest.md new file mode 100644 index 0000000000..3f41ef213a --- /dev/null +++ b/docs/BriefL2VPNTerminationRequest.md @@ -0,0 +1,51 @@ +# BriefL2VPNTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | + +## Methods + +### NewBriefL2VPNTerminationRequest + +`func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, ) *BriefL2VPNTerminationRequest` + +NewBriefL2VPNTerminationRequest instantiates a new BriefL2VPNTerminationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTerminationRequestWithDefaults + +`func NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest` + +NewBriefL2VPNTerminationRequestWithDefaults instantiates a new BriefL2VPNTerminationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetL2vpn + +`func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` + +GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. + +### GetL2vpnOk + +`func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` + +GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpn + +`func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` + +SetL2vpn sets L2vpn field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNType.md b/docs/BriefL2VPNType.md new file mode 100644 index 0000000000..63ceeaefdd --- /dev/null +++ b/docs/BriefL2VPNType.md @@ -0,0 +1,82 @@ +# BriefL2VPNType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**Label** | Pointer to [**BriefL2VPNTypeLabel**](BriefL2VPNTypeLabel.md) | | [optional] + +## Methods + +### NewBriefL2VPNType + +`func NewBriefL2VPNType() *BriefL2VPNType` + +NewBriefL2VPNType instantiates a new BriefL2VPNType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTypeWithDefaults + +`func NewBriefL2VPNTypeWithDefaults() *BriefL2VPNType` + +NewBriefL2VPNTypeWithDefaults instantiates a new BriefL2VPNType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefL2VPNType) GetValue() BriefL2VPNTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefL2VPNType) GetValueOk() (*BriefL2VPNTypeValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefL2VPNType) SetValue(v BriefL2VPNTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefL2VPNType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefL2VPNType) GetLabel() BriefL2VPNTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefL2VPNType) GetLabelOk() (*BriefL2VPNTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefL2VPNType) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNTypeLabel.md b/docs/BriefL2VPNTypeLabel.md new file mode 100644 index 0000000000..757dc73ebb --- /dev/null +++ b/docs/BriefL2VPNTypeLabel.md @@ -0,0 +1,33 @@ +# BriefL2VPNTypeLabel + +## Enum + + +* `VPWS` (value: `"VPWS"`) + +* `VPLS` (value: `"VPLS"`) + +* `VXLAN` (value: `"VXLAN"`) + +* `VXLAN_EVPN` (value: `"VXLAN-EVPN"`) + +* `MPLS_EVPN` (value: `"MPLS EVPN"`) + +* `PBB_EVPN` (value: `"PBB EVPN"`) + +* `EPL` (value: `"EPL"`) + +* `EVPL` (value: `"EVPL"`) + +* `ETHERNET_PRIVATE_LAN` (value: `"Ethernet Private LAN"`) + +* `ETHERNET_VIRTUAL_PRIVATE_LAN` (value: `"Ethernet Virtual Private LAN"`) + +* `ETHERNET_PRIVATE_TREE` (value: `"Ethernet Private Tree"`) + +* `ETHERNET_VIRTUAL_PRIVATE_TREE` (value: `"Ethernet Virtual Private Tree"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNTypeValue.md b/docs/BriefL2VPNTypeValue.md new file mode 100644 index 0000000000..31d6731bbd --- /dev/null +++ b/docs/BriefL2VPNTypeValue.md @@ -0,0 +1,33 @@ +# BriefL2VPNTypeValue + +## Enum + + +* `VPWS` (value: `"vpws"`) + +* `VPLS` (value: `"vpls"`) + +* `VXLAN` (value: `"vxlan"`) + +* `VXLAN_EVPN` (value: `"vxlan-evpn"`) + +* `MPLS_EVPN` (value: `"mpls-evpn"`) + +* `PBB_EVPN` (value: `"pbb-evpn"`) + +* `EPL` (value: `"epl"`) + +* `EVPL` (value: `"evpl"`) + +* `EP_LAN` (value: `"ep-lan"`) + +* `EVP_LAN` (value: `"evp-lan"`) + +* `EP_TREE` (value: `"ep-tree"`) + +* `EVP_TREE` (value: `"evp-tree"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefLocation.md b/docs/BriefLocation.md new file mode 100644 index 0000000000..0a5f3b9923 --- /dev/null +++ b/docs/BriefLocation.md @@ -0,0 +1,203 @@ +# BriefLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**RackCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefLocation + +`func NewBriefLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *BriefLocation` + +NewBriefLocation instantiates a new BriefLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefLocationWithDefaults + +`func NewBriefLocationWithDefaults() *BriefLocation` + +NewBriefLocationWithDefaults instantiates a new BriefLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefLocation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefLocation) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefLocation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefLocation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefLocation) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefLocation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefLocation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefLocation) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefLocation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefLocation) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefLocation) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefLocation) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefLocation) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefLocation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefLocation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefLocation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefLocation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRackCount + +`func (o *BriefLocation) GetRackCount() int32` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *BriefLocation) GetRackCountOk() (*int32, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *BriefLocation) SetRackCount(v int32)` + +SetRackCount sets RackCount field to given value. + + +### GetDepth + +`func (o *BriefLocation) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefLocation) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefLocation) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefLocationRequest.md b/docs/BriefLocationRequest.md new file mode 100644 index 0000000000..1f4d74c6c0 --- /dev/null +++ b/docs/BriefLocationRequest.md @@ -0,0 +1,98 @@ +# BriefLocationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefLocationRequest + +`func NewBriefLocationRequest(name string, slug string, ) *BriefLocationRequest` + +NewBriefLocationRequest instantiates a new BriefLocationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefLocationRequestWithDefaults + +`func NewBriefLocationRequestWithDefaults() *BriefLocationRequest` + +NewBriefLocationRequestWithDefaults instantiates a new BriefLocationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefLocationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefLocationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefLocationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefLocationRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefLocationRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefLocationRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefLocationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefLocationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefLocationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefLocationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefManufacturer.md b/docs/BriefManufacturer.md new file mode 100644 index 0000000000..3994a30516 --- /dev/null +++ b/docs/BriefManufacturer.md @@ -0,0 +1,182 @@ +# BriefManufacturer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DevicetypeCount** | **int64** | | [readonly] + +## Methods + +### NewBriefManufacturer + +`func NewBriefManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64, ) *BriefManufacturer` + +NewBriefManufacturer instantiates a new BriefManufacturer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefManufacturerWithDefaults + +`func NewBriefManufacturerWithDefaults() *BriefManufacturer` + +NewBriefManufacturerWithDefaults instantiates a new BriefManufacturer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefManufacturer) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefManufacturer) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefManufacturer) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefManufacturer) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefManufacturer) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefManufacturer) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefManufacturer) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefManufacturer) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefManufacturer) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefManufacturer) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefManufacturer) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefManufacturer) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefManufacturer) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefManufacturer) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefManufacturer) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefManufacturer) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefManufacturer) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefManufacturer) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefManufacturer) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDevicetypeCount + +`func (o *BriefManufacturer) GetDevicetypeCount() int64` + +GetDevicetypeCount returns the DevicetypeCount field if non-nil, zero value otherwise. + +### GetDevicetypeCountOk + +`func (o *BriefManufacturer) GetDevicetypeCountOk() (*int64, bool)` + +GetDevicetypeCountOk returns a tuple with the DevicetypeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevicetypeCount + +`func (o *BriefManufacturer) SetDevicetypeCount(v int64)` + +SetDevicetypeCount sets DevicetypeCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefManufacturerRequest.md b/docs/BriefManufacturerRequest.md new file mode 100644 index 0000000000..ba1eb927f4 --- /dev/null +++ b/docs/BriefManufacturerRequest.md @@ -0,0 +1,98 @@ +# BriefManufacturerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefManufacturerRequest + +`func NewBriefManufacturerRequest(name string, slug string, ) *BriefManufacturerRequest` + +NewBriefManufacturerRequest instantiates a new BriefManufacturerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefManufacturerRequestWithDefaults + +`func NewBriefManufacturerRequestWithDefaults() *BriefManufacturerRequest` + +NewBriefManufacturerRequestWithDefaults instantiates a new BriefManufacturerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefManufacturerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefManufacturerRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefManufacturerRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefManufacturerRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefManufacturerRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefManufacturerRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefManufacturerRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefManufacturerRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefManufacturerRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefManufacturerRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModule.md b/docs/BriefModule.md new file mode 100644 index 0000000000..5e80bca583 --- /dev/null +++ b/docs/BriefModule.md @@ -0,0 +1,135 @@ +# BriefModule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | + +## Methods + +### NewBriefModule + +`func NewBriefModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, ) *BriefModule` + +NewBriefModule instantiates a new BriefModule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleWithDefaults + +`func NewBriefModuleWithDefaults() *BriefModule` + +NewBriefModuleWithDefaults instantiates a new BriefModule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefModule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefModule) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefModule) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefModule) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefModule) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefModule) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefModule) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefModule) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefModule) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefModule) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefModule) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefModule) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetModuleBay + +`func (o *BriefModule) GetModuleBay() NestedModuleBay` + +GetModuleBay returns the ModuleBay field if non-nil, zero value otherwise. + +### GetModuleBayOk + +`func (o *BriefModule) GetModuleBayOk() (*NestedModuleBay, bool)` + +GetModuleBayOk returns a tuple with the ModuleBay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBay + +`func (o *BriefModule) SetModuleBay(v NestedModuleBay)` + +SetModuleBay sets ModuleBay field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModuleRequest.md b/docs/BriefModuleRequest.md new file mode 100644 index 0000000000..e9cb7aa810 --- /dev/null +++ b/docs/BriefModuleRequest.md @@ -0,0 +1,72 @@ +# BriefModuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | + +## Methods + +### NewBriefModuleRequest + +`func NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, ) *BriefModuleRequest` + +NewBriefModuleRequest instantiates a new BriefModuleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleRequestWithDefaults + +`func NewBriefModuleRequestWithDefaults() *BriefModuleRequest` + +NewBriefModuleRequestWithDefaults instantiates a new BriefModuleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetModuleBay + +`func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest` + +GetModuleBay returns the ModuleBay field if non-nil, zero value otherwise. + +### GetModuleBayOk + +`func (o *BriefModuleRequest) GetModuleBayOk() (*NestedModuleBayRequest, bool)` + +GetModuleBayOk returns a tuple with the ModuleBay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBay + +`func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest)` + +SetModuleBay sets ModuleBay field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModuleType.md b/docs/BriefModuleType.md new file mode 100644 index 0000000000..320d634f99 --- /dev/null +++ b/docs/BriefModuleType.md @@ -0,0 +1,161 @@ +# BriefModuleType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefModuleType + +`func NewBriefModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string, ) *BriefModuleType` + +NewBriefModuleType instantiates a new BriefModuleType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleTypeWithDefaults + +`func NewBriefModuleTypeWithDefaults() *BriefModuleType` + +NewBriefModuleTypeWithDefaults instantiates a new BriefModuleType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefModuleType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefModuleType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefModuleType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefModuleType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefModuleType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefModuleType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefModuleType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefModuleType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefModuleType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefModuleType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefModuleType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefModuleType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefModuleType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefModuleType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetDescription + +`func (o *BriefModuleType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefModuleType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefModuleType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefModuleType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModuleTypeRequest.md b/docs/BriefModuleTypeRequest.md new file mode 100644 index 0000000000..230ec40280 --- /dev/null +++ b/docs/BriefModuleTypeRequest.md @@ -0,0 +1,98 @@ +# BriefModuleTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefModuleTypeRequest + +`func NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *BriefModuleTypeRequest` + +NewBriefModuleTypeRequest instantiates a new BriefModuleTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleTypeRequestWithDefaults + +`func NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest` + +NewBriefModuleTypeRequestWithDefaults instantiates a new BriefModuleTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefModuleTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefModuleTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefModuleTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetDescription + +`func (o *BriefModuleTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefModuleTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefModuleTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefModuleTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPlatform.md b/docs/BriefPlatform.md new file mode 100644 index 0000000000..4f9238f205 --- /dev/null +++ b/docs/BriefPlatform.md @@ -0,0 +1,203 @@ +# BriefPlatform + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | **int64** | | [readonly] +**VirtualmachineCount** | **int64** | | [readonly] + +## Methods + +### NewBriefPlatform + +`func NewBriefPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *BriefPlatform` + +NewBriefPlatform instantiates a new BriefPlatform object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPlatformWithDefaults + +`func NewBriefPlatformWithDefaults() *BriefPlatform` + +NewBriefPlatformWithDefaults instantiates a new BriefPlatform object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPlatform) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPlatform) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPlatform) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPlatform) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPlatform) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPlatform) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPlatform) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPlatform) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPlatform) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPlatform) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPlatform) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPlatform) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefPlatform) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefPlatform) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefPlatform) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefPlatform) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPlatform) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPlatform) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPlatform) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefPlatform) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefPlatform) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefPlatform) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + +### GetVirtualmachineCount + +`func (o *BriefPlatform) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefPlatform) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefPlatform) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPlatformRequest.md b/docs/BriefPlatformRequest.md new file mode 100644 index 0000000000..95c3de869f --- /dev/null +++ b/docs/BriefPlatformRequest.md @@ -0,0 +1,98 @@ +# BriefPlatformRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPlatformRequest + +`func NewBriefPlatformRequest(name string, slug string, ) *BriefPlatformRequest` + +NewBriefPlatformRequest instantiates a new BriefPlatformRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPlatformRequestWithDefaults + +`func NewBriefPlatformRequestWithDefaults() *BriefPlatformRequest` + +NewBriefPlatformRequestWithDefaults instantiates a new BriefPlatformRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPlatformRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPlatformRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPlatformRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefPlatformRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefPlatformRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefPlatformRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefPlatformRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPlatformRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPlatformRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPlatformRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPanel.md b/docs/BriefPowerPanel.md new file mode 100644 index 0000000000..76914fc7a1 --- /dev/null +++ b/docs/BriefPowerPanel.md @@ -0,0 +1,161 @@ +# BriefPowerPanel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PowerfeedCount** | **int64** | | [readonly] + +## Methods + +### NewBriefPowerPanel + +`func NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *BriefPowerPanel` + +NewBriefPowerPanel instantiates a new BriefPowerPanel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPanelWithDefaults + +`func NewBriefPowerPanelWithDefaults() *BriefPowerPanel` + +NewBriefPowerPanelWithDefaults instantiates a new BriefPowerPanel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPanel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPanel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPanel) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPanel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPanel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPanel) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPanel) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPanel) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPanel) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPowerPanel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPanel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPanel) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPanel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPanel) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPanel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPanel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPowerfeedCount + +`func (o *BriefPowerPanel) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *BriefPowerPanel) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPanelRequest.md b/docs/BriefPowerPanelRequest.md new file mode 100644 index 0000000000..20cf4027dc --- /dev/null +++ b/docs/BriefPowerPanelRequest.md @@ -0,0 +1,77 @@ +# BriefPowerPanelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPanelRequest + +`func NewBriefPowerPanelRequest(name string, ) *BriefPowerPanelRequest` + +NewBriefPowerPanelRequest instantiates a new BriefPowerPanelRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPanelRequestWithDefaults + +`func NewBriefPowerPanelRequestWithDefaults() *BriefPowerPanelRequest` + +NewBriefPowerPanelRequestWithDefaults instantiates a new BriefPowerPanelRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPowerPanelRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPanelRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPanelRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPanelRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPanelRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPanelRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPanelRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPort.md b/docs/BriefPowerPort.md new file mode 100644 index 0000000000..79e23cbce8 --- /dev/null +++ b/docs/BriefPowerPort.md @@ -0,0 +1,213 @@ +# BriefPowerPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewBriefPowerPort + +`func NewBriefPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool, ) *BriefPowerPort` + +NewBriefPowerPort instantiates a new BriefPowerPort object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortWithDefaults + +`func NewBriefPowerPortWithDefaults() *BriefPowerPort` + +NewBriefPowerPortWithDefaults instantiates a new BriefPowerPort object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPort) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPort) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPort) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPort) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPort) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPort) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPort) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPort) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPort) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefPowerPort) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefPowerPort) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefPowerPort) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefPowerPort) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPort) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPort) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPort) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPort) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPort) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPort) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCable + +`func (o *BriefPowerPort) GetCable() BriefCable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *BriefPowerPort) GetCableOk() (*BriefCable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *BriefPowerPort) SetCable(v BriefCable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *BriefPowerPort) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *BriefPowerPort) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetOccupied + +`func (o *BriefPowerPort) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *BriefPowerPort) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *BriefPowerPort) SetOccupied(v bool)` + +SetOccupied sets Occupied field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPortRequest.md b/docs/BriefPowerPortRequest.md new file mode 100644 index 0000000000..885fa69e48 --- /dev/null +++ b/docs/BriefPowerPortRequest.md @@ -0,0 +1,98 @@ +# BriefPowerPortRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortRequest + +`func NewBriefPowerPortRequest(device BriefDeviceRequest, name string, ) *BriefPowerPortRequest` + +NewBriefPowerPortRequest instantiates a new BriefPowerPortRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortRequestWithDefaults + +`func NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest` + +NewBriefPowerPortRequestWithDefaults instantiates a new BriefPowerPortRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefPowerPortRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPortTemplate.md b/docs/BriefPowerPortTemplate.md new file mode 100644 index 0000000000..5a5772d963 --- /dev/null +++ b/docs/BriefPowerPortTemplate.md @@ -0,0 +1,140 @@ +# BriefPowerPortTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortTemplate + +`func NewBriefPowerPortTemplate(id int32, url string, display string, name string, ) *BriefPowerPortTemplate` + +NewBriefPowerPortTemplate instantiates a new BriefPowerPortTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortTemplateWithDefaults + +`func NewBriefPowerPortTemplateWithDefaults() *BriefPowerPortTemplate` + +NewBriefPowerPortTemplateWithDefaults instantiates a new BriefPowerPortTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPortTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPortTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPortTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPortTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPortTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPortTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPortTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPortTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPortTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPowerPortTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortTemplate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPortTemplateRequest.md b/docs/BriefPowerPortTemplateRequest.md new file mode 100644 index 0000000000..81787bb98d --- /dev/null +++ b/docs/BriefPowerPortTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefPowerPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortTemplateRequest + +`func NewBriefPowerPortTemplateRequest(name string, ) *BriefPowerPortTemplateRequest` + +NewBriefPowerPortTemplateRequest instantiates a new BriefPowerPortTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortTemplateRequestWithDefaults + +`func NewBriefPowerPortTemplateRequestWithDefaults() *BriefPowerPortTemplateRequest` + +NewBriefPowerPortTemplateRequestWithDefaults instantiates a new BriefPowerPortTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPowerPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortTemplateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProvider.md b/docs/BriefProvider.md new file mode 100644 index 0000000000..2b0cfad582 --- /dev/null +++ b/docs/BriefProvider.md @@ -0,0 +1,182 @@ +# BriefProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | Full name of the provider | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewBriefProvider + +`func NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefProvider` + +NewBriefProvider instantiates a new BriefProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderWithDefaults + +`func NewBriefProviderWithDefaults() *BriefProvider` + +NewBriefProviderWithDefaults instantiates a new BriefProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProvider) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProvider) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProvider) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProvider) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProvider) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProvider) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProvider) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProvider) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProvider) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefProvider) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefProvider) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefProvider) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefProvider) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProvider) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProvider) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProvider) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCircuitCount + +`func (o *BriefProvider) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *BriefProvider) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *BriefProvider) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderAccount.md b/docs/BriefProviderAccount.md new file mode 100644 index 0000000000..98b6f9fd35 --- /dev/null +++ b/docs/BriefProviderAccount.md @@ -0,0 +1,166 @@ +# BriefProviderAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **string** | | [optional] [default to ""] +**Account** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderAccount + +`func NewBriefProviderAccount(id int32, url string, display string, account string, ) *BriefProviderAccount` + +NewBriefProviderAccount instantiates a new BriefProviderAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderAccountWithDefaults + +`func NewBriefProviderAccountWithDefaults() *BriefProviderAccount` + +NewBriefProviderAccountWithDefaults instantiates a new BriefProviderAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProviderAccount) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProviderAccount) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProviderAccount) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProviderAccount) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProviderAccount) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProviderAccount) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProviderAccount) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProviderAccount) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProviderAccount) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProviderAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderAccount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefProviderAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *BriefProviderAccount) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *BriefProviderAccount) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *BriefProviderAccount) SetAccount(v string)` + +SetAccount sets Account field to given value. + + +### GetDescription + +`func (o *BriefProviderAccount) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderAccount) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderAccount) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderAccount) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderAccountRequest.md b/docs/BriefProviderAccountRequest.md new file mode 100644 index 0000000000..72b16517a2 --- /dev/null +++ b/docs/BriefProviderAccountRequest.md @@ -0,0 +1,103 @@ +# BriefProviderAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] [default to ""] +**Account** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderAccountRequest + +`func NewBriefProviderAccountRequest(account string, ) *BriefProviderAccountRequest` + +NewBriefProviderAccountRequest instantiates a new BriefProviderAccountRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderAccountRequestWithDefaults + +`func NewBriefProviderAccountRequestWithDefaults() *BriefProviderAccountRequest` + +NewBriefProviderAccountRequestWithDefaults instantiates a new BriefProviderAccountRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderAccountRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderAccountRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderAccountRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefProviderAccountRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *BriefProviderAccountRequest) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *BriefProviderAccountRequest) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *BriefProviderAccountRequest) SetAccount(v string)` + +SetAccount sets Account field to given value. + + +### GetDescription + +`func (o *BriefProviderAccountRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderAccountRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderAccountRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderAccountRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderNetwork.md b/docs/BriefProviderNetwork.md new file mode 100644 index 0000000000..b7f37a3d31 --- /dev/null +++ b/docs/BriefProviderNetwork.md @@ -0,0 +1,140 @@ +# BriefProviderNetwork + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderNetwork + +`func NewBriefProviderNetwork(id int32, url string, display string, name string, ) *BriefProviderNetwork` + +NewBriefProviderNetwork instantiates a new BriefProviderNetwork object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderNetworkWithDefaults + +`func NewBriefProviderNetworkWithDefaults() *BriefProviderNetwork` + +NewBriefProviderNetworkWithDefaults instantiates a new BriefProviderNetwork object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProviderNetwork) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProviderNetwork) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProviderNetwork) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProviderNetwork) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProviderNetwork) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProviderNetwork) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProviderNetwork) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProviderNetwork) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProviderNetwork) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProviderNetwork) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderNetwork) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderNetwork) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefProviderNetwork) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderNetwork) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderNetwork) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderNetwork) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderNetworkRequest.md b/docs/BriefProviderNetworkRequest.md new file mode 100644 index 0000000000..cb801a0674 --- /dev/null +++ b/docs/BriefProviderNetworkRequest.md @@ -0,0 +1,77 @@ +# BriefProviderNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderNetworkRequest + +`func NewBriefProviderNetworkRequest(name string, ) *BriefProviderNetworkRequest` + +NewBriefProviderNetworkRequest instantiates a new BriefProviderNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderNetworkRequestWithDefaults + +`func NewBriefProviderNetworkRequestWithDefaults() *BriefProviderNetworkRequest` + +NewBriefProviderNetworkRequestWithDefaults instantiates a new BriefProviderNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefProviderNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderNetworkRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderRequest.md b/docs/BriefProviderRequest.md new file mode 100644 index 0000000000..86e8b08245 --- /dev/null +++ b/docs/BriefProviderRequest.md @@ -0,0 +1,98 @@ +# BriefProviderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Full name of the provider | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderRequest + +`func NewBriefProviderRequest(name string, slug string, ) *BriefProviderRequest` + +NewBriefProviderRequest instantiates a new BriefProviderRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderRequestWithDefaults + +`func NewBriefProviderRequestWithDefaults() *BriefProviderRequest` + +NewBriefProviderRequestWithDefaults instantiates a new BriefProviderRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefProviderRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefProviderRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefProviderRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefProviderRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRIR.md b/docs/BriefRIR.md new file mode 100644 index 0000000000..30084ad67c --- /dev/null +++ b/docs/BriefRIR.md @@ -0,0 +1,182 @@ +# BriefRIR + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**AggregateCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRIR + +`func NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *BriefRIR` + +NewBriefRIR instantiates a new BriefRIR object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRIRWithDefaults + +`func NewBriefRIRWithDefaults() *BriefRIR` + +NewBriefRIRWithDefaults instantiates a new BriefRIR object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRIR) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRIR) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRIR) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRIR) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRIR) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRIR) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRIR) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRIR) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRIR) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRIR) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRIR) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRIR) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRIR) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRIR) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRIR) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRIR) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRIR) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRIR) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRIR) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAggregateCount + +`func (o *BriefRIR) GetAggregateCount() int64` + +GetAggregateCount returns the AggregateCount field if non-nil, zero value otherwise. + +### GetAggregateCountOk + +`func (o *BriefRIR) GetAggregateCountOk() (*int64, bool)` + +GetAggregateCountOk returns a tuple with the AggregateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateCount + +`func (o *BriefRIR) SetAggregateCount(v int64)` + +SetAggregateCount sets AggregateCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRIRRequest.md b/docs/BriefRIRRequest.md new file mode 100644 index 0000000000..b22e58156b --- /dev/null +++ b/docs/BriefRIRRequest.md @@ -0,0 +1,98 @@ +# BriefRIRRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRIRRequest + +`func NewBriefRIRRequest(name string, slug string, ) *BriefRIRRequest` + +NewBriefRIRRequest instantiates a new BriefRIRRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRIRRequestWithDefaults + +`func NewBriefRIRRequestWithDefaults() *BriefRIRRequest` + +NewBriefRIRRequestWithDefaults instantiates a new BriefRIRRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRIRRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRIRRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRIRRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRIRRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRIRRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRIRRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRIRRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRIRRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRIRRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRIRRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRack.md b/docs/BriefRack.md new file mode 100644 index 0000000000..045b88e14f --- /dev/null +++ b/docs/BriefRack.md @@ -0,0 +1,161 @@ +# BriefRack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRack + +`func NewBriefRack(id int32, url string, display string, name string, deviceCount int64, ) *BriefRack` + +NewBriefRack instantiates a new BriefRack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackWithDefaults + +`func NewBriefRackWithDefaults() *BriefRack` + +NewBriefRackWithDefaults instantiates a new BriefRack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRack) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRack) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRack) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRack) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRack) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRack) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRack) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRack) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRack) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRack) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRack) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRack) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRack) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRack) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefRack) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefRack) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefRack) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackRequest.md b/docs/BriefRackRequest.md new file mode 100644 index 0000000000..a360440062 --- /dev/null +++ b/docs/BriefRackRequest.md @@ -0,0 +1,77 @@ +# BriefRackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackRequest + +`func NewBriefRackRequest(name string, ) *BriefRackRequest` + +NewBriefRackRequest instantiates a new BriefRackRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRequestWithDefaults + +`func NewBriefRackRequestWithDefaults() *BriefRackRequest` + +NewBriefRackRequestWithDefaults instantiates a new BriefRackRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRackRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRackRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackRole.md b/docs/BriefRackRole.md new file mode 100644 index 0000000000..8b1cd4fb9c --- /dev/null +++ b/docs/BriefRackRole.md @@ -0,0 +1,182 @@ +# BriefRackRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**RackCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRackRole + +`func NewBriefRackRole(id int32, url string, display string, name string, slug string, rackCount int64, ) *BriefRackRole` + +NewBriefRackRole instantiates a new BriefRackRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRoleWithDefaults + +`func NewBriefRackRoleWithDefaults() *BriefRackRole` + +NewBriefRackRoleWithDefaults instantiates a new BriefRackRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRackRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRackRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRackRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRackRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRackRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRackRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRackRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRackRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRackRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRackRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRackRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRackCount + +`func (o *BriefRackRole) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *BriefRackRole) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *BriefRackRole) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackRoleRequest.md b/docs/BriefRackRoleRequest.md new file mode 100644 index 0000000000..9b1a04ce24 --- /dev/null +++ b/docs/BriefRackRoleRequest.md @@ -0,0 +1,98 @@ +# BriefRackRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackRoleRequest + +`func NewBriefRackRoleRequest(name string, slug string, ) *BriefRackRoleRequest` + +NewBriefRackRoleRequest instantiates a new BriefRackRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRoleRequestWithDefaults + +`func NewBriefRackRoleRequestWithDefaults() *BriefRackRoleRequest` + +NewBriefRackRoleRequestWithDefaults instantiates a new BriefRackRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRackRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRackRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackType.md b/docs/BriefRackType.md new file mode 100644 index 0000000000..a2c5e0a410 --- /dev/null +++ b/docs/BriefRackType.md @@ -0,0 +1,182 @@ +# BriefRackType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackType + +`func NewBriefRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, ) *BriefRackType` + +NewBriefRackType instantiates a new BriefRackType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackTypeWithDefaults + +`func NewBriefRackTypeWithDefaults() *BriefRackType` + +NewBriefRackTypeWithDefaults instantiates a new BriefRackType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRackType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRackType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRackType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRackType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRackType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRackType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRackType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRackType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRackType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefRackType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefRackType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefRackType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefRackType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefRackType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefRackType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefRackType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackTypeRequest.md b/docs/BriefRackTypeRequest.md new file mode 100644 index 0000000000..5cfa32e382 --- /dev/null +++ b/docs/BriefRackTypeRequest.md @@ -0,0 +1,119 @@ +# BriefRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackTypeRequest + +`func NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *BriefRackTypeRequest` + +NewBriefRackTypeRequest instantiates a new BriefRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackTypeRequestWithDefaults + +`func NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest` + +NewBriefRackTypeRequestWithDefaults instantiates a new BriefRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRearPortTemplate.md b/docs/BriefRearPortTemplate.md new file mode 100644 index 0000000000..3849d33c2b --- /dev/null +++ b/docs/BriefRearPortTemplate.md @@ -0,0 +1,140 @@ +# BriefRearPortTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRearPortTemplate + +`func NewBriefRearPortTemplate(id int32, url string, display string, name string, ) *BriefRearPortTemplate` + +NewBriefRearPortTemplate instantiates a new BriefRearPortTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRearPortTemplateWithDefaults + +`func NewBriefRearPortTemplateWithDefaults() *BriefRearPortTemplate` + +NewBriefRearPortTemplateWithDefaults instantiates a new BriefRearPortTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRearPortTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRearPortTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRearPortTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRearPortTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRearPortTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRearPortTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRearPortTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRearPortTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRearPortTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRearPortTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRearPortTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRearPortTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRearPortTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRearPortTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRearPortTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRearPortTemplate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRearPortTemplateRequest.md b/docs/BriefRearPortTemplateRequest.md new file mode 100644 index 0000000000..8c0720a7e6 --- /dev/null +++ b/docs/BriefRearPortTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefRearPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRearPortTemplateRequest + +`func NewBriefRearPortTemplateRequest(name string, ) *BriefRearPortTemplateRequest` + +NewBriefRearPortTemplateRequest instantiates a new BriefRearPortTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRearPortTemplateRequestWithDefaults + +`func NewBriefRearPortTemplateRequestWithDefaults() *BriefRearPortTemplateRequest` + +NewBriefRearPortTemplateRequestWithDefaults instantiates a new BriefRearPortTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRearPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRearPortTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRearPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRearPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRearPortTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRearPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRearPortTemplateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRegion.md b/docs/BriefRegion.md new file mode 100644 index 0000000000..a77d1bcf34 --- /dev/null +++ b/docs/BriefRegion.md @@ -0,0 +1,203 @@ +# BriefRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**SiteCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefRegion + +`func NewBriefRegion(id int32, url string, display string, name string, slug string, siteCount int32, depth int32, ) *BriefRegion` + +NewBriefRegion instantiates a new BriefRegion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRegionWithDefaults + +`func NewBriefRegionWithDefaults() *BriefRegion` + +NewBriefRegionWithDefaults instantiates a new BriefRegion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRegion) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRegion) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRegion) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRegion) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRegion) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRegion) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRegion) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRegion) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRegion) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRegion) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRegion) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRegion) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRegion) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRegion) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRegion) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRegion) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRegion) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRegion) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRegion) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSiteCount + +`func (o *BriefRegion) GetSiteCount() int32` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *BriefRegion) GetSiteCountOk() (*int32, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *BriefRegion) SetSiteCount(v int32)` + +SetSiteCount sets SiteCount field to given value. + + +### GetDepth + +`func (o *BriefRegion) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefRegion) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefRegion) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRegionRequest.md b/docs/BriefRegionRequest.md new file mode 100644 index 0000000000..eef94bb0de --- /dev/null +++ b/docs/BriefRegionRequest.md @@ -0,0 +1,98 @@ +# BriefRegionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRegionRequest + +`func NewBriefRegionRequest(name string, slug string, ) *BriefRegionRequest` + +NewBriefRegionRequest instantiates a new BriefRegionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRegionRequestWithDefaults + +`func NewBriefRegionRequestWithDefaults() *BriefRegionRequest` + +NewBriefRegionRequestWithDefaults instantiates a new BriefRegionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRegionRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRegionRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRegionRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRegionRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRegionRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRegionRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRegionRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRegionRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRegionRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRegionRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRole.md b/docs/BriefRole.md new file mode 100644 index 0000000000..540af7c51a --- /dev/null +++ b/docs/BriefRole.md @@ -0,0 +1,203 @@ +# BriefRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PrefixCount** | **int64** | | [readonly] +**VlanCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRole + +`func NewBriefRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64, ) *BriefRole` + +NewBriefRole instantiates a new BriefRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRoleWithDefaults + +`func NewBriefRoleWithDefaults() *BriefRole` + +NewBriefRoleWithDefaults instantiates a new BriefRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *BriefRole) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *BriefRole) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *BriefRole) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + +### GetVlanCount + +`func (o *BriefRole) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *BriefRole) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *BriefRole) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRoleRequest.md b/docs/BriefRoleRequest.md new file mode 100644 index 0000000000..e42a2bccfb --- /dev/null +++ b/docs/BriefRoleRequest.md @@ -0,0 +1,98 @@ +# BriefRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRoleRequest + +`func NewBriefRoleRequest(name string, slug string, ) *BriefRoleRequest` + +NewBriefRoleRequest instantiates a new BriefRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRoleRequestWithDefaults + +`func NewBriefRoleRequestWithDefaults() *BriefRoleRequest` + +NewBriefRoleRequestWithDefaults instantiates a new BriefRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefSite.md b/docs/BriefSite.md new file mode 100644 index 0000000000..16f9519a01 --- /dev/null +++ b/docs/BriefSite.md @@ -0,0 +1,161 @@ +# BriefSite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | Full name of the site | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSite + +`func NewBriefSite(id int32, url string, display string, name string, slug string, ) *BriefSite` + +NewBriefSite instantiates a new BriefSite object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteWithDefaults + +`func NewBriefSiteWithDefaults() *BriefSite` + +NewBriefSiteWithDefaults instantiates a new BriefSite object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefSite) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefSite) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefSite) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefSite) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefSite) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefSite) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefSite) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefSite) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefSite) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefSite) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSite) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSite) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSite) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSite) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSite) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSite) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSite) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSite) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSite) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefSiteGroup.md b/docs/BriefSiteGroup.md new file mode 100644 index 0000000000..72c29685d3 --- /dev/null +++ b/docs/BriefSiteGroup.md @@ -0,0 +1,203 @@ +# BriefSiteGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**SiteCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefSiteGroup + +`func NewBriefSiteGroup(id int32, url string, display string, name string, slug string, siteCount int32, depth int32, ) *BriefSiteGroup` + +NewBriefSiteGroup instantiates a new BriefSiteGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteGroupWithDefaults + +`func NewBriefSiteGroupWithDefaults() *BriefSiteGroup` + +NewBriefSiteGroupWithDefaults instantiates a new BriefSiteGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefSiteGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefSiteGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefSiteGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefSiteGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefSiteGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefSiteGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefSiteGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefSiteGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefSiteGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefSiteGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSiteCount + +`func (o *BriefSiteGroup) GetSiteCount() int32` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *BriefSiteGroup) GetSiteCountOk() (*int32, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *BriefSiteGroup) SetSiteCount(v int32)` + +SetSiteCount sets SiteCount field to given value. + + +### GetDepth + +`func (o *BriefSiteGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefSiteGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefSiteGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefSiteGroupRequest.md b/docs/BriefSiteGroupRequest.md new file mode 100644 index 0000000000..b1c35391d6 --- /dev/null +++ b/docs/BriefSiteGroupRequest.md @@ -0,0 +1,98 @@ +# BriefSiteGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSiteGroupRequest + +`func NewBriefSiteGroupRequest(name string, slug string, ) *BriefSiteGroupRequest` + +NewBriefSiteGroupRequest instantiates a new BriefSiteGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteGroupRequestWithDefaults + +`func NewBriefSiteGroupRequestWithDefaults() *BriefSiteGroupRequest` + +NewBriefSiteGroupRequestWithDefaults instantiates a new BriefSiteGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefSiteGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefSiteRequest.md b/docs/BriefSiteRequest.md new file mode 100644 index 0000000000..bf692187b2 --- /dev/null +++ b/docs/BriefSiteRequest.md @@ -0,0 +1,98 @@ +# BriefSiteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Full name of the site | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSiteRequest + +`func NewBriefSiteRequest(name string, slug string, ) *BriefSiteRequest` + +NewBriefSiteRequest instantiates a new BriefSiteRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteRequestWithDefaults + +`func NewBriefSiteRequestWithDefaults() *BriefSiteRequest` + +NewBriefSiteRequestWithDefaults instantiates a new BriefSiteRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefSiteRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTenant.md b/docs/BriefTenant.md new file mode 100644 index 0000000000..19156dfc01 --- /dev/null +++ b/docs/BriefTenant.md @@ -0,0 +1,161 @@ +# BriefTenant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenant + +`func NewBriefTenant(id int32, url string, display string, name string, slug string, ) *BriefTenant` + +NewBriefTenant instantiates a new BriefTenant object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantWithDefaults + +`func NewBriefTenantWithDefaults() *BriefTenant` + +NewBriefTenantWithDefaults instantiates a new BriefTenant object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTenant) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTenant) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTenant) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTenant) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTenant) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTenant) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTenant) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTenant) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTenant) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTenant) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenant) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenant) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenant) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenant) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenant) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenant) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenant) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenant) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenant) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTenantGroup.md b/docs/BriefTenantGroup.md new file mode 100644 index 0000000000..513eb69565 --- /dev/null +++ b/docs/BriefTenantGroup.md @@ -0,0 +1,203 @@ +# BriefTenantGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**TenantCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefTenantGroup + +`func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32, ) *BriefTenantGroup` + +NewBriefTenantGroup instantiates a new BriefTenantGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantGroupWithDefaults + +`func NewBriefTenantGroupWithDefaults() *BriefTenantGroup` + +NewBriefTenantGroupWithDefaults instantiates a new BriefTenantGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTenantGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTenantGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTenantGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTenantGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTenantGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTenantGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTenantGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTenantGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTenantGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTenantGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenantCount + +`func (o *BriefTenantGroup) GetTenantCount() int32` + +GetTenantCount returns the TenantCount field if non-nil, zero value otherwise. + +### GetTenantCountOk + +`func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool)` + +GetTenantCountOk returns a tuple with the TenantCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantCount + +`func (o *BriefTenantGroup) SetTenantCount(v int32)` + +SetTenantCount sets TenantCount field to given value. + + +### GetDepth + +`func (o *BriefTenantGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefTenantGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefTenantGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTenantGroupRequest.md b/docs/BriefTenantGroupRequest.md new file mode 100644 index 0000000000..2db94d1200 --- /dev/null +++ b/docs/BriefTenantGroupRequest.md @@ -0,0 +1,98 @@ +# BriefTenantGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenantGroupRequest + +`func NewBriefTenantGroupRequest(name string, slug string, ) *BriefTenantGroupRequest` + +NewBriefTenantGroupRequest instantiates a new BriefTenantGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantGroupRequestWithDefaults + +`func NewBriefTenantGroupRequestWithDefaults() *BriefTenantGroupRequest` + +NewBriefTenantGroupRequestWithDefaults instantiates a new BriefTenantGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTenantGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTenantRequest.md b/docs/BriefTenantRequest.md new file mode 100644 index 0000000000..5c45f38146 --- /dev/null +++ b/docs/BriefTenantRequest.md @@ -0,0 +1,98 @@ +# BriefTenantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenantRequest + +`func NewBriefTenantRequest(name string, slug string, ) *BriefTenantRequest` + +NewBriefTenantRequest instantiates a new BriefTenantRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantRequestWithDefaults + +`func NewBriefTenantRequestWithDefaults() *BriefTenantRequest` + +NewBriefTenantRequestWithDefaults instantiates a new BriefTenantRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTenantRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTunnel.md b/docs/BriefTunnel.md new file mode 100644 index 0000000000..cab03cd7ec --- /dev/null +++ b/docs/BriefTunnel.md @@ -0,0 +1,140 @@ +# BriefTunnel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnel + +`func NewBriefTunnel(id int32, url string, display string, name string, ) *BriefTunnel` + +NewBriefTunnel instantiates a new BriefTunnel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelWithDefaults + +`func NewBriefTunnelWithDefaults() *BriefTunnel` + +NewBriefTunnelWithDefaults instantiates a new BriefTunnel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTunnel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTunnel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTunnel) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTunnel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTunnel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTunnel) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTunnel) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTunnel) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTunnel) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTunnel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnel) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefTunnel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnel) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTunnelGroup.md b/docs/BriefTunnelGroup.md new file mode 100644 index 0000000000..ca2d774643 --- /dev/null +++ b/docs/BriefTunnelGroup.md @@ -0,0 +1,182 @@ +# BriefTunnelGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**TunnelCount** | **int64** | | [readonly] + +## Methods + +### NewBriefTunnelGroup + +`func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64, ) *BriefTunnelGroup` + +NewBriefTunnelGroup instantiates a new BriefTunnelGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelGroupWithDefaults + +`func NewBriefTunnelGroupWithDefaults() *BriefTunnelGroup` + +NewBriefTunnelGroupWithDefaults instantiates a new BriefTunnelGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTunnelGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTunnelGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTunnelGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTunnelGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTunnelGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTunnelGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTunnelGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTunnelGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTunnelGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTunnelGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTunnelGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTunnelGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTunnelGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTunnelGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTunnelCount + +`func (o *BriefTunnelGroup) GetTunnelCount() int64` + +GetTunnelCount returns the TunnelCount field if non-nil, zero value otherwise. + +### GetTunnelCountOk + +`func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool)` + +GetTunnelCountOk returns a tuple with the TunnelCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelCount + +`func (o *BriefTunnelGroup) SetTunnelCount(v int64)` + +SetTunnelCount sets TunnelCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTunnelGroupRequest.md b/docs/BriefTunnelGroupRequest.md new file mode 100644 index 0000000000..8db15328a3 --- /dev/null +++ b/docs/BriefTunnelGroupRequest.md @@ -0,0 +1,98 @@ +# BriefTunnelGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnelGroupRequest + +`func NewBriefTunnelGroupRequest(name string, slug string, ) *BriefTunnelGroupRequest` + +NewBriefTunnelGroupRequest instantiates a new BriefTunnelGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelGroupRequestWithDefaults + +`func NewBriefTunnelGroupRequestWithDefaults() *BriefTunnelGroupRequest` + +NewBriefTunnelGroupRequestWithDefaults instantiates a new BriefTunnelGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTunnelGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTunnelGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTunnelGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTunnelGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTunnelGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTunnelRequest.md b/docs/BriefTunnelRequest.md new file mode 100644 index 0000000000..74b5f1acd5 --- /dev/null +++ b/docs/BriefTunnelRequest.md @@ -0,0 +1,77 @@ +# BriefTunnelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnelRequest + +`func NewBriefTunnelRequest(name string, ) *BriefTunnelRequest` + +NewBriefTunnelRequest instantiates a new BriefTunnelRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelRequestWithDefaults + +`func NewBriefTunnelRequestWithDefaults() *BriefTunnelRequest` + +NewBriefTunnelRequestWithDefaults instantiates a new BriefTunnelRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTunnelRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefTunnelRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefUser.md b/docs/BriefUser.md new file mode 100644 index 0000000000..6f3cab5649 --- /dev/null +++ b/docs/BriefUser.md @@ -0,0 +1,114 @@ +# BriefUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | + +## Methods + +### NewBriefUser + +`func NewBriefUser(id int32, url string, display string, username string, ) *BriefUser` + +NewBriefUser instantiates a new BriefUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefUserWithDefaults + +`func NewBriefUserWithDefaults() *BriefUser` + +NewBriefUserWithDefaults instantiates a new BriefUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefUser) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefUser) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefUser) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefUser) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefUser) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefUser) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefUser) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefUser) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefUser) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetUsername + +`func (o *BriefUser) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BriefUser) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BriefUser) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefUserRequest.md b/docs/BriefUserRequest.md new file mode 100644 index 0000000000..f3559dd8e0 --- /dev/null +++ b/docs/BriefUserRequest.md @@ -0,0 +1,51 @@ +# BriefUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | + +## Methods + +### NewBriefUserRequest + +`func NewBriefUserRequest(username string, ) *BriefUserRequest` + +NewBriefUserRequest instantiates a new BriefUserRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefUserRequestWithDefaults + +`func NewBriefUserRequestWithDefaults() *BriefUserRequest` + +NewBriefUserRequestWithDefaults instantiates a new BriefUserRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *BriefUserRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BriefUserRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BriefUserRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLAN.md b/docs/BriefVLAN.md new file mode 100644 index 0000000000..da6784bd4c --- /dev/null +++ b/docs/BriefVLAN.md @@ -0,0 +1,161 @@ +# BriefVLAN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLAN + +`func NewBriefVLAN(id int32, url string, display string, vid int32, name string, ) *BriefVLAN` + +NewBriefVLAN instantiates a new BriefVLAN object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANWithDefaults + +`func NewBriefVLANWithDefaults() *BriefVLAN` + +NewBriefVLANWithDefaults instantiates a new BriefVLAN object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVLAN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVLAN) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVLAN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVLAN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVLAN) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVLAN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVLAN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVLAN) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVLAN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVid + +`func (o *BriefVLAN) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *BriefVLAN) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *BriefVLAN) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *BriefVLAN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLAN) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLAN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVLAN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLAN) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLAN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLAN) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLANGroup.md b/docs/BriefVLANGroup.md new file mode 100644 index 0000000000..a38b95b4e2 --- /dev/null +++ b/docs/BriefVLANGroup.md @@ -0,0 +1,182 @@ +# BriefVLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**VlanCount** | **int64** | | [readonly] + +## Methods + +### NewBriefVLANGroup + +`func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64, ) *BriefVLANGroup` + +NewBriefVLANGroup instantiates a new BriefVLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANGroupWithDefaults + +`func NewBriefVLANGroupWithDefaults() *BriefVLANGroup` + +NewBriefVLANGroupWithDefaults instantiates a new BriefVLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefVLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefVLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefVLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefVLANGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *BriefVLANGroup) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *BriefVLANGroup) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLANGroupRequest.md b/docs/BriefVLANGroupRequest.md new file mode 100644 index 0000000000..a77682fe08 --- /dev/null +++ b/docs/BriefVLANGroupRequest.md @@ -0,0 +1,98 @@ +# BriefVLANGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLANGroupRequest + +`func NewBriefVLANGroupRequest(name string, slug string, ) *BriefVLANGroupRequest` + +NewBriefVLANGroupRequest instantiates a new BriefVLANGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANGroupRequestWithDefaults + +`func NewBriefVLANGroupRequestWithDefaults() *BriefVLANGroupRequest` + +NewBriefVLANGroupRequestWithDefaults instantiates a new BriefVLANGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVLANGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefVLANGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefVLANGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefVLANGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefVLANGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLANRequest.md b/docs/BriefVLANRequest.md new file mode 100644 index 0000000000..c90d381673 --- /dev/null +++ b/docs/BriefVLANRequest.md @@ -0,0 +1,98 @@ +# BriefVLANRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLANRequest + +`func NewBriefVLANRequest(vid int32, name string, ) *BriefVLANRequest` + +NewBriefVLANRequest instantiates a new BriefVLANRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANRequestWithDefaults + +`func NewBriefVLANRequestWithDefaults() *BriefVLANRequest` + +NewBriefVLANRequestWithDefaults instantiates a new BriefVLANRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVid + +`func (o *BriefVLANRequest) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *BriefVLANRequest) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *BriefVLANRequest) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *BriefVLANRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVLANRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVRF.md b/docs/BriefVRF.md new file mode 100644 index 0000000000..21e9e137af --- /dev/null +++ b/docs/BriefVRF.md @@ -0,0 +1,197 @@ +# BriefVRF + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Description** | Pointer to **string** | | [optional] +**PrefixCount** | **int64** | | [readonly] + +## Methods + +### NewBriefVRF + +`func NewBriefVRF(id int32, url string, display string, name string, prefixCount int64, ) *BriefVRF` + +NewBriefVRF instantiates a new BriefVRF object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVRFWithDefaults + +`func NewBriefVRFWithDefaults() *BriefVRF` + +NewBriefVRFWithDefaults instantiates a new BriefVRF object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVRF) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVRF) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVRF) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVRF) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVRF) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVRF) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVRF) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVRF) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVRF) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVRF) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVRF) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVRF) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRd + +`func (o *BriefVRF) GetRd() string` + +GetRd returns the Rd field if non-nil, zero value otherwise. + +### GetRdOk + +`func (o *BriefVRF) GetRdOk() (*string, bool)` + +GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRd + +`func (o *BriefVRF) SetRd(v string)` + +SetRd sets Rd field to given value. + +### HasRd + +`func (o *BriefVRF) HasRd() bool` + +HasRd returns a boolean if a field has been set. + +### SetRdNil + +`func (o *BriefVRF) SetRdNil(b bool)` + + SetRdNil sets the value for Rd to be an explicit nil + +### UnsetRd +`func (o *BriefVRF) UnsetRd()` + +UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetDescription + +`func (o *BriefVRF) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVRF) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVRF) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVRF) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *BriefVRF) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *BriefVRF) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *BriefVRF) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVRFRequest.md b/docs/BriefVRFRequest.md new file mode 100644 index 0000000000..c942553aee --- /dev/null +++ b/docs/BriefVRFRequest.md @@ -0,0 +1,113 @@ +# BriefVRFRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVRFRequest + +`func NewBriefVRFRequest(name string, ) *BriefVRFRequest` + +NewBriefVRFRequest instantiates a new BriefVRFRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVRFRequestWithDefaults + +`func NewBriefVRFRequestWithDefaults() *BriefVRFRequest` + +NewBriefVRFRequestWithDefaults instantiates a new BriefVRFRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVRFRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVRFRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVRFRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRd + +`func (o *BriefVRFRequest) GetRd() string` + +GetRd returns the Rd field if non-nil, zero value otherwise. + +### GetRdOk + +`func (o *BriefVRFRequest) GetRdOk() (*string, bool)` + +GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRd + +`func (o *BriefVRFRequest) SetRd(v string)` + +SetRd sets Rd field to given value. + +### HasRd + +`func (o *BriefVRFRequest) HasRd() bool` + +HasRd returns a boolean if a field has been set. + +### SetRdNil + +`func (o *BriefVRFRequest) SetRdNil(b bool)` + + SetRdNil sets the value for Rd to be an explicit nil + +### UnsetRd +`func (o *BriefVRFRequest) UnsetRd()` + +UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetDescription + +`func (o *BriefVRFRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVRFRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVRFRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVRFRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVirtualChassis.md b/docs/BriefVirtualChassis.md new file mode 100644 index 0000000000..304b6f30d4 --- /dev/null +++ b/docs/BriefVirtualChassis.md @@ -0,0 +1,197 @@ +# BriefVirtualChassis + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**MemberCount** | **int32** | | [readonly] + +## Methods + +### NewBriefVirtualChassis + +`func NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *BriefVirtualChassis` + +NewBriefVirtualChassis instantiates a new BriefVirtualChassis object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualChassisWithDefaults + +`func NewBriefVirtualChassisWithDefaults() *BriefVirtualChassis` + +NewBriefVirtualChassisWithDefaults instantiates a new BriefVirtualChassis object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVirtualChassis) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVirtualChassis) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVirtualChassis) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVirtualChassis) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVirtualChassis) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVirtualChassis) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVirtualChassis) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVirtualChassis) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVirtualChassis) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVirtualChassis) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualChassis) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualChassis) SetName(v string)` + +SetName sets Name field to given value. + + +### GetMaster + +`func (o *BriefVirtualChassis) GetMaster() NestedDevice` + +GetMaster returns the Master field if non-nil, zero value otherwise. + +### GetMasterOk + +`func (o *BriefVirtualChassis) GetMasterOk() (*NestedDevice, bool)` + +GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaster + +`func (o *BriefVirtualChassis) SetMaster(v NestedDevice)` + +SetMaster sets Master field to given value. + +### HasMaster + +`func (o *BriefVirtualChassis) HasMaster() bool` + +HasMaster returns a boolean if a field has been set. + +### SetMasterNil + +`func (o *BriefVirtualChassis) SetMasterNil(b bool)` + + SetMasterNil sets the value for Master to be an explicit nil + +### UnsetMaster +`func (o *BriefVirtualChassis) UnsetMaster()` + +UnsetMaster ensures that no value is present for Master, not even an explicit nil +### GetDescription + +`func (o *BriefVirtualChassis) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualChassis) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualChassis) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualChassis) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMemberCount + +`func (o *BriefVirtualChassis) GetMemberCount() int32` + +GetMemberCount returns the MemberCount field if non-nil, zero value otherwise. + +### GetMemberCountOk + +`func (o *BriefVirtualChassis) GetMemberCountOk() (*int32, bool)` + +GetMemberCountOk returns a tuple with the MemberCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberCount + +`func (o *BriefVirtualChassis) SetMemberCount(v int32)` + +SetMemberCount sets MemberCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVirtualChassisRequest.md b/docs/BriefVirtualChassisRequest.md new file mode 100644 index 0000000000..168d675ed4 --- /dev/null +++ b/docs/BriefVirtualChassisRequest.md @@ -0,0 +1,113 @@ +# BriefVirtualChassisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualChassisRequest + +`func NewBriefVirtualChassisRequest(name string, ) *BriefVirtualChassisRequest` + +NewBriefVirtualChassisRequest instantiates a new BriefVirtualChassisRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualChassisRequestWithDefaults + +`func NewBriefVirtualChassisRequestWithDefaults() *BriefVirtualChassisRequest` + +NewBriefVirtualChassisRequestWithDefaults instantiates a new BriefVirtualChassisRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVirtualChassisRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualChassisRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualChassisRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetMaster + +`func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest` + +GetMaster returns the Master field if non-nil, zero value otherwise. + +### GetMasterOk + +`func (o *BriefVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool)` + +GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaster + +`func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest)` + +SetMaster sets Master field to given value. + +### HasMaster + +`func (o *BriefVirtualChassisRequest) HasMaster() bool` + +HasMaster returns a boolean if a field has been set. + +### SetMasterNil + +`func (o *BriefVirtualChassisRequest) SetMasterNil(b bool)` + + SetMasterNil sets the value for Master to be an explicit nil + +### UnsetMaster +`func (o *BriefVirtualChassisRequest) UnsetMaster()` + +UnsetMaster ensures that no value is present for Master, not even an explicit nil +### GetDescription + +`func (o *BriefVirtualChassisRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualChassisRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualChassisRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualChassisRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVirtualMachine.md b/docs/BriefVirtualMachine.md new file mode 100644 index 0000000000..224fa020bd --- /dev/null +++ b/docs/BriefVirtualMachine.md @@ -0,0 +1,140 @@ +# BriefVirtualMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualMachine + +`func NewBriefVirtualMachine(id int32, url string, display string, name string, ) *BriefVirtualMachine` + +NewBriefVirtualMachine instantiates a new BriefVirtualMachine object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualMachineWithDefaults + +`func NewBriefVirtualMachineWithDefaults() *BriefVirtualMachine` + +NewBriefVirtualMachineWithDefaults instantiates a new BriefVirtualMachine object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVirtualMachine) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVirtualMachine) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVirtualMachine) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVirtualMachine) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVirtualMachine) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVirtualMachine) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVirtualMachine) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVirtualMachine) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVirtualMachine) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVirtualMachine) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualMachine) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualMachine) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVirtualMachine) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualMachine) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualMachine) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualMachine) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVirtualMachineRequest.md b/docs/BriefVirtualMachineRequest.md new file mode 100644 index 0000000000..8c147c303b --- /dev/null +++ b/docs/BriefVirtualMachineRequest.md @@ -0,0 +1,77 @@ +# BriefVirtualMachineRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualMachineRequest + +`func NewBriefVirtualMachineRequest(name string, ) *BriefVirtualMachineRequest` + +NewBriefVirtualMachineRequest instantiates a new BriefVirtualMachineRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualMachineRequestWithDefaults + +`func NewBriefVirtualMachineRequestWithDefaults() *BriefVirtualMachineRequest` + +NewBriefVirtualMachineRequestWithDefaults instantiates a new BriefVirtualMachineRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVirtualMachineRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualMachineRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualMachineRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVirtualMachineRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualMachineRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualMachineRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualMachineRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefWirelessLANGroup.md b/docs/BriefWirelessLANGroup.md new file mode 100644 index 0000000000..680e013dac --- /dev/null +++ b/docs/BriefWirelessLANGroup.md @@ -0,0 +1,203 @@ +# BriefWirelessLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**WirelesslanCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefWirelessLANGroup + +`func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *BriefWirelessLANGroup` + +NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefWirelessLANGroupWithDefaults + +`func NewBriefWirelessLANGroupWithDefaults() *BriefWirelessLANGroup` + +NewBriefWirelessLANGroupWithDefaults instantiates a new BriefWirelessLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefWirelessLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefWirelessLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefWirelessLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefWirelessLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefWirelessLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefWirelessLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefWirelessLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefWirelessLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefWirelessLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefWirelessLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefWirelessLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefWirelessLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefWirelessLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefWirelessLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefWirelessLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefWirelessLANGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefWirelessLANGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefWirelessLANGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefWirelessLANGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetWirelesslanCount + +`func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32` + +GetWirelesslanCount returns the WirelesslanCount field if non-nil, zero value otherwise. + +### GetWirelesslanCountOk + +`func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool)` + +GetWirelesslanCountOk returns a tuple with the WirelesslanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWirelesslanCount + +`func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32)` + +SetWirelesslanCount sets WirelesslanCount field to given value. + + +### GetDepth + +`func (o *BriefWirelessLANGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefWirelessLANGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefWirelessLANGroupRequest.md b/docs/BriefWirelessLANGroupRequest.md new file mode 100644 index 0000000000..7e45eb4506 --- /dev/null +++ b/docs/BriefWirelessLANGroupRequest.md @@ -0,0 +1,98 @@ +# BriefWirelessLANGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefWirelessLANGroupRequest + +`func NewBriefWirelessLANGroupRequest(name string, slug string, ) *BriefWirelessLANGroupRequest` + +NewBriefWirelessLANGroupRequest instantiates a new BriefWirelessLANGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefWirelessLANGroupRequestWithDefaults + +`func NewBriefWirelessLANGroupRequestWithDefaults() *BriefWirelessLANGroupRequest` + +NewBriefWirelessLANGroupRequestWithDefaults instantiates a new BriefWirelessLANGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefWirelessLANGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefWirelessLANGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefWirelessLANGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefWirelessLANGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefWirelessLANGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefWirelessLANGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefWirelessLANGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefWirelessLANGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefWirelessLANGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefWirelessLANGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Cable.md b/docs/Cable.md index 389a4c6163..8a7a7c89e6 100644 --- a/docs/Cable.md +++ b/docs/Cable.md @@ -6,15 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableLengthUnit**](CableLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewCable -`func NewCable(id int32, url string, display string, ) *Cable` +`func NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime, ) *Cable` NewCable instantiates a new Cable object This constructor will assign default values to properties that have it defined, @@ -69,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cable) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cable) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cable) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Cable) GetDisplay() string` @@ -89,6 +123,141 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetType + +`func (o *Cable) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cable) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cable) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Cable) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *Cable) GetATerminations() []GenericObject` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *Cable) GetATerminationsOk() (*[]GenericObject, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *Cable) SetATerminations(v []GenericObject)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *Cable) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *Cable) GetBTerminations() []GenericObject` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *Cable) GetBTerminationsOk() (*[]GenericObject, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *Cable) SetBTerminations(v []GenericObject)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *Cable) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *Cable) GetStatus() CableStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cable) GetStatusOk() (*CableStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cable) SetStatus(v CableStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cable) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cable) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cable) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cable) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cable) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cable) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cable) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *Cable) GetLabel() string` @@ -114,6 +283,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *Cable) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *Cable) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *Cable) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *Cable) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *Cable) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *Cable) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *Cable) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *Cable) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *Cable) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *Cable) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *Cable) GetLengthUnit() CableLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *Cable) SetLengthUnit(v CableLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *Cable) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *Cable) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *Cable) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *Cable) GetDescription() string` @@ -139,6 +403,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cable) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cable) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cable) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cable) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cable) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cable) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cable) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cable) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cable) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cable) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cable) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cable) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cable) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cable) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cable) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cable) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cable) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cable) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cable) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cable) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cable) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cable) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CableLengthUnit.md b/docs/CableLengthUnit.md new file mode 100644 index 0000000000..0ca0923d95 --- /dev/null +++ b/docs/CableLengthUnit.md @@ -0,0 +1,82 @@ +# CableLengthUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] +**Label** | Pointer to [**CableLengthUnitLabel**](CableLengthUnitLabel.md) | | [optional] + +## Methods + +### NewCableLengthUnit + +`func NewCableLengthUnit() *CableLengthUnit` + +NewCableLengthUnit instantiates a new CableLengthUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCableLengthUnitWithDefaults + +`func NewCableLengthUnitWithDefaults() *CableLengthUnit` + +NewCableLengthUnitWithDefaults instantiates a new CableLengthUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CableLengthUnit) GetValue() CableLengthUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CableLengthUnit) SetValue(v CableLengthUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CableLengthUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CableLengthUnit) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableLengthUnitLabel.md b/docs/CableLengthUnitLabel.md new file mode 100644 index 0000000000..5e953b5a9e --- /dev/null +++ b/docs/CableLengthUnitLabel.md @@ -0,0 +1,21 @@ +# CableLengthUnitLabel + +## Enum + + +* `KILOMETERS` (value: `"Kilometers"`) + +* `METERS` (value: `"Meters"`) + +* `CENTIMETERS` (value: `"Centimeters"`) + +* `MILES` (value: `"Miles"`) + +* `FEET` (value: `"Feet"`) + +* `INCHES` (value: `"Inches"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableLengthUnitValue.md b/docs/CableLengthUnitValue.md new file mode 100644 index 0000000000..a9a0eebea3 --- /dev/null +++ b/docs/CableLengthUnitValue.md @@ -0,0 +1,23 @@ +# CableLengthUnitValue + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `CM` (value: `"cm"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableRequest.md b/docs/CableRequest.md index b90dfd2eac..61b9cded18 100644 --- a/docs/CableRequest.md +++ b/docs/CableRequest.md @@ -4,8 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +37,141 @@ NewCableRequestWithDefaults instantiates a new CableRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *CableRequest) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CableRequest) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CableRequest) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CableRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *CableRequest) GetATerminations() []GenericObjectRequest` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *CableRequest) GetATerminationsOk() (*[]GenericObjectRequest, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *CableRequest) SetATerminations(v []GenericObjectRequest)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *CableRequest) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *CableRequest) GetBTerminations() []GenericObjectRequest` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *CableRequest) GetBTerminationsOk() (*[]GenericObjectRequest, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *CableRequest) SetBTerminations(v []GenericObjectRequest)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *CableRequest) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *CableRequest) GetStatus() CableStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CableRequest) SetStatus(v CableStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CableRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CableRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CableRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CableRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CableRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CableRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *CableRequest) GetLabel() string` @@ -51,6 +197,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *CableRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *CableRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *CableRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *CableRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *CableRequest) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *CableRequest) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *CableRequest) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *CableRequest) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *CableRequest) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *CableRequest) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *CableRequest) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *CableRequest) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *CableRequest) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *CableRequest) GetDescription() string` @@ -76,6 +317,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CableRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CableRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CableRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CableRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CableRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CableRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CableRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CableRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CableRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CableRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CableRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CableRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CableRequestLengthUnit.md b/docs/CableRequestLengthUnit.md new file mode 100644 index 0000000000..c549b14b86 --- /dev/null +++ b/docs/CableRequestLengthUnit.md @@ -0,0 +1,23 @@ +# CableRequestLengthUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `CM` (value: `"cm"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableStatus.md b/docs/CableStatus.md new file mode 100644 index 0000000000..3cdd8c4b35 --- /dev/null +++ b/docs/CableStatus.md @@ -0,0 +1,82 @@ +# CableStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Label** | Pointer to [**CableStatusLabel**](CableStatusLabel.md) | | [optional] + +## Methods + +### NewCableStatus + +`func NewCableStatus() *CableStatus` + +NewCableStatus instantiates a new CableStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCableStatusWithDefaults + +`func NewCableStatusWithDefaults() *CableStatus` + +NewCableStatusWithDefaults instantiates a new CableStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CableStatus) GetValue() CableStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CableStatus) GetValueOk() (*CableStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CableStatus) SetValue(v CableStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CableStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CableStatus) GetLabel() CableStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CableStatus) SetLabel(v CableStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CableStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableStatusLabel.md b/docs/CableStatusLabel.md new file mode 100644 index 0000000000..b90ffa9fd2 --- /dev/null +++ b/docs/CableStatusLabel.md @@ -0,0 +1,15 @@ +# CableStatusLabel + +## Enum + + +* `CONNECTED` (value: `"Connected"`) + +* `PLANNED` (value: `"Planned"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableStatusValue.md b/docs/CableStatusValue.md new file mode 100644 index 0000000000..35769fef10 --- /dev/null +++ b/docs/CableStatusValue.md @@ -0,0 +1,15 @@ +# CableStatusValue + +## Enum + + +* `CONNECTED` (value: `"connected"`) + +* `PLANNED` (value: `"planned"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableType.md b/docs/CableType.md new file mode 100644 index 0000000000..3a9bb982a0 --- /dev/null +++ b/docs/CableType.md @@ -0,0 +1,59 @@ +# CableType + +## Enum + + +* `CAT3` (value: `"cat3"`) + +* `CAT5` (value: `"cat5"`) + +* `CAT5E` (value: `"cat5e"`) + +* `CAT6` (value: `"cat6"`) + +* `CAT6A` (value: `"cat6a"`) + +* `CAT7` (value: `"cat7"`) + +* `CAT7A` (value: `"cat7a"`) + +* `CAT8` (value: `"cat8"`) + +* `DAC_ACTIVE` (value: `"dac-active"`) + +* `DAC_PASSIVE` (value: `"dac-passive"`) + +* `MRJ21_TRUNK` (value: `"mrj21-trunk"`) + +* `COAXIAL` (value: `"coaxial"`) + +* `MMF` (value: `"mmf"`) + +* `MMF_OM1` (value: `"mmf-om1"`) + +* `MMF_OM2` (value: `"mmf-om2"`) + +* `MMF_OM3` (value: `"mmf-om3"`) + +* `MMF_OM4` (value: `"mmf-om4"`) + +* `MMF_OM5` (value: `"mmf-om5"`) + +* `SMF` (value: `"smf"`) + +* `SMF_OS1` (value: `"smf-os1"`) + +* `SMF_OS2` (value: `"smf-os2"`) + +* `AOC` (value: `"aoc"`) + +* `USB` (value: `"usb"`) + +* `POWER` (value: `"power"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Circuit.md b/docs/Circuit.md index b9bb4fd7e7..24a6ce0de5 100644 --- a/docs/Circuit.md +++ b/docs/Circuit.md @@ -6,15 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProvider**](BriefProvider.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccount**](BriefProviderAccount.md) | | [optional] +**Type** | [**BriefCircuitType**](BriefCircuitType.md) | | +**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**TerminationA** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**TerminationZ** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializer**](BriefCircuitGroupAssignmentSerializer.md) | | [optional] ## Methods ### NewCircuit -`func NewCircuit(id int32, url string, display string, cid string, ) *Circuit` +`func NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime, ) *Circuit` NewCircuit instantiates a new Circuit object This constructor will assign default values to properties that have it defined, @@ -69,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Circuit) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Circuit) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Circuit) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Circuit) GetDisplay() string` @@ -109,6 +146,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *Circuit) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Circuit) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Circuit) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *Circuit) GetProviderAccount() BriefProviderAccount` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *Circuit) SetProviderAccount(v BriefProviderAccount)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *Circuit) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *Circuit) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *Circuit) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *Circuit) GetType() BriefCircuitType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Circuit) SetType(v BriefCircuitType)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *Circuit) GetStatus() CircuitStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Circuit) GetStatusOk() (*CircuitStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Circuit) SetStatus(v CircuitStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Circuit) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Circuit) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Circuit) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Circuit) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Circuit) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Circuit) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Circuit) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *Circuit) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *Circuit) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *Circuit) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *Circuit) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *Circuit) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *Circuit) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *Circuit) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *Circuit) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *Circuit) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *Circuit) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *Circuit) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *Circuit) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *Circuit) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *Circuit) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *Circuit) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *Circuit) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *Circuit) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *Circuit) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *Circuit) GetDescription() string` @@ -134,6 +411,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTerminationA + +`func (o *Circuit) GetTerminationA() CircuitCircuitTermination` + +GetTerminationA returns the TerminationA field if non-nil, zero value otherwise. + +### GetTerminationAOk + +`func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool)` + +GetTerminationAOk returns a tuple with the TerminationA field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationA + +`func (o *Circuit) SetTerminationA(v CircuitCircuitTermination)` + +SetTerminationA sets TerminationA field to given value. + + +### SetTerminationANil + +`func (o *Circuit) SetTerminationANil(b bool)` + + SetTerminationANil sets the value for TerminationA to be an explicit nil + +### UnsetTerminationA +`func (o *Circuit) UnsetTerminationA()` + +UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil +### GetTerminationZ + +`func (o *Circuit) GetTerminationZ() CircuitCircuitTermination` + +GetTerminationZ returns the TerminationZ field if non-nil, zero value otherwise. + +### GetTerminationZOk + +`func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool)` + +GetTerminationZOk returns a tuple with the TerminationZ field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationZ + +`func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination)` + +SetTerminationZ sets TerminationZ field to given value. + + +### SetTerminationZNil + +`func (o *Circuit) SetTerminationZNil(b bool)` + + SetTerminationZNil sets the value for TerminationZ to be an explicit nil + +### UnsetTerminationZ +`func (o *Circuit) UnsetTerminationZ()` + +UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil +### GetComments + +`func (o *Circuit) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Circuit) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Circuit) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Circuit) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Circuit) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Circuit) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Circuit) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Circuit) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Circuit) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Circuit) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Circuit) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Circuit) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Circuit) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Circuit) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Circuit) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Circuit) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Circuit) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Circuit) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Circuit) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Circuit) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Circuit) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetAssignments + +`func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *Circuit) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializer, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *Circuit) HasAssignments() bool` + +HasAssignments returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CircuitCircuitTermination.md b/docs/CircuitCircuitTermination.md new file mode 100644 index 0000000000..a2e2e068db --- /dev/null +++ b/docs/CircuitCircuitTermination.md @@ -0,0 +1,300 @@ +# CircuitCircuitTermination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Site** | [**NullableBriefSite**](BriefSite.md) | | +**ProviderNetwork** | [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | +**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] +**UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] +**XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewCircuitCircuitTermination + +`func NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork, ) *CircuitCircuitTermination` + +NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitCircuitTerminationWithDefaults + +`func NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination` + +NewCircuitCircuitTerminationWithDefaults instantiates a new CircuitCircuitTermination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitCircuitTermination) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitCircuitTermination) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitCircuitTermination) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitCircuitTermination) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitCircuitTermination) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitCircuitTermination) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitCircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitCircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitCircuitTermination) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitCircuitTermination) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitCircuitTermination) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetSite + +`func (o *CircuitCircuitTermination) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *CircuitCircuitTermination) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *CircuitCircuitTermination) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### SetSiteNil + +`func (o *CircuitCircuitTermination) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *CircuitCircuitTermination) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetProviderNetwork + +`func (o *CircuitCircuitTermination) GetProviderNetwork() BriefProviderNetwork` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *CircuitCircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *CircuitCircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### SetProviderNetworkNil + +`func (o *CircuitCircuitTermination) SetProviderNetworkNil(b bool)` + + SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil + +### UnsetProviderNetwork +`func (o *CircuitCircuitTermination) UnsetProviderNetwork()` + +UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil +### GetPortSpeed + +`func (o *CircuitCircuitTermination) GetPortSpeed() int32` + +GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise. + +### GetPortSpeedOk + +`func (o *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool)` + +GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortSpeed + +`func (o *CircuitCircuitTermination) SetPortSpeed(v int32)` + +SetPortSpeed sets PortSpeed field to given value. + +### HasPortSpeed + +`func (o *CircuitCircuitTermination) HasPortSpeed() bool` + +HasPortSpeed returns a boolean if a field has been set. + +### SetPortSpeedNil + +`func (o *CircuitCircuitTermination) SetPortSpeedNil(b bool)` + + SetPortSpeedNil sets the value for PortSpeed to be an explicit nil + +### UnsetPortSpeed +`func (o *CircuitCircuitTermination) UnsetPortSpeed()` + +UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +### GetUpstreamSpeed + +`func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32` + +GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise. + +### GetUpstreamSpeedOk + +`func (o *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool)` + +GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamSpeed + +`func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32)` + +SetUpstreamSpeed sets UpstreamSpeed field to given value. + +### HasUpstreamSpeed + +`func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool` + +HasUpstreamSpeed returns a boolean if a field has been set. + +### SetUpstreamSpeedNil + +`func (o *CircuitCircuitTermination) SetUpstreamSpeedNil(b bool)` + + SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil + +### UnsetUpstreamSpeed +`func (o *CircuitCircuitTermination) UnsetUpstreamSpeed()` + +UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +### GetXconnectId + +`func (o *CircuitCircuitTermination) GetXconnectId() string` + +GetXconnectId returns the XconnectId field if non-nil, zero value otherwise. + +### GetXconnectIdOk + +`func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool)` + +GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXconnectId + +`func (o *CircuitCircuitTermination) SetXconnectId(v string)` + +SetXconnectId sets XconnectId field to given value. + +### HasXconnectId + +`func (o *CircuitCircuitTermination) HasXconnectId() bool` + +HasXconnectId returns a boolean if a field has been set. + +### GetDescription + +`func (o *CircuitCircuitTermination) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitCircuitTermination) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitCircuitTermination) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitCircuitTermination) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitCircuitTerminationRequest.md b/docs/CircuitCircuitTerminationRequest.md new file mode 100644 index 0000000000..7a7dc6c09f --- /dev/null +++ b/docs/CircuitCircuitTerminationRequest.md @@ -0,0 +1,216 @@ +# CircuitCircuitTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Site** | [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | +**ProviderNetwork** | [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | +**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] +**UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] +**XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewCircuitCircuitTerminationRequest + +`func NewCircuitCircuitTerminationRequest(site NullableBriefSiteRequest, providerNetwork NullableBriefProviderNetworkRequest, ) *CircuitCircuitTerminationRequest` + +NewCircuitCircuitTerminationRequest instantiates a new CircuitCircuitTerminationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitCircuitTerminationRequestWithDefaults + +`func NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest` + +NewCircuitCircuitTerminationRequestWithDefaults instantiates a new CircuitCircuitTerminationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSite + +`func (o *CircuitCircuitTerminationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *CircuitCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *CircuitCircuitTerminationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### SetSiteNil + +`func (o *CircuitCircuitTerminationRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *CircuitCircuitTerminationRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetProviderNetwork + +`func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *CircuitCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### SetProviderNetworkNil + +`func (o *CircuitCircuitTerminationRequest) SetProviderNetworkNil(b bool)` + + SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil + +### UnsetProviderNetwork +`func (o *CircuitCircuitTerminationRequest) UnsetProviderNetwork()` + +UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil +### GetPortSpeed + +`func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32` + +GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise. + +### GetPortSpeedOk + +`func (o *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)` + +GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortSpeed + +`func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32)` + +SetPortSpeed sets PortSpeed field to given value. + +### HasPortSpeed + +`func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool` + +HasPortSpeed returns a boolean if a field has been set. + +### SetPortSpeedNil + +`func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil(b bool)` + + SetPortSpeedNil sets the value for PortSpeed to be an explicit nil + +### UnsetPortSpeed +`func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed()` + +UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +### GetUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32` + +GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise. + +### GetUpstreamSpeedOk + +`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)` + +GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32)` + +SetUpstreamSpeed sets UpstreamSpeed field to given value. + +### HasUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool` + +HasUpstreamSpeed returns a boolean if a field has been set. + +### SetUpstreamSpeedNil + +`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)` + + SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil + +### UnsetUpstreamSpeed +`func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed()` + +UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +### GetXconnectId + +`func (o *CircuitCircuitTerminationRequest) GetXconnectId() string` + +GetXconnectId returns the XconnectId field if non-nil, zero value otherwise. + +### GetXconnectIdOk + +`func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)` + +GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXconnectId + +`func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string)` + +SetXconnectId sets XconnectId field to given value. + +### HasXconnectId + +`func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool` + +HasXconnectId returns a boolean if a field has been set. + +### GetDescription + +`func (o *CircuitCircuitTerminationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitCircuitTerminationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitCircuitTerminationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitCircuitTerminationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitGroup.md b/docs/CircuitGroup.md new file mode 100644 index 0000000000..27569c71ec --- /dev/null +++ b/docs/CircuitGroup.md @@ -0,0 +1,353 @@ +# CircuitGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewCircuitGroup + +`func NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitGroup` + +NewCircuitGroup instantiates a new CircuitGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupWithDefaults + +`func NewCircuitGroupWithDefaults() *CircuitGroup` + +NewCircuitGroupWithDefaults instantiates a new CircuitGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *CircuitGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CircuitGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CircuitGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *CircuitGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *CircuitGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *CircuitGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *CircuitGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitGroup) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitGroup) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitGroup) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitGroup) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitGroup) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitGroup) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *CircuitGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *CircuitGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CircuitGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CircuitGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *CircuitGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *CircuitGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *CircuitGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *CircuitGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *CircuitGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *CircuitGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *CircuitGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *CircuitGroup) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *CircuitGroup) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitGroupAssignment.md b/docs/CircuitGroupAssignment.md new file mode 100644 index 0000000000..c6e9b81ada --- /dev/null +++ b/docs/CircuitGroupAssignment.md @@ -0,0 +1,270 @@ +# CircuitGroupAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Group** | [**BriefCircuitGroup**](BriefCircuitGroup.md) | | +**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewCircuitGroupAssignment + +`func NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime, ) *CircuitGroupAssignment` + +NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupAssignmentWithDefaults + +`func NewCircuitGroupAssignmentWithDefaults() *CircuitGroupAssignment` + +NewCircuitGroupAssignmentWithDefaults instantiates a new CircuitGroupAssignment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitGroupAssignment) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitGroupAssignment) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitGroupAssignment) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitGroupAssignment) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitGroupAssignment) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitGroupAssignment) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitGroupAssignment) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitGroupAssignment) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitGroupAssignment) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitGroupAssignment) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitGroupAssignment) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetGroup + +`func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *CircuitGroupAssignment) GetGroupOk() (*BriefCircuitGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *CircuitGroupAssignment) GetCircuit() BriefCircuit` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *CircuitGroupAssignment) GetCircuitOk() (*BriefCircuit, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *CircuitGroupAssignment) SetCircuit(v BriefCircuit)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *CircuitGroupAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CircuitGroupAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CircuitGroupAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CircuitGroupAssignment) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitGroupAssignment) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupAssignment) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupAssignment) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupAssignment) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *CircuitGroupAssignment) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CircuitGroupAssignment) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CircuitGroupAssignment) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *CircuitGroupAssignment) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *CircuitGroupAssignment) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *CircuitGroupAssignment) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *CircuitGroupAssignment) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *CircuitGroupAssignment) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *CircuitGroupAssignment) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitGroupAssignmentRequest.md b/docs/CircuitGroupAssignmentRequest.md new file mode 100644 index 0000000000..8858b039e9 --- /dev/null +++ b/docs/CircuitGroupAssignmentRequest.md @@ -0,0 +1,124 @@ +# CircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewCircuitGroupAssignmentRequest + +`func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest, ) *CircuitGroupAssignmentRequest` + +NewCircuitGroupAssignmentRequest instantiates a new CircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupAssignmentRequestWithDefaults + +`func NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentRequest` + +NewCircuitGroupAssignmentRequestWithDefaults instantiates a new CircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *CircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *CircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *CircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitGroupRequest.md b/docs/CircuitGroupRequest.md new file mode 100644 index 0000000000..7d69e4f34d --- /dev/null +++ b/docs/CircuitGroupRequest.md @@ -0,0 +1,186 @@ +# CircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCircuitGroupRequest + +`func NewCircuitGroupRequest(name string, slug string, ) *CircuitGroupRequest` + +NewCircuitGroupRequest instantiates a new CircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupRequestWithDefaults + +`func NewCircuitGroupRequestWithDefaults() *CircuitGroupRequest` + +NewCircuitGroupRequestWithDefaults instantiates a new CircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *CircuitGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *CircuitGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *CircuitGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *CircuitGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitGroupRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitGroupRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitGroupRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *CircuitGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitGroupRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitRequest.md b/docs/CircuitRequest.md index e28059fb5c..0b956756e6 100644 --- a/docs/CircuitRequest.md +++ b/docs/CircuitRequest.md @@ -5,13 +5,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewCircuitRequest -`func NewCircuitRequest(cid string, ) *CircuitRequest` +`func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *CircuitRequest` NewCircuitRequest instantiates a new CircuitRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +58,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *CircuitRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CircuitRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *CircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *CircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *CircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *CircuitRequest) GetType() BriefCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *CircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *CircuitRequest) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *CircuitRequest) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *CircuitRequest) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *CircuitRequest) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *CircuitRequest) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *CircuitRequest) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *CircuitRequest) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *CircuitRequest) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *CircuitRequest) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *CircuitRequest) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *CircuitRequest) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *CircuitRequest) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *CircuitRequest) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *CircuitRequest) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *CircuitRequest) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *CircuitRequest) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *CircuitRequest) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *CircuitRequest) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *CircuitRequest) GetDescription() string` @@ -71,6 +323,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetAssignments + +`func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *CircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *CircuitRequest) HasAssignments() bool` + +HasAssignments returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CircuitStatus.md b/docs/CircuitStatus.md new file mode 100644 index 0000000000..8815d2697f --- /dev/null +++ b/docs/CircuitStatus.md @@ -0,0 +1,82 @@ +# CircuitStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Label** | Pointer to [**CircuitStatusLabel**](CircuitStatusLabel.md) | | [optional] + +## Methods + +### NewCircuitStatus + +`func NewCircuitStatus() *CircuitStatus` + +NewCircuitStatus instantiates a new CircuitStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitStatusWithDefaults + +`func NewCircuitStatusWithDefaults() *CircuitStatus` + +NewCircuitStatusWithDefaults instantiates a new CircuitStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CircuitStatus) GetValue() CircuitStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CircuitStatus) SetValue(v CircuitStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CircuitStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CircuitStatus) GetLabel() CircuitStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CircuitStatus) SetLabel(v CircuitStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CircuitStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitStatusLabel.md b/docs/CircuitStatusLabel.md new file mode 100644 index 0000000000..594cdc8dcb --- /dev/null +++ b/docs/CircuitStatusLabel.md @@ -0,0 +1,21 @@ +# CircuitStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `PROVISIONING` (value: `"Provisioning"`) + +* `ACTIVE` (value: `"Active"`) + +* `OFFLINE` (value: `"Offline"`) + +* `DEPROVISIONING` (value: `"Deprovisioning"`) + +* `DECOMMISSIONED` (value: `"Decommissioned"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitStatusValue.md b/docs/CircuitStatusValue.md new file mode 100644 index 0000000000..c49a8ea53e --- /dev/null +++ b/docs/CircuitStatusValue.md @@ -0,0 +1,21 @@ +# CircuitStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `ACTIVE` (value: `"active"`) + +* `OFFLINE` (value: `"offline"`) + +* `DEPROVISIONING` (value: `"deprovisioning"`) + +* `DECOMMISSIONED` (value: `"decommissioned"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitTermination.md b/docs/CircuitTermination.md index 11b220a6db..718746e9df 100644 --- a/docs/CircuitTermination.md +++ b/docs/CircuitTermination.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Circuit** | [**Circuit**](Circuit.md) | | +**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetwork**](ProviderNetwork.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] **PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewCircuitTermination -`func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` +`func NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` NewCircuitTermination instantiates a new CircuitTermination object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CircuitTermination) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetCircuit -`func (o *CircuitTermination) GetCircuit() Circuit` +`func (o *CircuitTermination) GetCircuit() BriefCircuit` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool)` +`func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTermination) SetCircuit(v Circuit)` +`func (o *CircuitTermination) SetCircuit(v BriefCircuit)` SetCircuit sets Circuit field to given value. @@ -148,20 +169,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTermination) GetSite() Site` +`func (o *CircuitTermination) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTermination) GetSiteOk() (*Site, bool)` +`func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTermination) SetSite(v Site)` +`func (o *CircuitTermination) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -183,20 +204,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork` +`func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool)` +`func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork)` +`func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` SetProviderNetwork sets ProviderNetwork field to given value. @@ -388,20 +409,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *CircuitTermination) GetCable() Cable` +`func (o *CircuitTermination) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *CircuitTermination) GetCableOk() (*Cable, bool)` +`func (o *CircuitTermination) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *CircuitTermination) SetCable(v Cable)` +`func (o *CircuitTermination) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -476,6 +497,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *CircuitTermination) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *CircuitTermination) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *CircuitTermination) GetTags() []NestedTag` diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md index a99223da73..f4116a9998 100644 --- a/docs/CircuitTerminationRequest.md +++ b/docs/CircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | [**CircuitRequest**](CircuitRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCircuitTerminationRequest -`func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` +`func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -78,20 +78,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTerminationRequest) GetSite() SiteRequest` +`func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -113,20 +113,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/CircuitType.md b/docs/CircuitType.md index ea037618e0..aa83cc92d0 100644 --- a/docs/CircuitType.md +++ b/docs/CircuitType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewCircuitType -`func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` +`func NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` NewCircuitType instantiates a new CircuitType object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CircuitType) GetDisplay() string` diff --git a/docs/CircuitsAPI.md b/docs/CircuitsAPI.md index c78529d9c6..6bdfd6e645 100644 --- a/docs/CircuitsAPI.md +++ b/docs/CircuitsAPI.md @@ -4,6 +4,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CircuitsCircuitGroupAssignmentsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkDestroy) | **Delete** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkUpdate) | **Put** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsCreate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsCreate) | **Post** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsDestroy) | **Delete** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsList**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsList) | **Get** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsRetrieve) | **Get** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsUpdate) | **Put** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsBulkDestroy) | **Delete** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkPartialUpdate) | **Patch** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkUpdate) | **Put** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsCreate**](CircuitsAPI.md#CircuitsCircuitGroupsCreate) | **Post** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsDestroy) | **Delete** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsList**](CircuitsAPI.md#CircuitsCircuitGroupsList) | **Get** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsPartialUpdate) | **Patch** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupsRetrieve) | **Get** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsUpdate) | **Put** /api/circuits/circuit-groups/{id}/ | [**CircuitsCircuitTerminationsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkDestroy) | **Delete** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkPartialUpdate) | **Patch** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkUpdate) | **Put** /api/circuits/circuit-terminations/ | @@ -62,6 +80,1454 @@ Method | HTTP request | Description +## CircuitsCircuitGroupAssignmentsBulkDestroy + +> CircuitsCircuitGroupAssignmentsBulkDestroy(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsCreate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsCreate(ctx).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsCreate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsDestroy + +> CircuitsCircuitGroupAssignmentsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsList + +> PaginatedCircuitGroupAssignmentList CircuitsCircuitGroupAssignmentsList(ctx).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuit := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitN := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitId := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + circuitIdN := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + group := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupN := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + q := "q_example" // string | Search (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsList`: PaginatedCircuitGroupAssignmentList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuit** | **[]string** | Circuit (CID) | + **circuitN** | **[]string** | Circuit (CID) | + **circuitId** | **[]int32** | Circuit (ID) | + **circuitIdN** | **[]int32** | Circuit (ID) | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **group** | **[]string** | Circuit group (slug) | + **groupN** | **[]string** | Circuit group (slug) | + **groupId** | **[]int32** | Circuit group (ID) | + **groupIdN** | **[]int32** | Circuit group (ID) | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **q** | **string** | Search | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupAssignmentList**](PaginatedCircuitGroupAssignmentList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsPartialUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + patchedWritableCircuitGroupAssignmentRequest := *openapiclient.NewPatchedWritableCircuitGroupAssignmentRequest() // PatchedWritableCircuitGroupAssignmentRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsPartialUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableCircuitGroupAssignmentRequest** | [**PatchedWritableCircuitGroupAssignmentRequest**](PatchedWritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsRetrieve + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsRetrieve`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsUpdate(ctx, id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkDestroy + +> CircuitsCircuitGroupsBulkDestroy(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkPartialUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkPartialUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkPartialUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsCreate + +> CircuitGroup CircuitsCircuitGroupsCreate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsCreate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsDestroy + +> CircuitsCircuitGroupsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsList + +> PaginatedCircuitGroupList CircuitsCircuitGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsList`: PaginatedCircuitGroupList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupList**](PaginatedCircuitGroupList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsPartialUpdate + +> CircuitGroup CircuitsCircuitGroupsPartialUpdate(ctx, id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + patchedCircuitGroupRequest := *openapiclient.NewPatchedCircuitGroupRequest() // PatchedCircuitGroupRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsPartialUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedCircuitGroupRequest** | [**PatchedCircuitGroupRequest**](PatchedCircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsRetrieve + +> CircuitGroup CircuitsCircuitGroupsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsRetrieve`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsUpdate + +> CircuitGroup CircuitsCircuitGroupsUpdate(ctx, id).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## CircuitsCircuitTerminationsBulkDestroy > CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -83,7 +1549,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -147,7 +1613,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -213,7 +1679,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -279,7 +1745,7 @@ import ( ) func main() { - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -887,7 +2353,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit termination. - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +3181,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1779,7 +3245,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1845,7 +3311,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1911,7 +3377,7 @@ import ( ) func main() { - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2066,8 +3532,8 @@ func main() { commitRateN := []int32{int32(123)} // []int32 | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -2125,16 +3591,16 @@ func main() { providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -2143,10 +3609,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) @@ -2209,8 +3675,8 @@ Name | Type | Description | Notes **commitRateN** | **[]int32** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2268,16 +3734,16 @@ Name | Type | Description | Notes **providerNetworkId** | **[]int32** | Provider network (ID) | **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -2286,10 +3752,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | Termination A (ID) | @@ -2491,7 +3957,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit. - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2562,7 +4028,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2626,7 +4092,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2692,7 +4158,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2758,7 +4224,7 @@ import ( ) func main() { - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3234,7 +4700,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider account. - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3305,7 +4771,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3369,7 +4835,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3435,7 +4901,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3501,7 +4967,7 @@ import ( ) func main() { - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3977,7 +5443,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider network. - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4385,8 +5851,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4438,16 +5904,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (optional) siteIdN := []int32{int32(123)} // []int32 | Site (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -4494,8 +5960,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | ASN (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4547,16 +6013,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site | **siteIdN** | **[]int32** | Site | **slug** | **[]string** | | diff --git a/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md new file mode 100644 index 0000000000..b8be447a25 --- /dev/null +++ b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md @@ -0,0 +1,17 @@ +# CircuitsCircuitGroupAssignmentsListPriorityParameter + +## Enum + + +* `INACTIVE` (value: `"inactive"`) + +* `PRIMARY` (value: `"primary"`) + +* `SECONDARY` (value: `"secondary"`) + +* `TERTIARY` (value: `"tertiary"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Cluster.md b/docs/Cluster.md index 53f6ac8f25..7475d4a4f7 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -6,16 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**BriefClusterType**](BriefClusterType.md) | | +**Group** | Pointer to [**NullableBriefClusterGroup**](BriefClusterGroup.md) | | [optional] +**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**DeviceCount** | **int64** | | [readonly] **VirtualmachineCount** | **int64** | | [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *Cluster` +`func NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -70,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cluster) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cluster) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cluster) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Cluster) GetDisplay() string` @@ -110,6 +142,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *Cluster) GetType() BriefClusterType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cluster) GetTypeOk() (*BriefClusterType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cluster) SetType(v BriefClusterType)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *Cluster) GetGroup() BriefClusterGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Cluster) SetGroup(v BriefClusterGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Cluster) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Cluster) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Cluster) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *Cluster) GetStatus() ClusterStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cluster) GetStatusOk() (*ClusterStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cluster) SetStatus(v ClusterStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cluster) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cluster) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cluster) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cluster) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cluster) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cluster) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cluster) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *Cluster) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Cluster) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Cluster) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *Cluster) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *Cluster) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *Cluster) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *Cluster) GetDescription() string` @@ -135,6 +317,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cluster) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cluster) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cluster) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cluster) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cluster) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cluster) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cluster) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cluster) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cluster) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cluster) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cluster) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cluster) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cluster) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cluster) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cluster) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cluster) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cluster) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cluster) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cluster) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetDeviceCount + +`func (o *Cluster) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Cluster) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Cluster) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + ### GetVirtualmachineCount `func (o *Cluster) GetVirtualmachineCount() int64` diff --git a/docs/ClusterGroup.md b/docs/ClusterGroup.md index ce837f38ca..82b09af112 100644 --- a/docs/ClusterGroup.md +++ b/docs/ClusterGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewClusterGroup -`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` +`func NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` NewClusterGroup instantiates a new ClusterGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ClusterGroup) GetDisplay() string` diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md index bfe754ce80..15316566bc 100644 --- a/docs/ClusterRequest.md +++ b/docs/ClusterRequest.md @@ -5,13 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewClusterRequest -`func NewClusterRequest(name string, ) *ClusterRequest` +`func NewClusterRequest(name string, type_ BriefClusterTypeRequest, ) *ClusterRequest` NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +54,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *ClusterRequest) GetType() BriefClusterTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ClusterRequest) SetType(v BriefClusterTypeRequest)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ClusterRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ClusterRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ClusterRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *ClusterRequest) GetStatus() ClusterStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterRequest) SetStatus(v ClusterStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *ClusterRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ClusterRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *ClusterRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *ClusterRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *ClusterRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *ClusterRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *ClusterRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *ClusterRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *ClusterRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *ClusterRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *ClusterRequest) GetDescription() string` @@ -71,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ClusterRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ClusterRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ClusterRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ClusterRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ClusterRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ClusterRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ClusterRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ClusterRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ClusterRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ClusterRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ClusterStatus.md b/docs/ClusterStatus.md new file mode 100644 index 0000000000..0753edae9e --- /dev/null +++ b/docs/ClusterStatus.md @@ -0,0 +1,82 @@ +# ClusterStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Label** | Pointer to [**ClusterStatusLabel**](ClusterStatusLabel.md) | | [optional] + +## Methods + +### NewClusterStatus + +`func NewClusterStatus() *ClusterStatus` + +NewClusterStatus instantiates a new ClusterStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClusterStatusWithDefaults + +`func NewClusterStatusWithDefaults() *ClusterStatus` + +NewClusterStatusWithDefaults instantiates a new ClusterStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ClusterStatus) GetValue() ClusterStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ClusterStatus) SetValue(v ClusterStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ClusterStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ClusterStatus) GetLabel() ClusterStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ClusterStatus) SetLabel(v ClusterStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ClusterStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterStatusLabel.md b/docs/ClusterStatusLabel.md new file mode 100644 index 0000000000..7a03fab9a0 --- /dev/null +++ b/docs/ClusterStatusLabel.md @@ -0,0 +1,19 @@ +# ClusterStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `OFFLINE` (value: `"Offline"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterStatusValue.md b/docs/ClusterStatusValue.md new file mode 100644 index 0000000000..f68d48cacf --- /dev/null +++ b/docs/ClusterStatusValue.md @@ -0,0 +1,19 @@ +# ClusterStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `STAGING` (value: `"staging"`) + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `OFFLINE` (value: `"offline"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterType.md b/docs/ClusterType.md index c759403edd..5001704246 100644 --- a/docs/ClusterType.md +++ b/docs/ClusterType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewClusterType -`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` +`func NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` NewClusterType instantiates a new ClusterType object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ClusterType) GetDisplay() string` diff --git a/docs/ConfigContext.md b/docs/ConfigContext.md index 3d27ad7edd..03698c00ad 100644 --- a/docs/ConfigContext.md +++ b/docs/ConfigContext.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Weight** | Pointer to **int32** | | [optional] @@ -24,9 +25,9 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional] **Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Data** | **interface{}** | | **Created** | **NullableTime** | | [readonly] @@ -36,7 +37,7 @@ Name | Type | Description | Notes ### NewConfigContext -`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` +`func NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` NewConfigContext instantiates a new ConfigContext object This constructor will assign default values to properties that have it defined, @@ -91,6 +92,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConfigContext) GetDisplay() string` @@ -533,20 +554,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContext) GetDataSource() DataSource` +`func (o *ConfigContext) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool)` +`func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContext) SetDataSource(v DataSource)` +`func (o *ConfigContext) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -578,20 +599,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ConfigContext) GetDataFile() DataFile` +`func (o *ConfigContext) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ConfigContext) GetDataFileOk() (*DataFile, bool)` +`func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ConfigContext) SetDataFile(v DataFile)` +`func (o *ConfigContext) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md index 298074ebfa..a42d2482ad 100644 --- a/docs/ConfigContextRequest.md +++ b/docs/ConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | **interface{}** | | ## Methods @@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md index e87b659909..df229b2910 100644 --- a/docs/ConfigTemplate.md +++ b/docs/ConfigTemplate.md @@ -6,15 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] +**DataFile** | Pointer to [**BriefDataFile**](BriefDataFile.md) | | [optional] +**DataSynced** | **NullableTime** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewConfigTemplate -`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate` +`func NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate` NewConfigTemplate instantiates a new ConfigTemplate object This constructor will assign default values to properties that have it defined, @@ -69,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConfigTemplate) GetDisplay() string` @@ -134,6 +164,246 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplate) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplate) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplate) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplate) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplate) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplate) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplate) GetDataSource() BriefDataSource` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplate) SetDataSource(v BriefDataSource)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplate) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetDataPath + +`func (o *ConfigTemplate) GetDataPath() string` + +GetDataPath returns the DataPath field if non-nil, zero value otherwise. + +### GetDataPathOk + +`func (o *ConfigTemplate) GetDataPathOk() (*string, bool)` + +GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataPath + +`func (o *ConfigTemplate) SetDataPath(v string)` + +SetDataPath sets DataPath field to given value. + + +### GetDataFile + +`func (o *ConfigTemplate) GetDataFile() BriefDataFile` + +GetDataFile returns the DataFile field if non-nil, zero value otherwise. + +### GetDataFileOk + +`func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool)` + +GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFile + +`func (o *ConfigTemplate) SetDataFile(v BriefDataFile)` + +SetDataFile sets DataFile field to given value. + +### HasDataFile + +`func (o *ConfigTemplate) HasDataFile() bool` + +HasDataFile returns a boolean if a field has been set. + +### GetDataSynced + +`func (o *ConfigTemplate) GetDataSynced() time.Time` + +GetDataSynced returns the DataSynced field if non-nil, zero value otherwise. + +### GetDataSyncedOk + +`func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool)` + +GetDataSyncedOk returns a tuple with the DataSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSynced + +`func (o *ConfigTemplate) SetDataSynced(v time.Time)` + +SetDataSynced sets DataSynced field to given value. + + +### SetDataSyncedNil + +`func (o *ConfigTemplate) SetDataSyncedNil(b bool)` + + SetDataSyncedNil sets the value for DataSynced to be an explicit nil + +### UnsetDataSynced +`func (o *ConfigTemplate) UnsetDataSynced()` + +UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +### GetTags + +`func (o *ConfigTemplate) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplate) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplate) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *ConfigTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ConfigTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ConfigTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ConfigTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ConfigTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ConfigTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ConfigTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ConfigTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md index 2c1540c0d7..6865ade797 100644 --- a/docs/ConfigTemplateRequest.md +++ b/docs/ConfigTemplateRequest.md @@ -6,12 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods ### NewConfigTemplateRequest -`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest` +`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest` NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -71,6 +75,111 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplateRequest) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplateRequest) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplateRequest) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplateRequest) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplateRequest) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplateRequest) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetTags + +`func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplateRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ConsolePort.md b/docs/ConsolePort.md index 165ccf7784..10e6b5bdd9 100644 --- a/docs/ConsolePort.md +++ b/docs/ConsolePort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsolePort -`func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` +`func NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` NewConsolePort instantiates a new ConsolePort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsolePort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsolePort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsolePort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConsolePort) GetDisplay() string` @@ -109,40 +130,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsolePort) GetDevice() Device` +`func (o *ConsolePort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePort) GetDeviceOk() (*Device, bool)` +`func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePort) SetDevice(v Device)` +`func (o *ConsolePort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePort) GetModule() Module` +`func (o *ConsolePort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePort) GetModuleOk() (*Module, bool)` +`func (o *ConsolePort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePort) SetModule(v Module)` +`func (o *ConsolePort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +340,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsolePort) GetCable() Cable` +`func (o *ConsolePort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsolePort) GetCableOk() (*Cable, bool)` +`func (o *ConsolePort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsolePort) SetCable(v Cable)` +`func (o *ConsolePort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +428,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsolePort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsolePort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsolePort) GetConnectedEndpoints() []interface{}` @@ -427,6 +458,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsolePort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsolePort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsolePort) GetConnectedEndpointsType() string` @@ -447,6 +488,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsolePort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsolePort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsolePort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md index 3c9fe81767..4fdb86baec 100644 --- a/docs/ConsolePortRequest.md +++ b/docs/ConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsolePortRequest -`func NewConsolePortRequest(device DeviceRequest, name string, ) *ConsolePortRequest` +`func NewConsolePortRequest(device BriefDeviceRequest, name string, ) *ConsolePortRequest` NewConsolePortRequest instantiates a new ConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsolePortRequest) GetDevice() DeviceRequest` +`func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePortRequest) GetModule() ModuleRequest` +`func (o *ConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *ConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index d37560677d..00f005d5e4 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsolePortTemplate) GetDeviceType() DeviceType` +`func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplate) GetModuleType() ModuleType` +`func (o *ConsolePortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index bdd1627ea0..33af6cae00 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPort.md b/docs/ConsoleServerPort.md index 7686dfe90a..9df3c48d77 100644 --- a/docs/ConsoleServerPort.md +++ b/docs/ConsoleServerPort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsoleServerPort -`func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` +`func NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` NewConsoleServerPort instantiates a new ConsoleServerPort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsoleServerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsoleServerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConsoleServerPort) GetDisplay() string` @@ -109,40 +130,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsoleServerPort) GetDevice() Device` +`func (o *ConsoleServerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool)` +`func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPort) SetDevice(v Device)` +`func (o *ConsoleServerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPort) GetModule() Module` +`func (o *ConsoleServerPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPort) GetModuleOk() (*Module, bool)` +`func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPort) SetModule(v Module)` +`func (o *ConsoleServerPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +340,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsoleServerPort) GetCable() Cable` +`func (o *ConsoleServerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsoleServerPort) GetCableOk() (*Cable, bool)` +`func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsoleServerPort) SetCable(v Cable)` +`func (o *ConsoleServerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +428,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsoleServerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsoleServerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{}` @@ -427,6 +458,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsoleServerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsoleServerPort) GetConnectedEndpointsType() string` @@ -447,6 +488,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsoleServerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsoleServerPort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md index 995610c634..3e59314af6 100644 --- a/docs/ConsoleServerPortRequest.md +++ b/docs/ConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsoleServerPortRequest -`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` +`func NewConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *ConsoleServerPortRequest` NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index dfc96440fd..33411a949a 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType` +`func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType` +`func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index 6c677fcc53..2fe0e692eb 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/Contact.md b/docs/Contact.md index d3701de383..595ac8f333 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -6,15 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Group** | Pointer to [**NullableBriefContactGroup**](BriefContactGroup.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContact -`func NewContact(id int32, url string, display string, name string, ) *Contact` +`func NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *Contact` NewContact instantiates a new Contact object This constructor will assign default values to properties that have it defined, @@ -69,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Contact) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Contact) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Contact) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Contact) GetDisplay() string` @@ -89,6 +121,41 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetGroup + +`func (o *Contact) GetGroup() BriefContactGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Contact) GetGroupOk() (*BriefContactGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Contact) SetGroup(v BriefContactGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Contact) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Contact) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Contact) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *Contact) GetName() string` @@ -109,6 +176,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *Contact) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *Contact) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *Contact) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *Contact) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *Contact) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *Contact) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *Contact) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *Contact) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *Contact) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Contact) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *Contact) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *Contact) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *Contact) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *Contact) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *Contact) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *Contact) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *Contact) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *Contact) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *Contact) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *Contact) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *Contact) GetDescription() string` @@ -134,6 +326,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Contact) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Contact) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Contact) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Contact) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Contact) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Contact) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Contact) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Contact) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Contact) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Contact) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Contact) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Contact) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Contact) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Contact) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Contact) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Contact) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Contact) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Contact) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Contact) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Contact) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Contact) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Contact) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ContactAssignment.md b/docs/ContactAssignment.md index 26a003baba..637e6bf0e0 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **map[string]interface{}** | | [readonly] -**Contact** | [**Contact**](Contact.md) | | -**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] +**Contact** | [**BriefContact**](BriefContact.md) | | +**Role** | Pointer to [**NullableBriefContactRole**](BriefContactRole.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewContactAssignment -`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` +`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` NewContactAssignment instantiates a new ContactAssignment object This constructor will assign default values to properties that have it defined, @@ -159,40 +159,40 @@ SetObject sets Object field to given value. ### GetContact -`func (o *ContactAssignment) GetContact() Contact` +`func (o *ContactAssignment) GetContact() BriefContact` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignment) GetContactOk() (*Contact, bool)` +`func (o *ContactAssignment) GetContactOk() (*BriefContact, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignment) SetContact(v Contact)` +`func (o *ContactAssignment) SetContact(v BriefContact)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignment) GetRole() ContactRole` +`func (o *ContactAssignment) GetRole() BriefContactRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool)` +`func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignment) SetRole(v ContactRole)` +`func (o *ContactAssignment) SetRole(v BriefContactRole)` SetRole sets Role field to given value. @@ -214,20 +214,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignment) GetPriority() ContactAssignmentPriority` +`func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool)` +`func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority)` +`func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` SetPriority sets Priority field to given value. diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index de146e2f6f..5ca6e4a625 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewContactAssignmentRequest -`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest` +`func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *ContactAssignmentRequest` NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *ContactAssignmentRequest) GetContact() ContactRequest` +`func (o *ContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md index 42b960ec33..9724856556 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewContactGroup -`func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ContactGroup) GetDisplay() string` diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md index 050fa6fb1f..13eead0d4c 100644 --- a/docs/ContactRequest.md +++ b/docs/ContactRequest.md @@ -4,8 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +35,41 @@ NewContactRequestWithDefaults instantiates a new ContactRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetGroup + +`func (o *ContactRequest) GetGroup() BriefContactGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ContactRequest) SetGroup(v BriefContactGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ContactRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ContactRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ContactRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *ContactRequest) GetName() string` @@ -46,6 +90,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *ContactRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ContactRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ContactRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ContactRequest) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *ContactRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *ContactRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *ContactRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *ContactRequest) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *ContactRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ContactRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ContactRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ContactRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *ContactRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *ContactRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *ContactRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *ContactRequest) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *ContactRequest) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *ContactRequest) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *ContactRequest) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *ContactRequest) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *ContactRequest) GetDescription() string` @@ -71,6 +240,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ContactRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ContactRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ContactRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ContactRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ContactRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ContactRole.md b/docs/ContactRole.md index 66937cee41..ea561e527b 100644 --- a/docs/ContactRole.md +++ b/docs/ContactRole.md @@ -6,16 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContactRole -`func NewContactRole(id int32, url string, display string, name string, slug string, ) *ContactRole` +`func NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *ContactRole` NewContactRole instantiates a new ContactRole object This constructor will assign default values to properties that have it defined, @@ -70,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ContactRole) GetDisplay() string` @@ -155,6 +180,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ContactRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ContactRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ContactRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ContactRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ContactRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ContactRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ContactRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ContactRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ContactRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ContactRoleRequest.md b/docs/ContactRoleRequest.md index 615000a632..dce32edeee 100644 --- a/docs/ContactRoleRequest.md +++ b/docs/ContactRoleRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRoleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CoreAPI.md b/docs/CoreAPI.md index 18791cb42b..639537d8fb 100644 --- a/docs/CoreAPI.md +++ b/docs/CoreAPI.md @@ -18,6 +18,8 @@ Method | HTTP request | Description [**CoreDataSourcesUpdate**](CoreAPI.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | [**CoreJobsList**](CoreAPI.md#CoreJobsList) | **Get** /api/core/jobs/ | [**CoreJobsRetrieve**](CoreAPI.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | +[**CoreObjectChangesList**](CoreAPI.md#CoreObjectChangesList) | **Get** /api/core/object-changes/ | +[**CoreObjectChangesRetrieve**](CoreAPI.md#CoreObjectChangesRetrieve) | **Get** /api/core/object-changes/{id}/ | @@ -299,7 +301,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -363,7 +365,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +431,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1353,3 +1355,262 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## CoreObjectChangesList + +> PaginatedObjectChangeList CoreObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + action := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + actionN := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + changedObjectId := []int32{int32(123)} // []int32 | (optional) + changedObjectIdEmpty := true // bool | (optional) + changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdN := []int32{int32(123)} // []int32 | (optional) + changedObjectType := "changedObjectType_example" // string | (optional) + changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) + changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) + changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + objectRepr := []string{"Inner_example"} // []string | (optional) + objectReprEmpty := true // bool | (optional) + objectReprIc := []string{"Inner_example"} // []string | (optional) + objectReprIe := []string{"Inner_example"} // []string | (optional) + objectReprIew := []string{"Inner_example"} // []string | (optional) + objectReprIsw := []string{"Inner_example"} // []string | (optional) + objectReprN := []string{"Inner_example"} // []string | (optional) + objectReprNic := []string{"Inner_example"} // []string | (optional) + objectReprNie := []string{"Inner_example"} // []string | (optional) + objectReprNiew := []string{"Inner_example"} // []string | (optional) + objectReprNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + relatedObjectId := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdEmpty := true // bool | (optional) + relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) + relatedObjectType := int32(56) // int32 | (optional) + relatedObjectTypeN := int32(56) // int32 | (optional) + requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + timeAfter := time.Now() // time.Time | (optional) + timeBefore := time.Now() // time.Time | (optional) + user := []string{"Inner_example"} // []string | User name (optional) + userN := []string{"Inner_example"} // []string | User name (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userName := []string{"Inner_example"} // []string | (optional) + userNameEmpty := true // bool | (optional) + userNameIc := []string{"Inner_example"} // []string | (optional) + userNameIe := []string{"Inner_example"} // []string | (optional) + userNameIew := []string{"Inner_example"} // []string | (optional) + userNameIsw := []string{"Inner_example"} // []string | (optional) + userNameN := []string{"Inner_example"} // []string | (optional) + userNameNic := []string{"Inner_example"} // []string | (optional) + userNameNie := []string{"Inner_example"} // []string | (optional) + userNameNiew := []string{"Inner_example"} // []string | (optional) + userNameNisw := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesList`: PaginatedObjectChangeList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **actionN** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | + **changedObjectIdGt** | **[]int32** | | + **changedObjectIdGte** | **[]int32** | | + **changedObjectIdLt** | **[]int32** | | + **changedObjectIdLte** | **[]int32** | | + **changedObjectIdN** | **[]int32** | | + **changedObjectType** | **string** | | + **changedObjectTypeN** | **string** | | + **changedObjectTypeId** | **[]int32** | | + **changedObjectTypeIdN** | **[]int32** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **objectRepr** | **[]string** | | + **objectReprEmpty** | **bool** | | + **objectReprIc** | **[]string** | | + **objectReprIe** | **[]string** | | + **objectReprIew** | **[]string** | | + **objectReprIsw** | **[]string** | | + **objectReprN** | **[]string** | | + **objectReprNic** | **[]string** | | + **objectReprNie** | **[]string** | | + **objectReprNiew** | **[]string** | | + **objectReprNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **relatedObjectId** | **[]int32** | | + **relatedObjectIdEmpty** | **bool** | | + **relatedObjectIdGt** | **[]int32** | | + **relatedObjectIdGte** | **[]int32** | | + **relatedObjectIdLt** | **[]int32** | | + **relatedObjectIdLte** | **[]int32** | | + **relatedObjectIdN** | **[]int32** | | + **relatedObjectType** | **int32** | | + **relatedObjectTypeN** | **int32** | | + **requestId** | **string** | | + **timeAfter** | **time.Time** | | + **timeBefore** | **time.Time** | | + **user** | **[]string** | User name | + **userN** | **[]string** | User name | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **userName** | **[]string** | | + **userNameEmpty** | **bool** | | + **userNameIc** | **[]string** | | + **userNameIe** | **[]string** | | + **userNameIew** | **[]string** | | + **userNameIsw** | **[]string** | | + **userNameN** | **[]string** | | + **userNameNic** | **[]string** | | + **userNameNie** | **[]string** | | + **userNameNiew** | **[]string** | | + **userNameNisw** | **[]string** | | + +### Return type + +[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CoreObjectChangesRetrieve + +> ObjectChange CoreObjectChangesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object change. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesRetrieve`: ObjectChange + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object change. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectChange**](ObjectChange.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/CoreObjectChangesListActionParameter.md b/docs/CoreObjectChangesListActionParameter.md new file mode 100644 index 0000000000..3e5e393d73 --- /dev/null +++ b/docs/CoreObjectChangesListActionParameter.md @@ -0,0 +1,15 @@ +# CoreObjectChangesListActionParameter + +## Enum + + +* `CREATE` (value: `"create"`) + +* `DELETE` (value: `"delete"`) + +* `UPDATE` (value: `"update"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomField.md b/docs/CustomField.md index 58a8f87713..cb2086732c 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Type** | [**CustomFieldType**](CustomFieldType.md) | | @@ -15,18 +16,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSet**](BriefCustomFieldChoiceSet.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -35,7 +38,7 @@ Name | Type | Description | Notes ### NewCustomField -`func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` +`func NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` NewCustomField instantiates a new CustomField object This constructor will assign default values to properties that have it defined, @@ -90,6 +93,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomField) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomField) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomField) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomField) GetDisplay() string` @@ -325,6 +348,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomField) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomField) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomField) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomField) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomField) GetSearchWeight() int32` @@ -485,6 +533,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomField) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomField) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomField) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomField) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomField) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomField) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomField) GetWeight() int32` @@ -607,20 +690,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet` +`func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool)` +`func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)` +`func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index ebc8229ca5..92db3f28fa 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewCustomFieldChoiceSet -`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` +`func NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomFieldChoiceSet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomFieldChoiceSet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomFieldChoiceSet) GetDisplay() string` diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md index ab9dfbfd1c..e9b2185ecf 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -239,6 +241,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomFieldRequest) GetSearchWeight() int32` @@ -399,6 +426,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomFieldRequest) GetWeight() int32` @@ -521,20 +583,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomLink.md b/docs/CustomLink.md index c2b8e12eac..95496579d1 100644 --- a/docs/CustomLink.md +++ b/docs/CustomLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewCustomLink -`func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` +`func NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` NewCustomLink instantiates a new CustomLink object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomLink) GetDisplay() string` diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md index f62db6217b..bf68c5956e 100644 --- a/docs/CustomLinkButtonClass.md +++ b/docs/CustomLinkButtonClass.md @@ -3,7 +3,7 @@ ## Enum -* `OUTLINE_DARK` (value: `"outline-dark"`) +* `DEFAULT` (value: `"default"`) * `BLUE` (value: `"blue"`) diff --git a/docs/DataFile.md b/docs/DataFile.md index a332d29cbd..031354927c 100644 --- a/docs/DataFile.md +++ b/docs/DataFile.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Source** | [**DataSource**](DataSource.md) | | [readonly] +**Source** | [**BriefDataSource**](BriefDataSource.md) | | [readonly] **Path** | **string** | File path relative to the data source's root | [readonly] **LastUpdated** | **time.Time** | | [readonly] **Size** | **int32** | | [readonly] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewDataFile -`func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` +`func NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` NewDataFile instantiates a new DataFile object This constructor will assign default values to properties that have it defined, @@ -72,6 +73,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataFile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataFile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataFile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DataFile) GetDisplay() string` @@ -94,20 +115,20 @@ SetDisplay sets Display field to given value. ### GetSource -`func (o *DataFile) GetSource() DataSource` +`func (o *DataFile) GetSource() BriefDataSource` GetSource returns the Source field if non-nil, zero value otherwise. ### GetSourceOk -`func (o *DataFile) GetSourceOk() (*DataSource, bool)` +`func (o *DataFile) GetSourceOk() (*BriefDataSource, bool)` GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSource -`func (o *DataFile) SetSource(v DataSource)` +`func (o *DataFile) SetSource(v BriefDataSource)` SetSource sets Source field to given value. diff --git a/docs/DataSource.md b/docs/DataSource.md index 0768fd476e..0d294c8cae 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**DataSourceType**](DataSourceType.md) | | +**SourceUrl** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Status** | [**DataSourceStatus**](DataSourceStatus.md) | | **Description** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] +**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**LastSynced** | **NullableTime** | | [readonly] +**FileCount** | **int64** | | [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, display string, name string, ) *DataSource` +`func NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataSource) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataSource) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataSource) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DataSource) GetDisplay() string` @@ -109,6 +142,91 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *DataSource) GetType() DataSourceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DataSource) GetTypeOk() (*DataSourceType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DataSource) SetType(v DataSourceType)` + +SetType sets Type field to given value. + + +### GetSourceUrl + +`func (o *DataSource) GetSourceUrl() string` + +GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. + +### GetSourceUrlOk + +`func (o *DataSource) GetSourceUrlOk() (*string, bool)` + +GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceUrl + +`func (o *DataSource) SetSourceUrl(v string)` + +SetSourceUrl sets SourceUrl field to given value. + + +### GetEnabled + +`func (o *DataSource) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DataSource) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DataSource) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DataSource) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *DataSource) GetStatus() DataSourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DataSource) SetStatus(v DataSourceStatus)` + +SetStatus sets Status field to given value. + + ### GetDescription `func (o *DataSource) GetDescription() string` @@ -134,6 +252,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetParameters + +`func (o *DataSource) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *DataSource) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *DataSource) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *DataSource) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *DataSource) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *DataSource) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetIgnoreRules + +`func (o *DataSource) GetIgnoreRules() string` + +GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. + +### GetIgnoreRulesOk + +`func (o *DataSource) GetIgnoreRulesOk() (*string, bool)` + +GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreRules + +`func (o *DataSource) SetIgnoreRules(v string)` + +SetIgnoreRules sets IgnoreRules field to given value. + +### HasIgnoreRules + +`func (o *DataSource) HasIgnoreRules() bool` + +HasIgnoreRules returns a boolean if a field has been set. + +### GetComments + +`func (o *DataSource) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSource) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSource) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSource) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DataSource) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DataSource) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DataSource) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DataSource) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DataSource) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DataSource) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DataSource) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DataSource) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DataSource) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DataSource) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DataSource) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DataSource) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DataSource) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetLastSynced + +`func (o *DataSource) GetLastSynced() time.Time` + +GetLastSynced returns the LastSynced field if non-nil, zero value otherwise. + +### GetLastSyncedOk + +`func (o *DataSource) GetLastSyncedOk() (*time.Time, bool)` + +GetLastSyncedOk returns a tuple with the LastSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSynced + +`func (o *DataSource) SetLastSynced(v time.Time)` + +SetLastSynced sets LastSynced field to given value. + + +### SetLastSyncedNil + +`func (o *DataSource) SetLastSyncedNil(b bool)` + + SetLastSyncedNil sets the value for LastSynced to be an explicit nil + +### UnsetLastSynced +`func (o *DataSource) UnsetLastSynced()` + +UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil +### GetFileCount + +`func (o *DataSource) GetFileCount() int64` + +GetFileCount returns the FileCount field if non-nil, zero value otherwise. + +### GetFileCountOk + +`func (o *DataSource) GetFileCountOk() (*int64, bool)` + +GetFileCountOk returns a tuple with the FileCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileCount + +`func (o *DataSource) SetFileCount(v int64)` + +SetFileCount sets FileCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataSourceRequest.md b/docs/DataSourceRequest.md index f9f23e2557..8aad888e3e 100644 --- a/docs/DataSourceRequest.md +++ b/docs/DataSourceRequest.md @@ -5,20 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | +**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | | **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDataSourceRequest -`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` +`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest` NewDataSourceRequest instantiates a new DataSourceRequest object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetName sets Name field to given value. ### GetType -`func (o *DataSourceRequest) GetType() DataSourceRequestType` +`func (o *DataSourceRequest) GetType() DataSourceTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` +`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)` SetType sets Type field to given value. @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *DataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/DataSourceStatus.md b/docs/DataSourceStatus.md new file mode 100644 index 0000000000..bb83baf4a3 --- /dev/null +++ b/docs/DataSourceStatus.md @@ -0,0 +1,82 @@ +# DataSourceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceStatusValue**](DataSourceStatusValue.md) | | [optional] +**Label** | Pointer to [**DataSourceStatusLabel**](DataSourceStatusLabel.md) | | [optional] + +## Methods + +### NewDataSourceStatus + +`func NewDataSourceStatus() *DataSourceStatus` + +NewDataSourceStatus instantiates a new DataSourceStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDataSourceStatusWithDefaults + +`func NewDataSourceStatusWithDefaults() *DataSourceStatus` + +NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DataSourceStatus) GetValue() DataSourceStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DataSourceStatus) SetValue(v DataSourceStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSourceStatusLabel.md b/docs/DataSourceStatusLabel.md new file mode 100644 index 0000000000..09a777b52c --- /dev/null +++ b/docs/DataSourceStatusLabel.md @@ -0,0 +1,19 @@ +# DataSourceStatusLabel + +## Enum + + +* `NEW` (value: `"New"`) + +* `QUEUED` (value: `"Queued"`) + +* `SYNCING` (value: `"Syncing"`) + +* `COMPLETED` (value: `"Completed"`) + +* `FAILED` (value: `"Failed"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSourceStatusValue.md b/docs/DataSourceStatusValue.md new file mode 100644 index 0000000000..a46091ab0a --- /dev/null +++ b/docs/DataSourceStatusValue.md @@ -0,0 +1,19 @@ +# DataSourceStatusValue + +## Enum + + +* `NEW` (value: `"new"`) + +* `QUEUED` (value: `"queued"`) + +* `SYNCING` (value: `"syncing"`) + +* `COMPLETED` (value: `"completed"`) + +* `FAILED` (value: `"failed"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSourceType.md b/docs/DataSourceType.md new file mode 100644 index 0000000000..a5d2f0be04 --- /dev/null +++ b/docs/DataSourceType.md @@ -0,0 +1,82 @@ +# DataSourceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceTypeValue**](DataSourceTypeValue.md) | | [optional] +**Label** | Pointer to [**DataSourceTypeLabel**](DataSourceTypeLabel.md) | | [optional] + +## Methods + +### NewDataSourceType + +`func NewDataSourceType() *DataSourceType` + +NewDataSourceType instantiates a new DataSourceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDataSourceTypeWithDefaults + +`func NewDataSourceTypeWithDefaults() *DataSourceType` + +NewDataSourceTypeWithDefaults instantiates a new DataSourceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DataSourceType) GetValue() DataSourceTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DataSourceType) SetValue(v DataSourceTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceType) GetLabel() DataSourceTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DataSourceType) SetLabel(v DataSourceTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceType) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSourceTypeLabel.md b/docs/DataSourceTypeLabel.md new file mode 100644 index 0000000000..067bf53d6f --- /dev/null +++ b/docs/DataSourceTypeLabel.md @@ -0,0 +1,17 @@ +# DataSourceTypeLabel + +## Enum + + +* `_______` (value: `"---------"`) + +* `LOCAL` (value: `"Local"`) + +* `GIT` (value: `"Git"`) + +* `AMAZON_S3` (value: `"Amazon S3"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSourceTypeValue.md b/docs/DataSourceTypeValue.md new file mode 100644 index 0000000000..8d051f27cc --- /dev/null +++ b/docs/DataSourceTypeValue.md @@ -0,0 +1,15 @@ +# DataSourceTypeValue + +## Enum + + +* `LOCAL` (value: `"local"`) + +* `GIT` (value: `"git"`) + +* `AMAZON_S3` (value: `"amazon-s3"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DcimAPI.md b/docs/DcimAPI.md index 2e73f244a9..8fa92b5c2f 100644 --- a/docs/DcimAPI.md +++ b/docs/DcimAPI.md @@ -310,6 +310,15 @@ Method | HTTP request | Description [**DcimRackRolesPartialUpdate**](DcimAPI.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesRetrieve**](DcimAPI.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesUpdate**](DcimAPI.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | +[**DcimRackTypesBulkDestroy**](DcimAPI.md#DcimRackTypesBulkDestroy) | **Delete** /api/dcim/rack-types/ | +[**DcimRackTypesBulkPartialUpdate**](DcimAPI.md#DcimRackTypesBulkPartialUpdate) | **Patch** /api/dcim/rack-types/ | +[**DcimRackTypesBulkUpdate**](DcimAPI.md#DcimRackTypesBulkUpdate) | **Put** /api/dcim/rack-types/ | +[**DcimRackTypesCreate**](DcimAPI.md#DcimRackTypesCreate) | **Post** /api/dcim/rack-types/ | +[**DcimRackTypesDestroy**](DcimAPI.md#DcimRackTypesDestroy) | **Delete** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesList**](DcimAPI.md#DcimRackTypesList) | **Get** /api/dcim/rack-types/ | +[**DcimRackTypesPartialUpdate**](DcimAPI.md#DcimRackTypesPartialUpdate) | **Patch** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesRetrieve**](DcimAPI.md#DcimRackTypesRetrieve) | **Get** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesUpdate**](DcimAPI.md#DcimRackTypesUpdate) | **Put** /api/dcim/rack-types/{id}/ | [**DcimRacksBulkDestroy**](DcimAPI.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | [**DcimRacksBulkPartialUpdate**](DcimAPI.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | [**DcimRacksBulkUpdate**](DcimAPI.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | @@ -1511,10 +1520,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []int32{int32(123)} // []int32 | (optional) @@ -1634,10 +1643,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | | @@ -2283,7 +2292,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -2324,8 +2333,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2355,8 +2362,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2377,7 +2382,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2419,8 +2424,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2450,8 +2453,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2723,7 +2724,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2787,7 +2788,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2853,7 +2854,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2919,7 +2920,7 @@ import ( ) func main() { - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3034,7 +3035,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -3083,6 +3084,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -3140,20 +3147,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -3170,7 +3173,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3220,6 +3223,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -3277,20 +3286,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -3557,7 +3562,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console port. - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3939,7 +3944,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -3980,8 +3985,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4011,8 +4014,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4033,7 +4034,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4075,8 +4076,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -4106,8 +4105,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4379,7 +4376,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4443,7 +4440,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4509,7 +4506,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4575,7 +4572,7 @@ import ( ) func main() { - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4690,7 +4687,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4739,6 +4736,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -4796,20 +4799,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -4826,7 +4825,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4876,6 +4875,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -4933,20 +4938,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -5213,7 +5214,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console server port. - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5284,7 +5285,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5348,7 +5349,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5414,7 +5415,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5480,7 +5481,7 @@ import ( ) func main() { - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5595,7 +5596,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -5636,8 +5637,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5683,7 +5682,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5725,8 +5724,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5952,7 +5949,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay template. - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6023,7 +6020,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6087,7 +6084,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6153,7 +6150,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6219,7 +6216,7 @@ import ( ) func main() { - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6334,7 +6331,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -6377,6 +6374,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -6434,20 +6437,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -6460,7 +6459,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6504,6 +6503,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -6561,20 +6566,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -6767,7 +6768,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay. - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7601,7 +7602,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7665,7 +7666,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7731,7 +7732,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7797,7 +7798,7 @@ import ( ) func main() { - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8509,7 +8510,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device type. - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8580,7 +8581,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8644,7 +8645,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8710,7 +8711,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8776,7 +8777,7 @@ import ( ) func main() { - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8891,7 +8892,7 @@ Name | Type | Description | Notes ## DcimDevicesList -> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() @@ -8924,6 +8925,10 @@ func main() { assetTagNie := []string{"Inner_example"} // []string | (optional) assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) + clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) + clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) @@ -8946,8 +8951,8 @@ func main() { consoleServerPorts := true // bool | Has console server ports (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -9032,8 +9037,8 @@ func main() { latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) localContextData := true // bool | Has local config context data (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) longitude := []float64{float64(123)} // []float64 | (optional) longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) @@ -9127,10 +9132,10 @@ func main() { rearPortCountLt := []int32{int32(123)} // []int32 | (optional) rearPortCountLte := []int32{int32(123)} // []int32 | (optional) rearPortCountN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Role (ID) (optional) @@ -9148,10 +9153,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -9160,10 +9165,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -9187,7 +9192,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9221,6 +9226,10 @@ Name | Type | Description | Notes **assetTagNie** | **[]string** | | **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | + **clusterGroup** | **[]string** | Cluster group (slug) | + **clusterGroupN** | **[]string** | Cluster group (slug) | + **clusterGroupId** | **[]int32** | Cluster group (ID) | + **clusterGroupIdN** | **[]int32** | Cluster group (ID) | **clusterId** | **[]int32** | VM cluster (ID) | **clusterIdN** | **[]int32** | VM cluster (ID) | **configTemplateId** | **[]int32** | Config template (ID) | @@ -9243,8 +9252,8 @@ Name | Type | Description | Notes **consoleServerPorts** | **bool** | Has console server ports | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -9329,8 +9338,8 @@ Name | Type | Description | Notes **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **localContextData** | **bool** | Has local config context data | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **longitude** | **[]float64** | | **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | @@ -9424,10 +9433,10 @@ Name | Type | Description | Notes **rearPortCountLt** | **[]int32** | | **rearPortCountLte** | **[]int32** | | **rearPortCountN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -9445,10 +9454,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -9457,10 +9466,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9594,7 +9603,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -9738,7 +9747,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9809,7 +9818,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9873,7 +9882,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9939,7 +9948,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10005,7 +10014,7 @@ import ( ) func main() { - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10120,7 +10129,7 @@ Name | Type | Description | Notes ## DcimFrontPortTemplatesList -> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -10172,8 +10181,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -10203,8 +10210,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10234,7 +10239,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10287,8 +10292,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -10318,8 +10321,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10529,7 +10530,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port template. - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10600,7 +10601,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10664,7 +10665,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10730,7 +10731,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10796,7 +10797,7 @@ import ( ) func main() { - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10911,7 +10912,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10970,6 +10971,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -11036,20 +11043,16 @@ func main() { rearPortPositionLt := []int32{int32(123)} // []int32 | (optional) rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -11064,7 +11067,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11124,6 +11127,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -11190,20 +11199,16 @@ Name | Type | Description | Notes **rearPortPositionLt** | **[]int32** | | **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -11468,7 +11473,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port. - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -11850,7 +11855,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -11893,8 +11898,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -11926,8 +11929,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11954,7 +11955,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11998,8 +11999,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12031,8 +12030,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12310,7 +12307,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12374,7 +12371,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12440,7 +12437,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12506,7 +12503,7 @@ import ( ) func main() { - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12621,7 +12618,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() +> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -12672,6 +12669,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -12765,10 +12768,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) rfChannel := []string{"Inner_example"} // []string | (optional) rfChannelN := []string{"Inner_example"} // []string | (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) @@ -12787,16 +12790,12 @@ func main() { rfChannelWidthN := []float64{float64(123)} // []float64 | (optional) rfRole := []string{"Inner_example"} // []string | (optional) rfRoleN := []string{"Inner_example"} // []string | (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) @@ -12853,7 +12852,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12905,6 +12904,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -12998,10 +13003,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **rfChannel** | **[]string** | | **rfChannelN** | **[]string** | | **rfChannelFrequency** | **[]float64** | | @@ -13020,16 +13025,12 @@ Name | Type | Description | Notes **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | **rfRoleN** | **[]string** | | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | @@ -13336,7 +13337,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14164,7 +14165,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14228,7 +14229,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14294,7 +14295,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14360,7 +14361,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14475,7 +14476,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -14525,8 +14526,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -14593,7 +14592,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -14644,8 +14643,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -14892,7 +14889,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item template. - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14963,7 +14960,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15027,7 +15024,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15093,7 +15090,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15159,7 +15156,7 @@ import ( ) func main() { - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15274,7 +15271,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsList -> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -15337,6 +15334,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -15408,10 +15411,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -15429,10 +15432,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -15445,7 +15448,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -15509,6 +15512,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -15580,10 +15589,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -15601,10 +15610,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -15797,7 +15806,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15868,7 +15877,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15932,7 +15941,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15998,7 +16007,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16064,7 +16073,7 @@ import ( ) func main() { - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16199,14 +16208,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Location (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -16273,16 +16282,16 @@ func main() { parentId := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) parentIdN := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -16302,10 +16311,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -16333,14 +16342,14 @@ Other parameters are passed through a pointer to a apiDcimLocationsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Location (slug) | - **ancestorN** | **[]int32** | Location (slug) | - **ancestorId** | **[]int32** | Location (ID) | - **ancestorIdN** | **[]int32** | Location (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -16407,16 +16416,16 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent location (ID) | **parentIdN** | **[]int32** | Parent location (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **slug** | **[]string** | | @@ -16436,10 +16445,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -16626,7 +16635,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this location. - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17030,8 +17039,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -17123,8 +17132,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -17444,7 +17453,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17508,7 +17517,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17574,7 +17583,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17640,7 +17649,7 @@ import ( ) func main() { - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17755,7 +17764,7 @@ Name | Type | Description | Notes ## DcimModuleBayTemplatesList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -17794,10 +17803,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -17825,6 +17832,8 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -17854,7 +17863,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -17896,8 +17905,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17925,6 +17932,8 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18134,7 +18143,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay template. - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18205,7 +18214,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18269,7 +18278,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18335,7 +18344,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18401,7 +18410,7 @@ import ( ) func main() { - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18516,7 +18525,7 @@ Name | Type | Description | Notes ## DcimModuleBaysList -> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -18559,6 +18568,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -18596,6 +18611,8 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) + moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -18609,6 +18626,8 @@ func main() { nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + parentId := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) + parentIdN := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) position := []string{"Inner_example"} // []string | (optional) positionEmpty := true // bool | (optional) positionIc := []string{"Inner_example"} // []string | (optional) @@ -18625,20 +18644,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -18651,7 +18666,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -18695,6 +18710,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -18732,6 +18753,8 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18745,6 +18768,8 @@ Name | Type | Description | Notes **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **parentId** | **[]int32** | Parent module bay (ID) | + **parentIdN** | **[]int32** | Parent module bay (ID) | **position** | **[]string** | | **positionEmpty** | **bool** | | **positionIc** | **[]string** | | @@ -18761,20 +18786,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -18967,7 +18988,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay. - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19038,7 +19059,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19102,7 +19123,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19168,7 +19189,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19234,7 +19255,7 @@ import ( ) func main() { - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19349,7 +19370,7 @@ Name | Type | Description | Notes ## DcimModuleTypesList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() @@ -19369,6 +19390,8 @@ import ( ) func main() { + airflow := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) + airflowN := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -19454,7 +19477,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -19475,6 +19498,8 @@ Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | + **airflowN** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | @@ -19740,7 +19765,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module type. - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19811,7 +19836,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19875,7 +19900,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19941,7 +19966,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20007,7 +20032,7 @@ import ( ) func main() { - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20194,8 +20219,8 @@ func main() { manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) - moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) + moduleBayId := []string{"Inner_example"} // []string | (optional) + moduleBayIdN := []string{"Inner_example"} // []string | (optional) moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) @@ -20295,8 +20320,8 @@ Name | Type | Description | Notes **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **modifiedByRequest** | **string** | | - **moduleBayId** | **[]int32** | Module Bay (ID) | - **moduleBayIdN** | **[]int32** | Module Bay (ID) | + **moduleBayId** | **[]string** | | + **moduleBayIdN** | **[]string** | | **moduleType** | **[]string** | Module type (model) | **moduleTypeN** | **[]string** | Module type (model) | **moduleTypeId** | **[]int32** | Module type (ID) | @@ -20503,7 +20528,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module. - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21323,7 +21348,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21387,7 +21412,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21453,7 +21478,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21519,7 +21544,7 @@ import ( ) func main() { - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21738,16 +21763,16 @@ func main() { q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -21758,10 +21783,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) @@ -21882,16 +21907,16 @@ Name | Type | Description | Notes **q** | **string** | Search | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -21902,10 +21927,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | @@ -22171,7 +22196,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power feed. - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -22553,7 +22578,7 @@ Name | Type | Description | Notes ## DcimPowerOutletTemplatesList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -22594,8 +22619,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) id := []int32{int32(123)} // []int32 | (optional) @@ -22627,8 +22650,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22645,13 +22666,13 @@ func main() { powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-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` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -22693,8 +22714,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | @@ -22726,8 +22745,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -22744,8 +22761,8 @@ Name | Type | Description | Notes **powerPortId** | **[]int32** | Power port (ID) | **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-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` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -23001,7 +23018,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23065,7 +23082,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23131,7 +23148,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23197,7 +23214,7 @@ import ( ) func main() { - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23312,7 +23329,7 @@ Name | Type | Description | Notes ## DcimPowerOutletsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -23361,6 +23378,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -23422,20 +23445,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -23450,7 +23469,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -23500,6 +23519,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -23561,20 +23586,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -23839,7 +23860,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power outlet. - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23910,7 +23931,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23974,7 +23995,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24040,7 +24061,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24106,7 +24127,7 @@ import ( ) func main() { - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24243,8 +24264,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -24281,8 +24302,8 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -24298,16 +24319,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -24339,8 +24360,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -24377,8 +24398,8 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -24394,16 +24415,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -24592,7 +24613,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power panel. - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24974,7 +24995,7 @@ Name | Type | Description | Notes ## DcimPowerPortTemplatesList -> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -25022,8 +25043,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -25060,8 +25079,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -25076,13 +25093,13 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25131,8 +25148,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25169,8 +25184,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -25185,8 +25198,8 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -25442,7 +25455,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25506,7 +25519,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25572,7 +25585,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25638,7 +25651,7 @@ import ( ) func main() { - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25753,7 +25766,7 @@ Name | Type | Description | Notes ## DcimPowerPortsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -25809,6 +25822,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -25873,20 +25892,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -25901,7 +25916,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25958,6 +25973,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -26022,20 +26043,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -26300,7 +26317,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power port. - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26371,7 +26388,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26435,7 +26452,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26501,7 +26518,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26567,7 +26584,7 @@ import ( ) func main() { - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26736,36 +26753,36 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) unit := float32(8.14) // float32 | (optional) @@ -26832,48 +26849,805 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **unit** | **float32** | | + **updatedByRequest** | **string** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + +### Return type + +[**PaginatedRackReservationList**](PaginatedRackReservationList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsPartialUpdate + +> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsPartialUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsRetrieve + +> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsRetrieve`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsUpdate + +> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkDestroy + +> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkPartialUpdate + +> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesBulkPartialUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**[]RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkUpdate + +> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesBulkUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**[]RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesCreate + +> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesCreate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesDestroy + +> DcimRackRolesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack role. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack role. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesList + +> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesList`: PaginatedRackRoleList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | + **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | - **tenant** | **[]string** | Tenant (slug) | - **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | - **tenantId** | **[]int32** | Tenant (ID) | - **tenantIdN** | **[]int32** | Tenant (ID) | - **unit** | **float32** | | **updatedByRequest** | **string** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedRackReservationList**](PaginatedRackReservationList.md) +[**PaginatedRackRoleList**](PaginatedRackRoleList.md) ### Authorization @@ -26889,9 +27663,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsPartialUpdate +## DcimRackRolesPartialUpdate -> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() +> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() @@ -26910,18 +27684,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack role. + patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsPartialUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesPartialUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) } ``` @@ -26931,21 +27705,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | + **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -26961,9 +27735,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsRetrieve +## DcimRackRolesRetrieve -> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() +> RackRole DcimRackRolesRetrieve(ctx, id).Execute() @@ -26982,17 +27756,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsRetrieve`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) + // response from `DcimRackRolesRetrieve`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) } ``` @@ -27002,11 +27776,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27015,7 +27789,7 @@ Name | Type | Description | Notes ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27031,9 +27805,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsUpdate +## DcimRackRolesUpdate -> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() +> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() @@ -27052,18 +27826,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + id := int32(56) // int32 | A unique integer value identifying this rack role. + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) + // response from `DcimRackRolesUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) } ``` @@ -27073,21 +27847,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27103,9 +27877,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkDestroy +## DcimRackTypesBulkDestroy -> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() +> DcimRackTypesBulkDestroy(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27124,13 +27898,13 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27142,12 +27916,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type @@ -27167,9 +27941,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkPartialUpdate +## DcimRackTypesBulkPartialUpdate -> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkPartialUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27188,17 +27962,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesBulkPartialUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkPartialUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27208,16 +27982,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27233,9 +28007,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkUpdate +## DcimRackTypesBulkUpdate -> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27254,17 +28028,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesBulkUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkUpdate`: %v\n", resp) } ``` @@ -27274,16 +28048,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27299,9 +28073,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesCreate +## DcimRackTypesCreate -> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesCreate(ctx).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27320,17 +28094,17 @@ import ( ) func main() { - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesCreate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) + // response from `DcimRackTypesCreate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesCreate`: %v\n", resp) } ``` @@ -27340,16 +28114,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27365,9 +28139,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesDestroy +## DcimRackTypesDestroy -> DcimRackRolesDestroy(ctx, id).Execute() +> DcimRackTypesDestroy(ctx, id).Execute() @@ -27386,13 +28160,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27404,11 +28178,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -27433,9 +28207,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesList +## DcimRackTypesList -> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRackTypeList DcimRackTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -27455,17 +28229,6 @@ import ( ) func main() { - color := []string{"Inner_example"} // []string | (optional) - colorEmpty := true // bool | (optional) - colorIc := []string{"Inner_example"} // []string | (optional) - colorIe := []string{"Inner_example"} // []string | (optional) - colorIew := []string{"Inner_example"} // []string | (optional) - colorIsw := []string{"Inner_example"} // []string | (optional) - colorN := []string{"Inner_example"} // []string | (optional) - colorNic := []string{"Inner_example"} // []string | (optional) - colorNie := []string{"Inner_example"} // []string | (optional) - colorNiew := []string{"Inner_example"} // []string | (optional) - colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -27474,6 +28237,7 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + descUnits := true // bool | (optional) description := []string{"Inner_example"} // []string | (optional) descriptionEmpty := true // bool | (optional) descriptionIc := []string{"Inner_example"} // []string | (optional) @@ -27485,6 +28249,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -27500,20 +28266,54 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + maxWeight := []int32{int32(123)} // []int32 | (optional) + maxWeightEmpty := true // bool | (optional) + maxWeightGt := []int32{int32(123)} // []int32 | (optional) + maxWeightGte := []int32{int32(123)} // []int32 | (optional) + maxWeightLt := []int32{int32(123)} // []int32 | (optional) + maxWeightLte := []int32{int32(123)} // []int32 | (optional) + maxWeightN := []int32{int32(123)} // []int32 | (optional) + model := []string{"Inner_example"} // []string | (optional) + modelEmpty := true // bool | (optional) + modelIc := []string{"Inner_example"} // []string | (optional) + modelIe := []string{"Inner_example"} // []string | (optional) + modelIew := []string{"Inner_example"} // []string | (optional) + modelIsw := []string{"Inner_example"} // []string | (optional) + modelN := []string{"Inner_example"} // []string | (optional) + modelNic := []string{"Inner_example"} // []string | (optional) + modelNie := []string{"Inner_example"} // []string | (optional) + modelNiew := []string{"Inner_example"} // []string | (optional) + modelNisw := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) + mountingDepth := []int32{int32(123)} // []int32 | (optional) + mountingDepthEmpty := true // bool | (optional) + mountingDepthGt := []int32{int32(123)} // []int32 | (optional) + mountingDepthGte := []int32{int32(123)} // []int32 | (optional) + mountingDepthLt := []int32{int32(123)} // []int32 | (optional) + mountingDepthLte := []int32{int32(123)} // []int32 | (optional) + mountingDepthN := []int32{int32(123)} // []int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + outerDepth := []int32{int32(123)} // []int32 | (optional) + outerDepthEmpty := true // bool | (optional) + outerDepthGt := []int32{int32(123)} // []int32 | (optional) + outerDepthGte := []int32{int32(123)} // []int32 | (optional) + outerDepthLt := []int32{int32(123)} // []int32 | (optional) + outerDepthLte := []int32{int32(123)} // []int32 | (optional) + outerDepthN := []int32{int32(123)} // []int32 | (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerWidth := []int32{int32(123)} // []int32 | (optional) + outerWidthEmpty := true // bool | (optional) + outerWidthGt := []int32{int32(123)} // []int32 | (optional) + outerWidthGte := []int32{int32(123)} // []int32 | (optional) + outerWidthLt := []int32{int32(123)} // []int32 | (optional) + outerWidthLte := []int32{int32(123)} // []int32 | (optional) + outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) @@ -27526,19 +28326,44 @@ func main() { slugNie := []string{"Inner_example"} // []string | (optional) slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) + startingUnit := []int32{int32(123)} // []int32 | (optional) + startingUnitEmpty := true // bool | (optional) + startingUnitGt := []int32{int32(123)} // []int32 | (optional) + startingUnitGte := []int32{int32(123)} // []int32 | (optional) + startingUnitLt := []int32{int32(123)} // []int32 | (optional) + startingUnitLte := []int32{int32(123)} // []int32 | (optional) + startingUnitN := []int32{int32(123)} // []int32 | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) + uHeight := []int32{int32(123)} // []int32 | (optional) + uHeightEmpty := true // bool | (optional) + uHeightGt := []int32{int32(123)} // []int32 | (optional) + uHeightGte := []int32{int32(123)} // []int32 | (optional) + uHeightLt := []int32{int32(123)} // []int32 | (optional) + uHeightLte := []int32{int32(123)} // []int32 | (optional) + uHeightN := []int32{int32(123)} // []int32 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []float64{float64(123)} // []float64 | (optional) + weightGte := []float64{float64(123)} // []float64 | (optional) + weightLt := []float64{float64(123)} // []float64 | (optional) + weightLte := []float64{float64(123)} // []float64 | (optional) + weightN := []float64{float64(123)} // []float64 | (optional) + weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesList`: PaginatedRackRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) + // response from `DcimRackTypesList`: PaginatedRackTypeList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesList`: %v\n", resp) } ``` @@ -27548,22 +28373,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **color** | **[]string** | | - **colorEmpty** | **bool** | | - **colorIc** | **[]string** | | - **colorIe** | **[]string** | | - **colorIew** | **[]string** | | - **colorIsw** | **[]string** | | - **colorN** | **[]string** | | - **colorNic** | **[]string** | | - **colorNie** | **[]string** | | - **colorNiew** | **[]string** | | - **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -27572,6 +28386,7 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | + **descUnits** | **bool** | | **description** | **[]string** | | **descriptionEmpty** | **bool** | | **descriptionIc** | **[]string** | | @@ -27583,6 +28398,8 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -27598,20 +28415,54 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **maxWeight** | **[]int32** | | + **maxWeightEmpty** | **bool** | | + **maxWeightGt** | **[]int32** | | + **maxWeightGte** | **[]int32** | | + **maxWeightLt** | **[]int32** | | + **maxWeightLte** | **[]int32** | | + **maxWeightN** | **[]int32** | | + **model** | **[]string** | | + **modelEmpty** | **bool** | | + **modelIc** | **[]string** | | + **modelIe** | **[]string** | | + **modelIew** | **[]string** | | + **modelIsw** | **[]string** | | + **modelN** | **[]string** | | + **modelNic** | **[]string** | | + **modelNie** | **[]string** | | + **modelNiew** | **[]string** | | + **modelNisw** | **[]string** | | **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | + **mountingDepth** | **[]int32** | | + **mountingDepthEmpty** | **bool** | | + **mountingDepthGt** | **[]int32** | | + **mountingDepthGte** | **[]int32** | | + **mountingDepthLt** | **[]int32** | | + **mountingDepthLte** | **[]int32** | | + **mountingDepthN** | **[]int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **outerDepth** | **[]int32** | | + **outerDepthEmpty** | **bool** | | + **outerDepthGt** | **[]int32** | | + **outerDepthGte** | **[]int32** | | + **outerDepthLt** | **[]int32** | | + **outerDepthLte** | **[]int32** | | + **outerDepthN** | **[]int32** | | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerWidth** | **[]int32** | | + **outerWidthEmpty** | **bool** | | + **outerWidthGt** | **[]int32** | | + **outerWidthGte** | **[]int32** | | + **outerWidthLt** | **[]int32** | | + **outerWidthLte** | **[]int32** | | + **outerWidthN** | **[]int32** | | **q** | **string** | Search | **slug** | **[]string** | | **slugEmpty** | **bool** | | @@ -27624,13 +28475,38 @@ Name | Type | Description | Notes **slugNie** | **[]string** | | **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | + **startingUnit** | **[]int32** | | + **startingUnitEmpty** | **bool** | | + **startingUnitGt** | **[]int32** | | + **startingUnitGte** | **[]int32** | | + **startingUnitLt** | **[]int32** | | + **startingUnitLte** | **[]int32** | | + **startingUnitN** | **[]int32** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **uHeight** | **[]int32** | | + **uHeightEmpty** | **bool** | | + **uHeightGt** | **[]int32** | | + **uHeightGte** | **[]int32** | | + **uHeightLt** | **[]int32** | | + **uHeightLte** | **[]int32** | | + **uHeightN** | **[]int32** | | **updatedByRequest** | **string** | | + **weight** | **[]float64** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]float64** | | + **weightGte** | **[]float64** | | + **weightLt** | **[]float64** | | + **weightLte** | **[]float64** | | + **weightN** | **[]float64** | | + **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **width** | **[]int32** | Rail-to-rail width | + **widthN** | **[]int32** | Rail-to-rail width | ### Return type -[**PaginatedRackRoleList**](PaginatedRackRoleList.md) +[**PaginatedRackTypeList**](PaginatedRackTypeList.md) ### Authorization @@ -27646,9 +28522,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesPartialUpdate +## DcimRackTypesPartialUpdate -> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() +> RackType DcimRackTypesPartialUpdate(ctx, id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() @@ -27667,18 +28543,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack type. + patchedWritableRackTypeRequest := *openapiclient.NewPatchedWritableRackTypeRequest() // PatchedWritableRackTypeRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesPartialUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) + // response from `DcimRackTypesPartialUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesPartialUpdate`: %v\n", resp) } ``` @@ -27688,21 +28564,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | + **patchedWritableRackTypeRequest** | [**PatchedWritableRackTypeRequest**](PatchedWritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27718,9 +28594,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesRetrieve +## DcimRackTypesRetrieve -> RackRole DcimRackRolesRetrieve(ctx, id).Execute() +> RackType DcimRackTypesRetrieve(ctx, id).Execute() @@ -27739,17 +28615,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesRetrieve`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) + // response from `DcimRackTypesRetrieve`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesRetrieve`: %v\n", resp) } ``` @@ -27759,11 +28635,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27772,7 +28648,7 @@ Name | Type | Description | Notes ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27788,9 +28664,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesUpdate +## DcimRackTypesUpdate -> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesUpdate(ctx, id).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27809,18 +28685,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + id := int32(56) // int32 | A unique integer value identifying this rack type. + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) + // response from `DcimRackTypesUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesUpdate`: %v\n", resp) } ``` @@ -27830,21 +28706,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27881,7 +28757,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -27945,7 +28821,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28011,7 +28887,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28077,7 +28953,7 @@ import ( ) func main() { - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28286,7 +29162,7 @@ Name | Type | Description | Notes ## DcimRacksList -> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackList DcimRacksList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -28306,6 +29182,8 @@ import ( ) func main() { + airflow := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) + airflowN := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -28319,8 +29197,8 @@ func main() { assetTagNisw := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -28354,6 +29232,8 @@ func main() { facilityIdNie := []string{"Inner_example"} // []string | (optional) facilityIdNiew := []string{"Inner_example"} // []string | (optional) facilityIdNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -28369,10 +29249,14 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28408,8 +29292,8 @@ func main() { outerDepthLt := []int32{int32(123)} // []int32 | (optional) outerDepthLte := []int32{int32(123)} // []int32 | (optional) outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) @@ -28418,10 +29302,14 @@ func main() { outerWidthLte := []int32{int32(123)} // []int32 | (optional) outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + rackType := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeN := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeId := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + rackTypeIdN := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -28439,10 +29327,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) startingUnit := []int32{int32(123)} // []int32 | (optional) @@ -28458,14 +29346,12 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) uHeight := []int32{int32(123)} // []int32 | (optional) uHeightEmpty := true // bool | (optional) uHeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28488,7 +29374,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -28509,6 +29395,8 @@ Other parameters are passed through a pointer to a apiDcimRacksListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | + **airflowN** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -28522,8 +29410,8 @@ Name | Type | Description | Notes **assetTagNisw** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -28557,6 +29445,8 @@ Name | Type | Description | Notes **facilityIdNie** | **[]string** | | **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -28572,10 +29462,14 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **maxWeight** | **[]int32** | | **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | @@ -28611,8 +29505,8 @@ Name | Type | Description | Notes **outerDepthLt** | **[]int32** | | **outerDepthLte** | **[]int32** | | **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | **outerWidth** | **[]int32** | | **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | @@ -28621,10 +29515,14 @@ Name | Type | Description | Notes **outerWidthLte** | **[]int32** | | **outerWidthN** | **[]int32** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **rackType** | **[]string** | Rack type (slug) | + **rackTypeN** | **[]string** | Rack type (slug) | + **rackTypeId** | **[]int32** | Rack type (ID) | + **rackTypeIdN** | **[]int32** | Rack type (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -28642,10 +29540,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **startingUnit** | **[]int32** | | @@ -28661,14 +29559,12 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | - **type_** | **[]string** | | - **typeN** | **[]string** | | **uHeight** | **[]int32** | | **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | @@ -28871,7 +29767,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack. - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28942,7 +29838,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29006,7 +29902,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29072,7 +29968,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29253,7 +30149,7 @@ Name | Type | Description | Notes ## DcimRearPortTemplatesList -> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -29305,8 +30201,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -29336,8 +30230,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -29365,7 +30257,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -29418,8 +30310,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -29449,8 +30339,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -29729,7 +30617,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29793,7 +30681,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29859,7 +30747,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29925,7 +30813,7 @@ import ( ) func main() { - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30040,7 +30928,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -30099,6 +30987,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -30163,20 +31057,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -30191,7 +31081,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -30251,6 +31141,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -30315,20 +31211,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -30593,7 +31485,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rear port. - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30995,14 +31887,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Region (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31096,14 +31988,14 @@ Other parameters are passed through a pointer to a apiDcimRegionsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Region (slug) | - **ancestorN** | **[]int32** | Region (slug) | - **ancestorId** | **[]int32** | Region (ID) | - **ancestorIdN** | **[]int32** | Region (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -31758,14 +32650,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31859,14 +32751,14 @@ Other parameters are passed through a pointer to a apiDcimSiteGroupsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Site group (slug) | - **ancestorN** | **[]int32** | Site group (slug) | - **ancestorId** | **[]int32** | Site group (ID) | - **ancestorIdN** | **[]int32** | Site group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32527,8 +33419,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -32561,10 +33453,10 @@ func main() { facilityNie := []string{"Inner_example"} // []string | (optional) facilityNiew := []string{"Inner_example"} // []string | (optional) facilityNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -32609,10 +33501,10 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -32630,10 +33522,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) timeZone := []string{"Inner_example"} // []string | (optional) @@ -32677,8 +33569,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | AS (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32711,10 +33603,10 @@ Name | Type | Description | Notes **facilityNie** | **[]string** | | **facilityNiew** | **[]string** | | **facilityNisw** | **[]string** | | - **group** | **[]int32** | Group (slug) | - **groupN** | **[]int32** | Group (slug) | - **groupId** | **[]int32** | Group (ID) | - **groupIdN** | **[]int32** | Group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -32759,10 +33651,10 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -32780,10 +33672,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **timeZone** | **[]string** | | @@ -33453,16 +34345,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -33567,16 +34459,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -33840,7 +34732,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33904,7 +34796,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33970,7 +34862,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34036,7 +34928,7 @@ import ( ) func main() { - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34244,10 +35136,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -34348,10 +35240,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -34538,7 +35430,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual device context. - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/DcimModuleTypesListAirflowParameter.md b/docs/DcimModuleTypesListAirflowParameter.md new file mode 100644 index 0000000000..25d66316cb --- /dev/null +++ b/docs/DcimModuleTypesListAirflowParameter.md @@ -0,0 +1,21 @@ +# DcimModuleTypesListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `PASSIVE` (value: `"passive"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DcimRackTypesListOuterUnitParameter.md b/docs/DcimRackTypesListOuterUnitParameter.md new file mode 100644 index 0000000000..3807d0a4c8 --- /dev/null +++ b/docs/DcimRackTypesListOuterUnitParameter.md @@ -0,0 +1,13 @@ +# DcimRackTypesListOuterUnitParameter + +## Enum + + +* `IN` (value: `"in"`) + +* `MM` (value: `"mm"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DcimRacksListAirflowParameter.md b/docs/DcimRacksListAirflowParameter.md new file mode 100644 index 0000000000..f063ab875a --- /dev/null +++ b/docs/DcimRacksListAirflowParameter.md @@ -0,0 +1,13 @@ +# DcimRacksListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Device.md b/docs/Device.md index ee4593df23..7a3e02f3cd 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -55,7 +56,7 @@ Name | Type | Description | Notes ### NewDevice -`func NewDevice(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *Device` +`func NewDevice(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *Device` NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, @@ -110,6 +111,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Device) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Device) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Device) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Device) GetDisplay() string` @@ -167,60 +188,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *Device) GetDeviceType() DeviceType` +`func (o *Device) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *Device) SetDeviceType(v DeviceType)` +`func (o *Device) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *Device) GetRole() DeviceRole` +`func (o *Device) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Device) GetRoleOk() (*DeviceRole, bool)` +`func (o *Device) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Device) SetRole(v DeviceRole)` +`func (o *Device) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *Device) GetTenant() Tenant` +`func (o *Device) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Device) GetTenantOk() (*Tenant, bool)` +`func (o *Device) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Device) SetTenant(v Tenant)` +`func (o *Device) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -242,20 +263,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *Device) GetPlatform() Platform` +`func (o *Device) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *Device) GetPlatformOk() (*Platform, bool)` +`func (o *Device) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *Device) SetPlatform(v Platform)` +`func (o *Device) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -337,40 +358,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *Device) GetSite() Site` +`func (o *Device) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Device) GetSiteOk() (*Site, bool)` +`func (o *Device) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Device) SetSite(v Site)` +`func (o *Device) SetSite(v BriefSite)` SetSite sets Site field to given value. ### GetLocation -`func (o *Device) GetLocation() Location` +`func (o *Device) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *Device) GetLocationOk() (*Location, bool)` +`func (o *Device) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *Device) SetLocation(v Location)` +`func (o *Device) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -392,20 +413,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *Device) GetRack() Rack` +`func (o *Device) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *Device) GetRackOk() (*Rack, bool)` +`func (o *Device) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *Device) SetRack(v Rack)` +`func (o *Device) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -637,20 +658,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *Device) GetPrimaryIp() IPAddress` +`func (o *Device) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *Device) SetPrimaryIp(v IPAddress)` +`func (o *Device) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -667,20 +688,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *Device) GetPrimaryIp4() IPAddress` +`func (o *Device) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *Device) SetPrimaryIp4(v IPAddress)` +`func (o *Device) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -702,20 +723,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *Device) GetPrimaryIp6() IPAddress` +`func (o *Device) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *Device) SetPrimaryIp6(v IPAddress)` +`func (o *Device) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -737,20 +758,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *Device) GetOobIp() IPAddress` +`func (o *Device) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *Device) GetOobIpOk() (*IPAddress, bool)` +`func (o *Device) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *Device) SetOobIp(v IPAddress)` +`func (o *Device) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -772,20 +793,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *Device) GetCluster() Cluster` +`func (o *Device) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *Device) GetClusterOk() (*Cluster, bool)` +`func (o *Device) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *Device) SetCluster(v Cluster)` +`func (o *Device) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -807,20 +828,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *Device) GetVirtualChassis() VirtualChassis` +`func (o *Device) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *Device) SetVirtualChassis(v VirtualChassis)` +`func (o *Device) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -962,20 +983,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *Device) GetConfigTemplate() ConfigTemplate` +`func (o *Device) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *Device) SetConfigTemplate(v ConfigTemplate)` +`func (o *Device) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md index e19772ad5d..f8a9485461 100644 --- a/docs/DeviceBay.md +++ b/docs/DeviceBay.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewDeviceBay -`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` +`func NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` NewDeviceBay instantiates a new DeviceBay object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceBay) GetDisplay() string` @@ -98,20 +119,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *DeviceBay) GetDevice() Device` +`func (o *DeviceBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBay) GetDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBay) SetDevice(v Device)` +`func (o *DeviceBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -188,20 +209,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBay) GetInstalledDevice() Device` +`func (o *DeviceBay) GetInstalledDevice() BriefDevice` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBay) SetInstalledDevice(v Device)` +`func (o *DeviceBay) SetInstalledDevice(v BriefDevice)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md index 9229313f33..78e056c6da 100644 --- a/docs/DeviceBayRequest.md +++ b/docs/DeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewDeviceBayRequest -`func NewDeviceBayRequest(device DeviceRequest, name string, ) *DeviceBayRequest` +`func NewDeviceBayRequest(device BriefDeviceRequest, name string, ) *DeviceBayRequest` NewDeviceBayRequest instantiates a new DeviceBayRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *DeviceBayRequest) GetDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -123,20 +123,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index ffb6fdad4c..a938074cea 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplate -`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` +`func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` NewDeviceBayTemplate instantiates a new DeviceBayTemplate object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *DeviceBayTemplate) GetDeviceType() DeviceType` +`func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)` +`func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 48b82be6aa..3dcbe76461 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplateRequest -`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` +`func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` NewDeviceBayTemplateRequest instantiates a new DeviceBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceRole.md b/docs/DeviceRole.md index 69757a60f2..09c12f0f0b 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -6,10 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | **int64** | | [readonly] **VirtualmachineCount** | **int64** | | [readonly] @@ -17,7 +25,7 @@ Name | Type | Description | Notes ### NewDeviceRole -`func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -72,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceRole) GetDisplay() string` @@ -132,6 +160,91 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetColor + +`func (o *DeviceRole) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *DeviceRole) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *DeviceRole) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *DeviceRole) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetVmRole + +`func (o *DeviceRole) GetVmRole() bool` + +GetVmRole returns the VmRole field if non-nil, zero value otherwise. + +### GetVmRoleOk + +`func (o *DeviceRole) GetVmRoleOk() (*bool, bool)` + +GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmRole + +`func (o *DeviceRole) SetVmRole(v bool)` + +SetVmRole sets VmRole field to given value. + +### HasVmRole + +`func (o *DeviceRole) HasVmRole() bool` + +HasVmRole returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceRole) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceRole) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceRole) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *DeviceRole) GetDescription() string` @@ -157,6 +270,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *DeviceRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceRole) GetDeviceCount() int64` diff --git a/docs/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md index 63022acb94..05cd2213c4 100644 --- a/docs/DeviceRoleRequest.md +++ b/docs/DeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 0fd8ee2280..ed84f56ec9 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -6,18 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeSubdeviceRole**](DeviceTypeSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeAirflow**](DeviceTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**FrontImage** | Pointer to **NullableString** | | [optional] +**RearImage** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | **int64** | | [readonly] +**ConsolePortTemplateCount** | **int32** | | [readonly] +**ConsoleServerPortTemplateCount** | **int32** | | [readonly] +**PowerPortTemplateCount** | **int32** | | [readonly] +**PowerOutletTemplateCount** | **int32** | | [readonly] +**InterfaceTemplateCount** | **int32** | | [readonly] +**FrontPortTemplateCount** | **int32** | | [readonly] +**RearPortTemplateCount** | **int32** | | [readonly] +**DeviceBayTemplateCount** | **int32** | | [readonly] +**ModuleBayTemplateCount** | **int32** | | [readonly] +**InventoryItemTemplateCount** | **int32** | | [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64, ) *DeviceType` +`func NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -72,6 +99,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceType) GetDisplay() string` @@ -94,24 +141,59 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *DeviceType) GetManufacturer() Manufacturer` +`func (o *DeviceType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceType) SetManufacturer(v Manufacturer)` +`func (o *DeviceType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceType) GetDefaultPlatform() BriefPlatform` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceType) SetDefaultPlatform(v BriefPlatform)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceType) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceType) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceType) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceType) GetModel() string` @@ -152,6 +234,316 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceType) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceType) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceType) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceType) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceType) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceType) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceType) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceType) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceType) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceType) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceType) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceType) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceType) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceType) GetAirflow() DeviceTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceType) SetAirflow(v DeviceTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceType) GetFrontImage() string` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceType) GetFrontImageOk() (*string, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceType) SetFrontImage(v string)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceType) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### SetFrontImageNil + +`func (o *DeviceType) SetFrontImageNil(b bool)` + + SetFrontImageNil sets the value for FrontImage to be an explicit nil + +### UnsetFrontImage +`func (o *DeviceType) UnsetFrontImage()` + +UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +### GetRearImage + +`func (o *DeviceType) GetRearImage() string` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceType) GetRearImageOk() (*string, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceType) SetRearImage(v string)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceType) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + +### SetRearImageNil + +`func (o *DeviceType) SetRearImageNil(b bool)` + + SetRearImageNil sets the value for RearImage to be an explicit nil + +### UnsetRearImage +`func (o *DeviceType) UnsetRearImage()` + +UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil ### GetDescription `func (o *DeviceType) GetDescription() string` @@ -177,6 +569,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceType) GetDeviceCount() int64` @@ -197,6 +724,206 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### GetConsolePortTemplateCount + +`func (o *DeviceType) GetConsolePortTemplateCount() int32` + +GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise. + +### GetConsolePortTemplateCountOk + +`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)` + +GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolePortTemplateCount + +`func (o *DeviceType) SetConsolePortTemplateCount(v int32)` + +SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value. + + +### GetConsoleServerPortTemplateCount + +`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32` + +GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortTemplateCountOk + +`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)` + +GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleServerPortTemplateCount + +`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)` + +SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value. + + +### GetPowerPortTemplateCount + +`func (o *DeviceType) GetPowerPortTemplateCount() int32` + +GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise. + +### GetPowerPortTemplateCountOk + +`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)` + +GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPortTemplateCount + +`func (o *DeviceType) SetPowerPortTemplateCount(v int32)` + +SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value. + + +### GetPowerOutletTemplateCount + +`func (o *DeviceType) GetPowerOutletTemplateCount() int32` + +GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise. + +### GetPowerOutletTemplateCountOk + +`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)` + +GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerOutletTemplateCount + +`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)` + +SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value. + + +### GetInterfaceTemplateCount + +`func (o *DeviceType) GetInterfaceTemplateCount() int32` + +GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise. + +### GetInterfaceTemplateCountOk + +`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)` + +GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceTemplateCount + +`func (o *DeviceType) SetInterfaceTemplateCount(v int32)` + +SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value. + + +### GetFrontPortTemplateCount + +`func (o *DeviceType) GetFrontPortTemplateCount() int32` + +GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise. + +### GetFrontPortTemplateCountOk + +`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)` + +GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortTemplateCount + +`func (o *DeviceType) SetFrontPortTemplateCount(v int32)` + +SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value. + + +### GetRearPortTemplateCount + +`func (o *DeviceType) GetRearPortTemplateCount() int32` + +GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise. + +### GetRearPortTemplateCountOk + +`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)` + +GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortTemplateCount + +`func (o *DeviceType) SetRearPortTemplateCount(v int32)` + +SetRearPortTemplateCount sets RearPortTemplateCount field to given value. + + +### GetDeviceBayTemplateCount + +`func (o *DeviceType) GetDeviceBayTemplateCount() int32` + +GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise. + +### GetDeviceBayTemplateCountOk + +`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)` + +GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayTemplateCount + +`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)` + +SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value. + + +### GetModuleBayTemplateCount + +`func (o *DeviceType) GetModuleBayTemplateCount() int32` + +GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise. + +### GetModuleBayTemplateCountOk + +`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)` + +GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayTemplateCount + +`func (o *DeviceType) SetModuleBayTemplateCount(v int32)` + +SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value. + + +### GetInventoryItemTemplateCount + +`func (o *DeviceType) GetInventoryItemTemplateCount() int32` + +GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise. + +### GetInventoryItemTemplateCountOk + +`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)` + +GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemTemplateCount + +`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)` + +SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceTypeAirflow.md b/docs/DeviceTypeAirflow.md new file mode 100644 index 0000000000..fab620ce56 --- /dev/null +++ b/docs/DeviceTypeAirflow.md @@ -0,0 +1,82 @@ +# DeviceTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**Label** | Pointer to [**DeviceAirflowLabel**](DeviceAirflowLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeAirflow + +`func NewDeviceTypeAirflow() *DeviceTypeAirflow` + +NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeAirflowWithDefaults + +`func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow` + +NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeAirflow) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md index a5e6c3addc..8f7d9822f4 100644 --- a/docs/DeviceTypeRequest.md +++ b/docs/DeviceTypeRequest.md @@ -4,16 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeRequestSubdeviceRole**](DeviceTypeRequestSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**FrontImage** | Pointer to ***os.File** | | [optional] +**RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDeviceTypeRequest -`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` +`func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` NewDeviceTypeRequest instantiates a new DeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -30,24 +44,59 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceTypeRequest) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceTypeRequest) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceTypeRequest) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceTypeRequest) GetModel() string` @@ -88,6 +137,296 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceTypeRequest) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceTypeRequest) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceTypeRequest) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceTypeRequest) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceTypeRequest) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceTypeRequest) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceTypeRequest) GetFrontImage() *os.File` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceTypeRequest) SetFrontImage(v *os.File)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceTypeRequest) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### GetRearImage + +`func (o *DeviceTypeRequest) GetRearImage() *os.File` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceTypeRequest) SetRearImage(v *os.File)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceTypeRequest) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + ### GetDescription `func (o *DeviceTypeRequest) GetDescription() string` @@ -113,6 +452,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceTypeRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceTypeRequestAirflow.md b/docs/DeviceTypeRequestAirflow.md new file mode 100644 index 0000000000..db29e38f3f --- /dev/null +++ b/docs/DeviceTypeRequestAirflow.md @@ -0,0 +1,25 @@ +# DeviceTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `MIXED` (value: `"mixed"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeRequestSubdeviceRole.md b/docs/DeviceTypeRequestSubdeviceRole.md new file mode 100644 index 0000000000..b25ddf7650 --- /dev/null +++ b/docs/DeviceTypeRequestSubdeviceRole.md @@ -0,0 +1,15 @@ +# DeviceTypeRequestSubdeviceRole + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeRequestWeightUnit.md b/docs/DeviceTypeRequestWeightUnit.md new file mode 100644 index 0000000000..ea9ac170d3 --- /dev/null +++ b/docs/DeviceTypeRequestWeightUnit.md @@ -0,0 +1,19 @@ +# DeviceTypeRequestWeightUnit + +## Enum + + +* `KG` (value: `"kg"`) + +* `G` (value: `"g"`) + +* `LB` (value: `"lb"`) + +* `OZ` (value: `"oz"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeSubdeviceRole.md b/docs/DeviceTypeSubdeviceRole.md new file mode 100644 index 0000000000..f1209e70ac --- /dev/null +++ b/docs/DeviceTypeSubdeviceRole.md @@ -0,0 +1,82 @@ +# DeviceTypeSubdeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeSubdeviceRoleValue**](DeviceTypeSubdeviceRoleValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeSubdeviceRoleLabel**](DeviceTypeSubdeviceRoleLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeSubdeviceRole + +`func NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeSubdeviceRoleWithDefaults + +`func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeSubdeviceRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeSubdeviceRole) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeSubdeviceRoleLabel.md b/docs/DeviceTypeSubdeviceRoleLabel.md new file mode 100644 index 0000000000..0df3e3f7ff --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleLabel.md @@ -0,0 +1,13 @@ +# DeviceTypeSubdeviceRoleLabel + +## Enum + + +* `PARENT` (value: `"Parent"`) + +* `CHILD` (value: `"Child"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeSubdeviceRoleValue.md b/docs/DeviceTypeSubdeviceRoleValue.md new file mode 100644 index 0000000000..21912d5303 --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleValue.md @@ -0,0 +1,15 @@ +# DeviceTypeSubdeviceRoleValue + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeWeightUnit.md b/docs/DeviceTypeWeightUnit.md new file mode 100644 index 0000000000..a4ff2942b8 --- /dev/null +++ b/docs/DeviceTypeWeightUnit.md @@ -0,0 +1,82 @@ +# DeviceTypeWeightUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeWeightUnitLabel**](DeviceTypeWeightUnitLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeWeightUnit + +`func NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeWeightUnitWithDefaults + +`func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeWeightUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeWeightUnit) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeWeightUnitLabel.md b/docs/DeviceTypeWeightUnitLabel.md new file mode 100644 index 0000000000..ccc9d2c7ab --- /dev/null +++ b/docs/DeviceTypeWeightUnitLabel.md @@ -0,0 +1,17 @@ +# DeviceTypeWeightUnitLabel + +## Enum + + +* `KILOGRAMS` (value: `"Kilograms"`) + +* `GRAMS` (value: `"Grams"`) + +* `POUNDS` (value: `"Pounds"`) + +* `OUNCES` (value: `"Ounces"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeWeightUnitValue.md b/docs/DeviceTypeWeightUnitValue.md new file mode 100644 index 0000000000..4d8026e601 --- /dev/null +++ b/docs/DeviceTypeWeightUnitValue.md @@ -0,0 +1,19 @@ +# DeviceTypeWeightUnitValue + +## Enum + + +* `KG` (value: `"kg"`) + +* `G` (value: `"g"`) + +* `LB` (value: `"lb"`) + +* `OZ` (value: `"oz"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index 570136c0db..f931fd5e59 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **ConfigContext** | **interface{}** | | [readonly] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -56,7 +57,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -111,6 +112,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceWithConfigContext) GetDisplay() string` @@ -168,60 +189,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType` +`func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)` +`func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContext) GetRole() DeviceRole` +`func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContext) SetRole(v DeviceRole)` +`func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContext) GetTenant() Tenant` +`func (o *DeviceWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContext) SetTenant(v Tenant)` +`func (o *DeviceWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -243,20 +264,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContext) GetPlatform() Platform` +`func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContext) SetPlatform(v Platform)` +`func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -338,40 +359,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContext) GetSite() Site` +`func (o *DeviceWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContext) SetSite(v Site)` +`func (o *DeviceWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContext) GetLocation() Location` +`func (o *DeviceWithConfigContext) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool)` +`func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContext) SetLocation(v Location)` +`func (o *DeviceWithConfigContext) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -393,20 +414,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContext) GetRack() Rack` +`func (o *DeviceWithConfigContext) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool)` +`func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContext) SetRack(v Rack)` +`func (o *DeviceWithConfigContext) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -638,20 +659,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -668,20 +689,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -703,20 +724,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -738,20 +759,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContext) GetOobIp() IPAddress` +`func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContext) SetOobIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -773,20 +794,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContext) GetCluster() Cluster` +`func (o *DeviceWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContext) SetCluster(v Cluster)` +`func (o *DeviceWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -808,20 +829,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis` +`func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)` +`func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -963,20 +984,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index 6d521edef4..d32891dde9 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -530,20 +530,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -565,20 +565,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -600,20 +600,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -635,20 +635,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -670,20 +670,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -825,20 +825,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/Event.md b/docs/Event.md new file mode 100644 index 0000000000..7a5163f0b5 --- /dev/null +++ b/docs/Event.md @@ -0,0 +1,23 @@ +# Event + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventRule.md b/docs/EventRule.md index fa879bc560..dc71d933d4 100644 --- a/docs/EventRule.md +++ b/docs/EventRule.md @@ -6,15 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | **ActionObjectType** | **string** | | @@ -30,7 +27,7 @@ Name | Type | Description | Notes ### NewEventRule -`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` +`func NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` NewEventRule instantiates a new EventRule object This constructor will assign default values to properties that have it defined, @@ -85,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *EventRule) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *EventRule) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *EventRule) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *EventRule) GetDisplay() string` @@ -145,131 +162,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRule) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRule) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRule) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRule) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRule) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRule) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRule) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRule) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRule) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRule) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRule) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRule) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRule) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRule) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRule) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRule) GetEnabled() bool` @@ -295,6 +187,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRule) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRule) GetConditions() interface{}` diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md index 7c1a6f4597..5c6ede1748 100644 --- a/docs/EventRuleActionTypeLabel.md +++ b/docs/EventRuleActionTypeLabel.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"Script"`) +* `NOTIFICATION` (value: `"Notification"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md index 73ad2faee3..95b9781eb8 100644 --- a/docs/EventRuleActionTypeValue.md +++ b/docs/EventRuleActionTypeValue.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"script"`) +* `NOTIFICATION` (value: `"notification"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EventRuleEventTypesInner.md b/docs/EventRuleEventTypesInner.md new file mode 100644 index 0000000000..88b16acda8 --- /dev/null +++ b/docs/EventRuleEventTypesInner.md @@ -0,0 +1,23 @@ +# EventRuleEventTypesInner + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventRuleRequest.md b/docs/EventRuleRequest.md index 68df12155d..1d3cd30448 100644 --- a/docs/EventRuleRequest.md +++ b/docs/EventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewEventRuleRequest -`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` +`func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` NewEventRuleRequest instantiates a new EventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRuleRequest) GetConditions() interface{}` diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md index 0371ebe2e9..27a90747aa 100644 --- a/docs/ExportTemplate.md +++ b/docs/ExportTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -14,9 +15,9 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewExportTemplate -`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` +`func NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` NewExportTemplate instantiates a new ExportTemplate object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ExportTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ExportTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ExportTemplate) GetDisplay() string` @@ -262,20 +283,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplate) GetDataSource() DataSource` +`func (o *ExportTemplate) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool)` +`func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplate) SetDataSource(v DataSource)` +`func (o *ExportTemplate) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -307,20 +328,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ExportTemplate) GetDataFile() DataFile` +`func (o *ExportTemplate) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool)` +`func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ExportTemplate) SetDataFile(v DataFile)` +`func (o *ExportTemplate) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md index 1a7beb1a24..392c93a2c9 100644 --- a/docs/ExportTemplateRequest.md +++ b/docs/ExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md index ed3040e29b..e6b5d1af2d 100644 --- a/docs/ExtrasAPI.md +++ b/docs/ExtrasAPI.md @@ -103,8 +103,24 @@ Method | HTTP request | Description [**ExtrasJournalEntriesPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesRetrieve**](ExtrasAPI.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesUpdate**](ExtrasAPI.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | -[**ExtrasObjectChangesList**](ExtrasAPI.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | -[**ExtrasObjectChangesRetrieve**](ExtrasAPI.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | +[**ExtrasNotificationGroupsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsBulkDestroy) | **Delete** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkPartialUpdate) | **Patch** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkUpdate) | **Put** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsCreate**](ExtrasAPI.md#ExtrasNotificationGroupsCreate) | **Post** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsDestroy) | **Delete** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsList**](ExtrasAPI.md#ExtrasNotificationGroupsList) | **Get** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsPartialUpdate) | **Patch** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsRetrieve**](ExtrasAPI.md#ExtrasNotificationGroupsRetrieve) | **Get** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsUpdate) | **Put** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationsBulkDestroy) | **Delete** /api/extras/notifications/ | +[**ExtrasNotificationsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkPartialUpdate) | **Patch** /api/extras/notifications/ | +[**ExtrasNotificationsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkUpdate) | **Put** /api/extras/notifications/ | +[**ExtrasNotificationsCreate**](ExtrasAPI.md#ExtrasNotificationsCreate) | **Post** /api/extras/notifications/ | +[**ExtrasNotificationsDestroy**](ExtrasAPI.md#ExtrasNotificationsDestroy) | **Delete** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsList**](ExtrasAPI.md#ExtrasNotificationsList) | **Get** /api/extras/notifications/ | +[**ExtrasNotificationsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsPartialUpdate) | **Patch** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsRetrieve**](ExtrasAPI.md#ExtrasNotificationsRetrieve) | **Get** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsUpdate**](ExtrasAPI.md#ExtrasNotificationsUpdate) | **Put** /api/extras/notifications/{id}/ | [**ExtrasObjectTypesList**](ExtrasAPI.md#ExtrasObjectTypesList) | **Get** /api/extras/object-types/ | [**ExtrasObjectTypesRetrieve**](ExtrasAPI.md#ExtrasObjectTypesRetrieve) | **Get** /api/extras/object-types/{id}/ | [**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | @@ -122,6 +138,15 @@ Method | HTTP request | Description [**ExtrasScriptsPartialUpdate**](ExtrasAPI.md#ExtrasScriptsPartialUpdate) | **Patch** /api/extras/scripts/{id}/ | [**ExtrasScriptsRetrieve**](ExtrasAPI.md#ExtrasScriptsRetrieve) | **Get** /api/extras/scripts/{id}/ | [**ExtrasScriptsUpdate**](ExtrasAPI.md#ExtrasScriptsUpdate) | **Put** /api/extras/scripts/{id}/ | +[**ExtrasSubscriptionsBulkDestroy**](ExtrasAPI.md#ExtrasSubscriptionsBulkDestroy) | **Delete** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkPartialUpdate) | **Patch** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkUpdate) | **Put** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsCreate**](ExtrasAPI.md#ExtrasSubscriptionsCreate) | **Post** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsDestroy**](ExtrasAPI.md#ExtrasSubscriptionsDestroy) | **Delete** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsList**](ExtrasAPI.md#ExtrasSubscriptionsList) | **Get** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsPartialUpdate) | **Patch** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsRetrieve**](ExtrasAPI.md#ExtrasSubscriptionsRetrieve) | **Get** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsUpdate**](ExtrasAPI.md#ExtrasSubscriptionsUpdate) | **Put** /api/extras/subscriptions/{id}/ | [**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | [**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | [**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | @@ -164,7 +189,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -228,7 +253,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -294,7 +319,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -360,7 +385,7 @@ import ( ) func main() { - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -764,7 +789,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this bookmark. - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1146,7 +1171,7 @@ Name | Type | Description | Notes ## ExtrasConfigContextsList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -1256,10 +1281,6 @@ func main() { regionN := []string{"Inner_example"} // []string | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (optional) regionIdN := []int32{int32(123)} // []int32 | Region (optional) - role := []string{"Inner_example"} // []string | Role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Role (optional) - roleIdN := []int32{int32(123)} // []int32 | Role (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) @@ -1291,7 +1312,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1402,10 +1423,6 @@ Name | Type | Description | Notes **regionN** | **[]string** | Region (slug) | **regionId** | **[]int32** | Region | **regionIdN** | **[]int32** | Region | - **role** | **[]string** | Role (slug) | - **roleN** | **[]string** | Role (slug) | - **roleId** | **[]int32** | Role | - **roleIdN** | **[]int32** | Role | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | **siteGroup** | **[]string** | Site group (slug) | @@ -1760,7 +1777,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1824,7 +1841,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1890,7 +1907,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1956,7 +1973,7 @@ import ( ) func main() { - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2356,7 +2373,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -2500,7 +2517,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2572,7 +2589,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3741,7 +3758,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3869,6 +3886,7 @@ func main() { uiEditableN := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) uiVisible := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) uiVisibleN := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) + unique := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) validationMaximum := []int32{int32(123)} // []int32 | (optional) validationMaximumEmpty := true // bool | (optional) @@ -3905,7 +3923,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4034,6 +4052,7 @@ Name | Type | Description | Notes **uiEditableN** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | **uiVisible** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | **uiVisibleN** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | + **unique** | **bool** | | **updatedByRequest** | **string** | | **validationMaximum** | **[]int32** | | **validationMaximumEmpty** | **bool** | | @@ -4652,8 +4671,8 @@ import ( ) func main() { - buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) - buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4769,8 +4788,8 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | - **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5368,7 +5387,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5432,7 +5451,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5498,7 +5517,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5564,7 +5583,7 @@ import ( ) func main() { - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5679,7 +5698,7 @@ Name | Type | Description | Notes ## ExtrasEventRulesList -> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -5730,6 +5749,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) + eventType := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5774,16 +5794,11 @@ func main() { q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - typeCreate := true // bool | (optional) - typeDelete := true // bool | (optional) - typeJobEnd := true // bool | (optional) - typeJobStart := true // bool | (optional) - typeUpdate := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5835,6 +5850,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **enabled** | **bool** | | + **eventType** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5879,11 +5895,6 @@ Name | Type | Description | Notes **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | - **typeCreate** | **bool** | | - **typeDelete** | **bool** | | - **typeJobEnd** | **bool** | | - **typeJobStart** | **bool** | | - **typeUpdate** | **bool** | | **updatedByRequest** | **string** | | ### Return type @@ -6068,7 +6079,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this event rule. - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7014,7 +7025,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7078,7 +7089,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7144,7 +7155,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7210,7 +7221,7 @@ import ( ) func main() { - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7680,7 +7691,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this image attachment. - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8423,9 +8434,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectChangesList +## ExtrasNotificationGroupsBulkDestroy -> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() +> ExtrasNotificationGroupsBulkDestroy(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8440,83 +8451,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - action := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - actionN := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - changedObjectId := []int32{int32(123)} // []int32 | (optional) - changedObjectIdEmpty := true // bool | (optional) - changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdN := []int32{int32(123)} // []int32 | (optional) - changedObjectType := "changedObjectType_example" // string | (optional) - changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) - changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) - changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - objectRepr := []string{"Inner_example"} // []string | (optional) - objectReprEmpty := true // bool | (optional) - objectReprIc := []string{"Inner_example"} // []string | (optional) - objectReprIe := []string{"Inner_example"} // []string | (optional) - objectReprIew := []string{"Inner_example"} // []string | (optional) - objectReprIsw := []string{"Inner_example"} // []string | (optional) - objectReprN := []string{"Inner_example"} // []string | (optional) - objectReprNic := []string{"Inner_example"} // []string | (optional) - objectReprNie := []string{"Inner_example"} // []string | (optional) - objectReprNiew := []string{"Inner_example"} // []string | (optional) - objectReprNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - relatedObjectId := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdEmpty := true // bool | (optional) - relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) - relatedObjectType := int32(56) // int32 | (optional) - relatedObjectTypeN := int32(56) // int32 | (optional) - requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - timeAfter := time.Now() // time.Time | (optional) - timeBefore := time.Now() // time.Time | (optional) - user := []string{"Inner_example"} // []string | User name (optional) - userN := []string{"Inner_example"} // []string | User name (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userName := []string{"Inner_example"} // []string | (optional) - userNameEmpty := true // bool | (optional) - userNameIc := []string{"Inner_example"} // []string | (optional) - userNameIe := []string{"Inner_example"} // []string | (optional) - userNameIew := []string{"Inner_example"} // []string | (optional) - userNameIsw := []string{"Inner_example"} // []string | (optional) - userNameN := []string{"Inner_example"} // []string | (optional) - userNameNic := []string{"Inner_example"} // []string | (optional) - userNameNie := []string{"Inner_example"} // []string | (optional) - userNameNiew := []string{"Inner_example"} // []string | (optional) - userNameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp) } ``` @@ -8526,77 +8473,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **action** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **actionN** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **changedObjectId** | **[]int32** | | - **changedObjectIdEmpty** | **bool** | | - **changedObjectIdGt** | **[]int32** | | - **changedObjectIdGte** | **[]int32** | | - **changedObjectIdLt** | **[]int32** | | - **changedObjectIdLte** | **[]int32** | | - **changedObjectIdN** | **[]int32** | | - **changedObjectType** | **string** | | - **changedObjectTypeN** | **string** | | - **changedObjectTypeId** | **[]int32** | | - **changedObjectTypeIdN** | **[]int32** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **objectRepr** | **[]string** | | - **objectReprEmpty** | **bool** | | - **objectReprIc** | **[]string** | | - **objectReprIe** | **[]string** | | - **objectReprIew** | **[]string** | | - **objectReprIsw** | **[]string** | | - **objectReprN** | **[]string** | | - **objectReprNic** | **[]string** | | - **objectReprNie** | **[]string** | | - **objectReprNiew** | **[]string** | | - **objectReprNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **relatedObjectId** | **[]int32** | | - **relatedObjectIdEmpty** | **bool** | | - **relatedObjectIdGt** | **[]int32** | | - **relatedObjectIdGte** | **[]int32** | | - **relatedObjectIdLt** | **[]int32** | | - **relatedObjectIdLte** | **[]int32** | | - **relatedObjectIdN** | **[]int32** | | - **relatedObjectType** | **int32** | | - **relatedObjectTypeN** | **int32** | | - **requestId** | **string** | | - **timeAfter** | **time.Time** | | - **timeBefore** | **time.Time** | | - **user** | **[]string** | User name | - **userN** | **[]string** | User name | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **userName** | **[]string** | | - **userNameEmpty** | **bool** | | - **userNameIc** | **[]string** | | - **userNameIe** | **[]string** | | - **userNameIew** | **[]string** | | - **userNameIsw** | **[]string** | | - **userNameN** | **[]string** | | - **userNameNic** | **[]string** | | - **userNameNie** | **[]string** | | - **userNameNiew** | **[]string** | | - **userNameNisw** | **[]string** | | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + (empty response body) ### Authorization @@ -8604,17 +8490,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasObjectChangesRetrieve +## ExtrasNotificationGroupsBulkPartialUpdate -> ObjectChange ExtrasObjectChangesRetrieve(ctx, id).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkPartialUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8633,40 +8519,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object change. + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesRetrieve`: ObjectChange - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkPartialUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object change. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectChange**](ObjectChange.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8674,7 +8556,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8682,9 +8564,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesList +## ExtrasNotificationGroupsBulkUpdate -> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8703,23 +8585,17 @@ import ( ) func main() { - appLabel := "appLabel_example" // string | (optional) - id := int32(56) // int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - model := "model_example" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate`: %v\n", resp) } ``` @@ -8729,22 +8605,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appLabel** | **string** | | - **id** | **int32** | | - **limit** | **int32** | Number of results to return per page. | - **model** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8752,7 +8622,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8760,9 +8630,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesRetrieve +## ExtrasNotificationGroupsCreate -> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsCreate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8781,40 +8651,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object type. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesRetrieve`: ObjectType - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsCreate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsCreate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectType**](ObjectType.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8822,7 +8688,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8830,9 +8696,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkDestroy +## ExtrasNotificationGroupsDestroy -> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> ExtrasNotificationGroupsDestroy(ctx, id).Execute() @@ -8851,13 +8717,13 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8866,15 +8732,19 @@ func main() { ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type @@ -8886,7 +8756,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8894,9 +8764,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkPartialUpdate +## ExtrasNotificationGroupsList -> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> PaginatedNotificationGroupList ExtrasNotificationGroupsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -8915,17 +8785,19 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsList`: PaginatedNotificationGroupList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsList`: %v\n", resp) } ``` @@ -8935,16 +8807,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**PaginatedNotificationGroupList**](PaginatedNotificationGroupList.md) ### Authorization @@ -8952,7 +8826,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8960,9 +8834,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkUpdate +## ExtrasNotificationGroupsPartialUpdate -> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsPartialUpdate(ctx, id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() @@ -8981,36 +8855,42 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. + patchedNotificationGroupRequest := *openapiclient.NewPatchedNotificationGroupRequest() // PatchedNotificationGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsPartialUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + + **patchedNotificationGroupRequest** | [**PatchedNotificationGroupRequest**](PatchedNotificationGroupRequest.md) | | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9026,9 +8906,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersCreate +## ExtrasNotificationGroupsRetrieve -> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsRetrieve(ctx, id).Execute() @@ -9047,36 +8927,40 @@ import ( ) func main() { - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersCreate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) + // response from `ExtrasNotificationGroupsRetrieve`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type -[**SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9084,7 +8968,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9092,9 +8976,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersDestroy +## ExtrasNotificationGroupsUpdate -> ExtrasSavedFiltersDestroy(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsUpdate(ctx, id).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -9113,15 +8997,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + id := int32(56) // int32 | A unique integer value identifying this notification group. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasNotificationGroupsUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsUpdate`: %v\n", resp) } ``` @@ -9131,20 +9018,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type - (empty response body) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9152,17 +9040,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersList +## ExtrasNotificationsBulkDestroy -> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> ExtrasNotificationsBulkDestroy(ctx).NotificationRequest(notificationRequest).Execute() @@ -9177,108 +9065,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - enabled := true // bool | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - objectType := "objectType_example" // string | (optional) - objectTypeIc := "objectTypeIc_example" // string | (optional) - objectTypeIe := "objectTypeIe_example" // string | (optional) - objectTypeIew := "objectTypeIew_example" // string | (optional) - objectTypeIsw := "objectTypeIsw_example" // string | (optional) - objectTypeN := "objectTypeN_example" // string | (optional) - objectTypeNic := "objectTypeNic_example" // string | (optional) - objectTypeNie := "objectTypeNie_example" // string | (optional) - objectTypeNiew := "objectTypeNiew_example" // string | (optional) - objectTypeNisw := "objectTypeNisw_example" // string | (optional) - objectTypeId := []int32{int32(123)} // []int32 | (optional) - objectTypeIdN := []int32{int32(123)} // []int32 | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - shared := true // bool | (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - usable := true // bool | (optional) - user := []string{"Inner_example"} // []string | User (name) (optional) - userN := []string{"Inner_example"} // []string | User (name) (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - weight := []int32{int32(123)} // []int32 | (optional) - weightEmpty := true // bool | (optional) - weightGt := []int32{int32(123)} // []int32 | (optional) - weightGte := []int32{int32(123)} // []int32 | (optional) - weightLt := []int32{int32(123)} // []int32 | (optional) - weightLte := []int32{int32(123)} // []int32 | (optional) - weightN := []int32{int32(123)} // []int32 | (optional) + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).NotificationRequest(notificationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) } ``` @@ -9288,102 +9087,1954 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkPartialUpdate + +> []Notification ExtrasNotificationsBulkPartialUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkPartialUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkUpdate + +> []Notification ExtrasNotificationsBulkUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsCreate + +> Notification ExtrasNotificationsCreate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsCreate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsDestroy + +> ExtrasNotificationsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsList + +> PaginatedNotificationList ExtrasNotificationsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsList`: PaginatedNotificationList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + +### Return type + +[**PaginatedNotificationList**](PaginatedNotificationList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsPartialUpdate + +> Notification ExtrasNotificationsPartialUpdate(ctx, id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + patchedNotificationRequest := *openapiclient.NewPatchedNotificationRequest() // PatchedNotificationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsPartialUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedNotificationRequest** | [**PatchedNotificationRequest**](PatchedNotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsRetrieve + +> Notification ExtrasNotificationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsRetrieve`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsUpdate + +> Notification ExtrasNotificationsUpdate(ctx, id).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesList + +> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + appLabel := "appLabel_example" // string | (optional) + id := int32(56) // int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + model := "model_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appLabel** | **string** | | + **id** | **int32** | | + **limit** | **int32** | Number of results to return per page. | + **model** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesRetrieve + +> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesRetrieve`: ObjectType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectType**](ObjectType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkDestroy + +> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkPartialUpdate + +> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkUpdate + +> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersCreate + +> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersCreate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersDestroy + +> ExtrasSavedFiltersDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersList + +> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + enabled := true // bool | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + objectType := "objectType_example" // string | (optional) + objectTypeIc := "objectTypeIc_example" // string | (optional) + objectTypeIe := "objectTypeIe_example" // string | (optional) + objectTypeIew := "objectTypeIew_example" // string | (optional) + objectTypeIsw := "objectTypeIsw_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeNic := "objectTypeNic_example" // string | (optional) + objectTypeNie := "objectTypeNie_example" // string | (optional) + objectTypeNiew := "objectTypeNiew_example" // string | (optional) + objectTypeNisw := "objectTypeNisw_example" // string | (optional) + objectTypeId := []int32{int32(123)} // []int32 | (optional) + objectTypeIdN := []int32{int32(123)} // []int32 | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + shared := true // bool | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + usable := true // bool | (optional) + user := []string{"Inner_example"} // []string | User (name) (optional) + userN := []string{"Inner_example"} // []string | User (name) (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []int32{int32(123)} // []int32 | (optional) + weightGte := []int32{int32(123)} // []int32 | (optional) + weightLt := []int32{int32(123)} // []int32 | (optional) + weightLte := []int32{int32(123)} // []int32 | (optional) + weightN := []int32{int32(123)} // []int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **enabled** | **bool** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **objectType** | **string** | | + **objectTypeIc** | **string** | | + **objectTypeIe** | **string** | | + **objectTypeIew** | **string** | | + **objectTypeIsw** | **string** | | + **objectTypeN** | **string** | | + **objectTypeNic** | **string** | | + **objectTypeNie** | **string** | | + **objectTypeNiew** | **string** | | + **objectTypeNisw** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdN** | **[]int32** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **shared** | **bool** | | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **updatedByRequest** | **string** | | + **usable** | **bool** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **weight** | **[]int32** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]int32** | | + **weightGte** | **[]int32** | | + **weightLt** | **[]int32** | | + **weightLte** | **[]int32** | | + **weightN** | **[]int32** | | + +### Return type + +[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersPartialUpdate + +> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersRetrieve + +> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersRetrieve`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersUpdate + +> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsCreate + +> Script ExtrasScriptsCreate(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsCreate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsDestroy + +> ExtrasScriptsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsList + +> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isExecutable := true // bool | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) + moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsList`: PaginatedScriptList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isExecutable** | **bool** | | + **limit** | **int32** | Number of results to return per page. | + **moduleId** | **[]int32** | Script module (ID) | + **moduleIdN** | **[]int32** | Script module (ID) | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedScriptList**](PaginatedScriptList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsPartialUpdate + +> Script ExtrasScriptsPartialUpdate(ctx, id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + patchedScriptInputRequest := *openapiclient.NewPatchedScriptInputRequest() // PatchedScriptInputRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsPartialUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedScriptInputRequest** | [**PatchedScriptInputRequest**](PatchedScriptInputRequest.md) | | + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsRetrieve + +> Script ExtrasScriptsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsRetrieve`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsUpdate + +> Script ExtrasScriptsUpdate(ctx, id).ScriptInputRequest(scriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + scriptInputRequest := *openapiclient.NewScriptInputRequest(interface{}(123), false) // ScriptInputRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).ScriptInputRequest(scriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **enabled** | **bool** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **objectType** | **string** | | - **objectTypeIc** | **string** | | - **objectTypeIe** | **string** | | - **objectTypeIew** | **string** | | - **objectTypeIsw** | **string** | | - **objectTypeN** | **string** | | - **objectTypeNic** | **string** | | - **objectTypeNie** | **string** | | - **objectTypeNiew** | **string** | | - **objectTypeNisw** | **string** | | - **objectTypeId** | **[]int32** | | - **objectTypeIdN** | **[]int32** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **shared** | **bool** | | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **updatedByRequest** | **string** | | - **usable** | **bool** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **weight** | **[]int32** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]int32** | | - **weightGte** | **[]int32** | | - **weightLt** | **[]int32** | | - **weightLte** | **[]int32** | | - **weightN** | **[]int32** | | + + **scriptInputRequest** | [**ScriptInputRequest**](ScriptInputRequest.md) | | ### Return type -[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) +[**Script**](Script.md) ### Authorization @@ -9391,7 +11042,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9399,9 +11050,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersPartialUpdate +## ExtrasSubscriptionsBulkDestroy -> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() +> ExtrasSubscriptionsBulkDestroy(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9420,42 +11071,34 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) + (empty response body) ### Authorization @@ -9464,16 +11107,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersRetrieve +## ExtrasSubscriptionsBulkPartialUpdate -> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() +> []Subscription ExtrasSubscriptionsBulkPartialUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9492,40 +11135,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersRetrieve`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkPartialUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9533,7 +11172,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9541,9 +11180,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersUpdate +## ExtrasSubscriptionsBulkUpdate -> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() +> []Subscription ExtrasSubscriptionsBulkUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9562,42 +11201,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9613,9 +11246,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsCreate +## ExtrasSubscriptionsCreate -> Script ExtrasScriptsCreate(ctx).Execute() +> Subscription ExtrasSubscriptionsCreate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9634,31 +11267,36 @@ import ( ) func main() { + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsCreate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) + // response from `ExtrasSubscriptionsCreate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsCreate`: %v\n", resp) } ``` ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsCreateRequest struct via the builder pattern + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9666,7 +11304,7 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9674,9 +11312,9 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest [[Back to README]](../README.md) -## ExtrasScriptsDestroy +## ExtrasSubscriptionsDestroy -> ExtrasScriptsDestroy(ctx, id).Execute() +> ExtrasSubscriptionsDestroy(ctx, id).Execute() @@ -9695,13 +11333,13 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9713,11 +11351,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -9742,9 +11380,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsList +## ExtrasSubscriptionsList -> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedSubscriptionList ExtrasSubscriptionsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -9763,41 +11401,19 @@ import ( ) func main() { - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - isExecutable := true // bool | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) - moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsList`: PaginatedScriptList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) + // response from `ExtrasSubscriptionsList`: PaginatedSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsList`: %v\n", resp) } ``` @@ -9807,40 +11423,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **isExecutable** | **bool** | | **limit** | **int32** | Number of results to return per page. | - **moduleId** | **[]int32** | Script module (ID) | - **moduleIdN** | **[]int32** | Script module (ID) | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | ### Return type -[**PaginatedScriptList**](PaginatedScriptList.md) +[**PaginatedSubscriptionList**](PaginatedSubscriptionList.md) ### Authorization @@ -9856,9 +11450,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsPartialUpdate +## ExtrasSubscriptionsPartialUpdate -> Script ExtrasScriptsPartialUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsPartialUpdate(ctx, id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() @@ -9877,17 +11471,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + patchedSubscriptionRequest := *openapiclient.NewPatchedSubscriptionRequest() // PatchedSubscriptionRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsPartialUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsPartialUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsPartialUpdate`: %v\n", resp) } ``` @@ -9897,20 +11492,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **patchedSubscriptionRequest** | [**PatchedSubscriptionRequest**](PatchedSubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9918,7 +11514,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9926,9 +11522,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsRetrieve +## ExtrasSubscriptionsRetrieve -> Script ExtrasScriptsRetrieve(ctx, id).Execute() +> Subscription ExtrasSubscriptionsRetrieve(ctx, id).Execute() @@ -9947,17 +11543,17 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsRetrieve`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsRetrieve`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsRetrieve`: %v\n", resp) } ``` @@ -9967,11 +11563,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -9980,7 +11576,7 @@ Name | Type | Description | Notes ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9996,9 +11592,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsUpdate +## ExtrasSubscriptionsUpdate -> Script ExtrasScriptsUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsUpdate(ctx, id).SubscriptionRequest(subscriptionRequest).Execute() @@ -10017,17 +11613,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsUpdate`: %v\n", resp) } ``` @@ -10037,20 +11634,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -10058,7 +11656,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md index f0207ccf5d..5540c98b8c 100644 --- a/docs/ExtrasCustomLinksListButtonClassParameter.md +++ b/docs/ExtrasCustomLinksListButtonClassParameter.md @@ -9,6 +9,8 @@ * `CYAN` (value: `"cyan"`) +* `DEFAULT` (value: `"default"`) + * `GHOST_DARK` (value: `"ghost-dark"`) * `GRAY` (value: `"gray"`) @@ -19,8 +21,6 @@ * `ORANGE` (value: `"orange"`) -* `OUTLINE_DARK` (value: `"outline-dark"`) - * `PINK` (value: `"pink"`) * `PURPLE` (value: `"purple"`) diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md index 1b55f2fa80..7822b3e134 100644 --- a/docs/FHRPGroup.md +++ b/docs/FHRPGroup.md @@ -5,17 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] +**Name** | Pointer to **string** | | [optional] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpAddresses** | [**[]BriefIPAddress**](BriefIPAddress.md) | | [readonly] ## Methods ### NewFHRPGroup -`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup` +`func NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress, ) *FHRPGroup` NewFHRPGroup instantiates a new FHRPGroup object This constructor will assign default values to properties that have it defined, @@ -50,6 +60,31 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. +### GetName + +`func (o *FHRPGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetUrl `func (o *FHRPGroup) GetUrl() string` @@ -70,6 +105,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FHRPGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FHRPGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FHRPGroup) GetDisplay() string` @@ -92,20 +147,20 @@ SetDisplay sets Display field to given value. ### GetProtocol -`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -130,6 +185,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroup) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroup) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroup) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroup) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroup) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroup) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroup) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroup) GetDescription() string` @@ -155,6 +260,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroup) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroup) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroup) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroup) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *FHRPGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *FHRPGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *FHRPGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *FHRPGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *FHRPGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *FHRPGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *FHRPGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *FHRPGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpAddresses + +`func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *FHRPGroup) GetIpAddressesOk() (*[]BriefIPAddress, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress)` + +SetIpAddresses sets IpAddresses field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md index c6fa9037f7..c12dfa4739 100644 --- a/docs/FHRPGroupAssignment.md +++ b/docs/FHRPGroupAssignment.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | [**FHRPGroup**](FHRPGroup.md) | | +**Group** | [**BriefFHRPGroup**](BriefFHRPGroup.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Interface** | **interface{}** | | [readonly] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignment -`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` +`func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` NewFHRPGroupAssignment instantiates a new FHRPGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetGroup -`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup` +`func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool)` +`func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)` +`func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md index b589eac9d8..89a52663c8 100644 --- a/docs/FHRPGroupAssignmentRequest.md +++ b/docs/FHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | | +**Group** | [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Priority** | **int32** | | @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignmentRequest -`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` +`func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` NewFHRPGroupAssignmentRequest instantiates a new FHRPGroupAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md index f7572c47f5..3cf2f71ca2 100644 --- a/docs/FHRPGroupRequest.md +++ b/docs/FHRPGroupRequest.md @@ -4,15 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Name** | Pointer to **string** | | [optional] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewFHRPGroupRequest -`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` +`func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` NewFHRPGroupRequest instantiates a new FHRPGroupRequest object This constructor will assign default values to properties that have it defined, @@ -27,22 +33,47 @@ NewFHRPGroupRequestWithDefaults instantiates a new FHRPGroupRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetName + +`func (o *FHRPGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetProtocol -`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -67,6 +98,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroupRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroupRequest) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroupRequest) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroupRequest) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroupRequest) GetDescription() string` @@ -92,6 +173,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroupRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroupRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroupRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroupRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FrontPort.md b/docs/FrontPort.md index 5cba25bc85..216320be79 100644 --- a/docs/FrontPort.md +++ b/docs/FrontPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -17,10 +18,10 @@ Name | Type | Description | Notes **RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewFrontPort -`func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` +`func NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FrontPort) GetDisplay() string` @@ -108,40 +129,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *FrontPort) GetDevice() Device` +`func (o *FrontPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPort) GetDeviceOk() (*Device, bool)` +`func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPort) SetDevice(v Device)` +`func (o *FrontPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPort) GetModule() Module` +`func (o *FrontPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPort) GetModuleOk() (*Module, bool)` +`func (o *FrontPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPort) SetModule(v Module)` +`func (o *FrontPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -348,20 +369,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *FrontPort) GetCable() Cable` +`func (o *FrontPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *FrontPort) GetCableOk() (*Cable, bool)` +`func (o *FrontPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *FrontPort) SetCable(v Cable)` +`func (o *FrontPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -436,6 +457,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *FrontPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *FrontPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *FrontPort) GetTags() []NestedTag` diff --git a/docs/FrontPortRearPort.md b/docs/FrontPortRearPort.md index 59db5e9c0f..d73450e269 100644 --- a/docs/FrontPortRearPort.md +++ b/docs/FrontPortRearPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewFrontPortRearPort -`func NewFrontPortRearPort(id int32, url string, display string, name string, ) *FrontPortRearPort` +`func NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string, ) *FrontPortRearPort` NewFrontPortRearPort instantiates a new FrontPortRearPort object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPortRearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPortRearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FrontPortRearPort) GetDisplay() string` diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md index 91c8194b7a..bd9fb2cd9d 100644 --- a/docs/FrontPortRequest.md +++ b/docs/FrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewFrontPortRequest -`func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` +`func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` NewFrontPortRequest instantiates a new FrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *FrontPortRequest) GetDevice() DeviceRequest` +`func (o *FrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPortRequest) GetModule() ModuleRequest` +`func (o *FrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPortRequest) SetModule(v ModuleRequest)` +`func (o *FrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index 31aa9d758e..ceb0795081 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | | +**RearPort** | [**BriefRearPortTemplate**](BriefRearPortTemplate.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplate -`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` +`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` NewFrontPortTemplate instantiates a new FrontPortTemplate object This constructor will assign default values to properties that have it defined, @@ -100,20 +100,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *FrontPortTemplate) GetDeviceType() DeviceType` +`func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)` +`func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -135,20 +135,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplate) GetModuleType() ModuleType` +`func (o *FrontPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplate) SetModuleType(v ModuleType)` +`func (o *FrontPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -260,20 +260,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate` +`func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool)` +`func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)` +`func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index 08dc1ef798..8e27f7687c 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplateRequest -`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *FrontPortTemplateRequest` +`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *FrontPortTemplateRequest` NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md index 767d7d0ef3..0024e2bae5 100644 --- a/docs/FrontPortTypeLabel.md +++ b/docs/FrontPortTypeLabel.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"Splice"`) +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + * `OTHER` (value: `"Other"`) diff --git a/docs/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md index c6ac181220..6265dfe24d 100644 --- a/docs/FrontPortTypeValue.md +++ b/docs/FrontPortTypeValue.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"splice"`) +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + * `OTHER` (value: `"other"`) diff --git a/docs/GenericObject.md b/docs/GenericObject.md new file mode 100644 index 0000000000..b409766a4d --- /dev/null +++ b/docs/GenericObject.md @@ -0,0 +1,103 @@ +# GenericObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int32** | | +**Object** | **interface{}** | | [readonly] + +## Methods + +### NewGenericObject + +`func NewGenericObject(objectType string, objectId int32, object interface{}, ) *GenericObject` + +NewGenericObject instantiates a new GenericObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGenericObjectWithDefaults + +`func NewGenericObjectWithDefaults() *GenericObject` + +NewGenericObjectWithDefaults instantiates a new GenericObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *GenericObject) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *GenericObject) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *GenericObject) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *GenericObject) GetObjectId() int32` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *GenericObject) GetObjectIdOk() (*int32, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *GenericObject) SetObjectId(v int32)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *GenericObject) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *GenericObject) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *GenericObject) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *GenericObject) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *GenericObject) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Group.md b/docs/Group.md index c9ac7b587d..38387646e8 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -16,7 +17,7 @@ Name | Type | Description | Notes ### NewGroup -`func NewGroup(id int32, url string, display string, name string, userCount int32, ) *Group` +`func NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32, ) *Group` NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, @@ -71,6 +72,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Group) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Group) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Group) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Group) GetDisplay() string` diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md index 91c8a8e58b..2dce4ceaec 100644 --- a/docs/IKEPolicy.md +++ b/docs/IKEPolicy.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | | -**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | | +**Mode** | Pointer to [**IKEPolicyMode**](IKEPolicyMode.md) | | [optional] **Proposals** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewIKEPolicy -`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` +`func NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` NewIKEPolicy instantiates a new IKEPolicy object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IKEPolicy) GetDisplay() string` @@ -182,6 +203,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicy) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md index 9a18d7f6dd..919cb92b90 100644 --- a/docs/IKEPolicyRequest.md +++ b/docs/IKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | -**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | +**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIKEPolicyRequest -`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, ) *IKEPolicyRequest` NewIKEPolicyRequest instantiates a new IKEPolicyRequest object This constructor will assign default values to properties that have it defined, @@ -117,6 +117,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicyRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEProposal.md b/docs/IKEProposal.md index ee499984d3..906ae7899d 100644 --- a/docs/IKEProposal.md +++ b/docs/IKEProposal.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] **Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewIKEProposal -`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` +`func NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` NewIKEProposal instantiates a new IKEProposal object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IKEProposal) GetDisplay() string` @@ -203,6 +224,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposal) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IKEProposalRequest.md b/docs/IKEProposalRequest.md index d61d24fd8a..a96502c8ad 100644 --- a/docs/IKEProposalRequest.md +++ b/docs/IKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] **Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewIKEProposalRequest -`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` NewIKEProposalRequest instantiates a new IKEProposalRequest object This constructor will assign default values to properties that have it defined, @@ -138,6 +138,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IPAddress.md b/docs/IPAddress.md index ed004ef146..a782cecc4e 100644 --- a/docs/IPAddress.md +++ b/docs/IPAddress.md @@ -6,16 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPAddressStatus**](IPAddressStatus.md) | | [optional] +**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**AssignedObject** | **interface{}** | | [readonly] +**NatInside** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**NatOutside** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewIPAddress -`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress` +`func NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress` NewIPAddress instantiates a new IPAddress object This constructor will assign default values to properties that have it defined, @@ -70,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPAddress) GetDisplay() string` @@ -130,6 +166,306 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddress) GetVrf() BriefVRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddress) GetVrfOk() (*BriefVRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddress) SetVrf(v BriefVRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddress) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddress) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddress) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddress) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddress) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddress) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddress) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddress) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddress) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddress) GetStatus() IPAddressStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddress) SetStatus(v IPAddressStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddress) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddress) GetRole() IPAddressRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddress) SetRole(v IPAddressRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddress) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddress) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddress) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddress) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddress) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddress) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddress) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddress) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddress) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddress) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddress) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetAssignedObject + +`func (o *IPAddress) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *IPAddress) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *IPAddress) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *IPAddress) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetNatInside + +`func (o *IPAddress) GetNatInside() NestedIPAddress` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddress) SetNatInside(v NestedIPAddress)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddress) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddress) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddress) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetNatOutside + +`func (o *IPAddress) GetNatOutside() []NestedIPAddress` + +GetNatOutside returns the NatOutside field if non-nil, zero value otherwise. + +### GetNatOutsideOk + +`func (o *IPAddress) GetNatOutsideOk() (*[]NestedIPAddress, bool)` + +GetNatOutsideOk returns a tuple with the NatOutside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatOutside + +`func (o *IPAddress) SetNatOutside(v []NestedIPAddress)` + +SetNatOutside sets NatOutside field to given value. + + +### GetDnsName + +`func (o *IPAddress) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddress) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddress) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddress) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddress) GetDescription() string` @@ -155,6 +491,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddress) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddress) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddress) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddress) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddress) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddress) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddress) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddress) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddress) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddress) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddress) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddress) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *IPAddress) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IPAddress) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *IPAddress) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *IPAddress) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *IPAddress) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *IPAddress) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *IPAddress) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *IPAddress) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *IPAddress) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IPAddressRequest.md b/docs/IPAddressRequest.md index 7944d1cf99..808e934b22 100644 --- a/docs/IPAddressRequest.md +++ b/docs/IPAddressRequest.md @@ -5,7 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Role** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**NatInside** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -46,6 +57,256 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddressRequest) GetVrf() BriefVRFRequest` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddressRequest) SetVrf(v BriefVRFRequest)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddressRequest) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddressRequest) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddressRequest) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddressRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddressRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddressRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddressRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddressRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddressRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddressRequest) GetRole() IPAddressRoleValue` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddressRequest) SetRole(v IPAddressRoleValue)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddressRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetNatInside + +`func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddressRequest) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddressRequest) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddressRequest) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetDnsName + +`func (o *IPAddressRequest) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddressRequest) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddressRequest) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddressRequest) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddressRequest) GetDescription() string` @@ -71,6 +332,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddressRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddressRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddressRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IPAddressRole.md b/docs/IPAddressRole.md new file mode 100644 index 0000000000..a3556e5953 --- /dev/null +++ b/docs/IPAddressRole.md @@ -0,0 +1,82 @@ +# IPAddressRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**Label** | Pointer to [**IPAddressRoleLabel**](IPAddressRoleLabel.md) | | [optional] + +## Methods + +### NewIPAddressRole + +`func NewIPAddressRole() *IPAddressRole` + +NewIPAddressRole instantiates a new IPAddressRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIPAddressRoleWithDefaults + +`func NewIPAddressRoleWithDefaults() *IPAddressRole` + +NewIPAddressRoleWithDefaults instantiates a new IPAddressRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *IPAddressRole) GetValue() IPAddressRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IPAddressRole) SetValue(v IPAddressRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressRole) GetLabel() IPAddressRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressRole) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressRoleLabel.md b/docs/IPAddressRoleLabel.md new file mode 100644 index 0000000000..57453cb719 --- /dev/null +++ b/docs/IPAddressRoleLabel.md @@ -0,0 +1,25 @@ +# IPAddressRoleLabel + +## Enum + + +* `LOOPBACK` (value: `"Loopback"`) + +* `SECONDARY` (value: `"Secondary"`) + +* `ANYCAST` (value: `"Anycast"`) + +* `VIP` (value: `"VIP"`) + +* `VRRP` (value: `"VRRP"`) + +* `HSRP` (value: `"HSRP"`) + +* `GLBP` (value: `"GLBP"`) + +* `CARP` (value: `"CARP"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressRoleValue.md b/docs/IPAddressRoleValue.md new file mode 100644 index 0000000000..fe031504fc --- /dev/null +++ b/docs/IPAddressRoleValue.md @@ -0,0 +1,27 @@ +# IPAddressRoleValue + +## Enum + + +* `LOOPBACK` (value: `"loopback"`) + +* `SECONDARY` (value: `"secondary"`) + +* `ANYCAST` (value: `"anycast"`) + +* `VIP` (value: `"vip"`) + +* `VRRP` (value: `"vrrp"`) + +* `HSRP` (value: `"hsrp"`) + +* `GLBP` (value: `"glbp"`) + +* `CARP` (value: `"carp"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressStatus.md b/docs/IPAddressStatus.md new file mode 100644 index 0000000000..961c2b0d10 --- /dev/null +++ b/docs/IPAddressStatus.md @@ -0,0 +1,82 @@ +# IPAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Label** | Pointer to [**IPAddressStatusLabel**](IPAddressStatusLabel.md) | | [optional] + +## Methods + +### NewIPAddressStatus + +`func NewIPAddressStatus() *IPAddressStatus` + +NewIPAddressStatus instantiates a new IPAddressStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIPAddressStatusWithDefaults + +`func NewIPAddressStatusWithDefaults() *IPAddressStatus` + +NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *IPAddressStatus) GetValue() IPAddressStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IPAddressStatus) SetValue(v IPAddressStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressStatusLabel.md b/docs/IPAddressStatusLabel.md new file mode 100644 index 0000000000..85c0415725 --- /dev/null +++ b/docs/IPAddressStatusLabel.md @@ -0,0 +1,19 @@ +# IPAddressStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DEPRECATED` (value: `"Deprecated"`) + +* `DHCP` (value: `"DHCP"`) + +* `SLAAC` (value: `"SLAAC"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressStatusValue.md b/docs/IPAddressStatusValue.md new file mode 100644 index 0000000000..8794985a82 --- /dev/null +++ b/docs/IPAddressStatusValue.md @@ -0,0 +1,19 @@ +# IPAddressStatusValue + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `DHCP` (value: `"dhcp"`) + +* `SLAAC` (value: `"slaac"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPRange.md b/docs/IPRange.md index 4d6a50ec04..6ea477e32a 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **StartAddress** | **string** | | **EndAddress** | **string** | | **Size** | **int32** | | [readonly] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -27,7 +28,7 @@ Name | Type | Description | Notes ### NewIPRange -`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` +`func NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` NewIPRange instantiates a new IPRange object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPRange) GetDisplay() string` @@ -184,20 +205,20 @@ SetSize sets Size field to given value. ### GetVrf -`func (o *IPRange) GetVrf() VRF` +`func (o *IPRange) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRange) GetVrfOk() (*VRF, bool)` +`func (o *IPRange) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRange) SetVrf(v VRF)` +`func (o *IPRange) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -219,20 +240,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRange) GetTenant() Tenant` +`func (o *IPRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRange) GetTenantOk() (*Tenant, bool)` +`func (o *IPRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRange) SetTenant(v Tenant)` +`func (o *IPRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -279,20 +300,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRange) GetRole() Role` +`func (o *IPRange) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRange) GetRoleOk() (*Role, bool)` +`func (o *IPRange) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRange) SetRole(v Role)` +`func (o *IPRange) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md index 35f6cc2210..11d861c010 100644 --- a/docs/IPRangeRequest.md +++ b/docs/IPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *IPRangeRequest) GetVrf() VRFRequest` +`func (o *IPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRangeRequest) SetVrf(v VRFRequest)` +`func (o *IPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRangeRequest) GetTenant() TenantRequest` +`func (o *IPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRangeRequest) SetTenant(v TenantRequest)` +`func (o *IPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRangeRequest) GetRole() RoleRequest` +`func (o *IPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRangeRequest) SetRole(v RoleRequest)` +`func (o *IPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md index 7d7e216e5a..5106d9867d 100644 --- a/docs/IPSecPolicy.md +++ b/docs/IPSecPolicy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewIPSecPolicy -`func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` +`func NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` NewIPSecPolicy instantiates a new IPSecPolicy object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecPolicy) GetDisplay() string` diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md index 9582c52588..2dca50bda4 100644 --- a/docs/IPSecProfile.md +++ b/docs/IPSecProfile.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | | -**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | | -**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | | +**IkePolicy** | [**BriefIKEPolicy**](BriefIKEPolicy.md) | | +**IpsecPolicy** | [**BriefIPSecPolicy**](BriefIPSecPolicy.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewIPSecProfile -`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` +`func NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` NewIPSecProfile instantiates a new IPSecProfile object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProfile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProfile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecProfile) GetDisplay() string` @@ -164,40 +185,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfile) GetIkePolicy() IKEPolicy` +`func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool)` +`func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)` +`func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy` +`func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool)` +`func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)` +`func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md index 74f1a9171d..35d915482e 100644 --- a/docs/IPSecProfileRequest.md +++ b/docs/IPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewIPSecProfileRequest -`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *IPSecProfileRequest` +`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *IPSecProfileRequest` NewIPSecProfileRequest instantiates a new IPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProposal.md b/docs/IPSecProposal.md index 6664ca6a23..9deb648fb7 100644 --- a/docs/IPSecProposal.md +++ b/docs/IPSecProposal.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewIPSecProposal -`func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` +`func NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` NewIPSecProposal instantiates a new IPSecProposal object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecProposal) GetDisplay() string` diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md index 254d230c2f..c7288671f0 100644 --- a/docs/ImageAttachment.md +++ b/docs/ImageAttachment.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **Parent** | **interface{}** | | [readonly] **Name** | Pointer to **string** | | [optional] **Image** | **string** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | +**ImageHeight** | **int32** | | [readonly] +**ImageWidth** | **int32** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] diff --git a/docs/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md index 7728d54e5a..b79b8f76ea 100644 --- a/docs/ImageAttachmentRequest.md +++ b/docs/ImageAttachmentRequest.md @@ -8,14 +8,12 @@ Name | Type | Description | Notes **ObjectId** | **int64** | | **Name** | Pointer to **string** | | [optional] **Image** | ***os.File** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | ## Methods ### NewImageAttachmentRequest -`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, ) *ImageAttachmentRequest` NewImageAttachmentRequest instantiates a new ImageAttachmentRequest object This constructor will assign default values to properties that have it defined, @@ -115,46 +113,6 @@ and a boolean to check if the value has been set. SetImage sets Image field to given value. -### GetImageHeight - -`func (o *ImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - - -### GetImageWidth - -`func (o *ImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Interface.md b/docs/Interface.md index 222d4907da..55aaa4d758 100644 --- a/docs/Interface.md +++ b/docs/Interface.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -32,19 +33,19 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,7 +59,7 @@ Name | Type | Description | Notes ### NewInterface -`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` +`func NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` NewInterface instantiates a new Interface object This constructor will assign default values to properties that have it defined, @@ -113,6 +114,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Interface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Interface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Interface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Interface) GetDisplay() string` @@ -135,20 +156,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Interface) GetDevice() Device` +`func (o *Interface) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Interface) GetDeviceOk() (*Device, bool)` +`func (o *Interface) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Interface) SetDevice(v Device)` +`func (o *Interface) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -180,20 +201,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *Interface) GetModule() Module` +`func (o *Interface) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *Interface) GetModuleOk() (*Module, bool)` +`func (o *Interface) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *Interface) SetModule(v Module)` +`func (o *Interface) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -865,20 +886,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *Interface) GetUntaggedVlan() VLAN` +`func (o *Interface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *Interface) SetUntaggedVlan(v VLAN)` +`func (o *Interface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -950,20 +971,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *Interface) GetCable() Cable` +`func (o *Interface) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *Interface) GetCableOk() (*Cable, bool)` +`func (o *Interface) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *Interface) SetCable(v Cable)` +`func (o *Interface) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -1068,6 +1089,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *Interface) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *Interface) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetWirelessLans `func (o *Interface) GetWirelessLans() []WirelessLAN` @@ -1095,20 +1126,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *Interface) GetVrf() VRF` +`func (o *Interface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Interface) GetVrfOk() (*VRF, bool)` +`func (o *Interface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Interface) SetVrf(v VRF)` +`func (o *Interface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -1130,20 +1161,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *Interface) GetL2vpnTermination() L2VPNTermination` +`func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. @@ -1178,6 +1209,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *Interface) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *Interface) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *Interface) GetConnectedEndpointsType() string` @@ -1198,6 +1239,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *Interface) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *Interface) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *Interface) GetConnectedEndpointsReachable() bool` diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 9a58216f3f..2a12dd4c4b 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewInterfaceRequest -`func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` +`func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` NewInterfaceRequest instantiates a new InterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InterfaceRequest) GetDevice() DeviceRequest` +`func (o *InterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *InterfaceRequest) GetModule() ModuleRequest` +`func (o *InterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *InterfaceRequest) SetModule(v ModuleRequest)` +`func (o *InterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *InterfaceRequest) GetVrf() VRFRequest` +`func (o *InterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *InterfaceRequest) SetVrf(v VRFRequest)` +`func (o *InterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md index fe7c519cdc..447d3bcb8b 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InterfaceTemplate) GetDeviceType() DeviceType` +`func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)` +`func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -138,20 +138,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplate) GetModuleType() ModuleType` +`func (o *InterfaceTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplate) SetModuleType(v ModuleType)` +`func (o *InterfaceTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index e916c81165..5646cf9a6a 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md index 74891e8c26..16fefb006e 100644 --- a/docs/InterfaceTypeLabel.md +++ b/docs/InterfaceTypeLabel.md @@ -19,6 +19,8 @@ * `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`) +* `_1000_BASE_TX__1_GE` (value: `"1000BASE-TX (1GE)"`) + * `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`) * `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`) @@ -125,6 +127,8 @@ * `IEEE_802_11AY` (value: `"IEEE 802.11ay"`) +* `IEEE_802_11BE` (value: `"IEEE 802.11be"`) + * `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`) * `OTHER__WIRELESS` (value: `"Other (Wireless)"`) diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md index 4d0b0417fd..e42eb73f5e 100644 --- a/docs/InterfaceTypeValue.md +++ b/docs/InterfaceTypeValue.md @@ -19,6 +19,8 @@ * `_1000BASE_T` (value: `"1000base-t"`) +* `_1000BASE_TX` (value: `"1000base-tx"`) + * `_2_5GBASE_T` (value: `"2.5gbase-t"`) * `_5GBASE_T` (value: `"5gbase-t"`) @@ -125,6 +127,8 @@ * `IEEE802_11AY` (value: `"ieee802.11ay"`) +* `IEEE802_11BE` (value: `"ieee802.11be"`) + * `IEEE802_15_1` (value: `"ieee802.15.1"`) * `OTHER_WIRELESS` (value: `"other-wireless"`) diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md index 899e554b9d..a066deff51 100644 --- a/docs/InventoryItem.md +++ b/docs/InventoryItem.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewInventoryItem -`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItem) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItem) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItem) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *InventoryItem) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *InventoryItem) GetDevice() Device` +`func (o *InventoryItem) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItem) GetDeviceOk() (*Device, bool)` +`func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItem) SetDevice(v Device)` +`func (o *InventoryItem) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -208,20 +229,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItem) GetRole() InventoryItemRole` +`func (o *InventoryItem) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItem) SetRole(v InventoryItemRole)` +`func (o *InventoryItem) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -243,20 +264,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItem) GetManufacturer() Manufacturer` +`func (o *InventoryItem) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItem) SetManufacturer(v Manufacturer)` +`func (o *InventoryItem) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md index 580df6b263..8fe8b8c2d8 100644 --- a/docs/InventoryItemRequest.md +++ b/docs/InventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewInventoryItemRequest -`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest` +`func NewInventoryItemRequest(device BriefDeviceRequest, name string, ) *InventoryItemRequest` NewInventoryItemRequest instantiates a new InventoryItemRequest object This constructor will assign default values to properties that have it defined, @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InventoryItemRequest) GetDevice() DeviceRequest` +`func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -141,20 +141,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -176,20 +176,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md index ffd538ba16..855098b6ff 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewInventoryItemRole -`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` +`func NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` NewInventoryItemRole instantiates a new InventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItemRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItemRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *InventoryItemRole) GetDisplay() string` diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index 94833b0ef3..eddb4a2b36 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InventoryItemTemplate) GetDeviceType() DeviceType` +`func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)` +`func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -203,20 +203,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplate) GetRole() InventoryItemRole` +`func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplate) SetRole(v InventoryItemRole)` +`func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -238,20 +238,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer` +`func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)` +`func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index fb68460d1e..c73bbf2c3a 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplateRequest -`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` +`func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` NewInventoryItemTemplateRequest instantiates a new InventoryItemTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -171,20 +171,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md index 3113766dae..5e65710d7a 100644 --- a/docs/IpamAPI.md +++ b/docs/IpamAPI.md @@ -182,7 +182,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -246,7 +246,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -312,7 +312,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -378,7 +378,7 @@ import ( ) func main() { - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -568,10 +568,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -654,10 +654,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -844,7 +844,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this aggregate. - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1057,7 +1057,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1121,7 +1121,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1187,7 +1187,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1253,7 +1253,7 @@ import ( ) func main() { - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1470,10 +1470,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1583,10 +1583,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1773,7 +1773,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this ASN range. - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2236,10 +2236,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -2328,10 +2328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2589,7 +2589,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2653,7 +2653,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2719,7 +2719,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2785,7 +2785,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3225,7 +3225,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment. - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3296,7 +3296,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3360,7 +3360,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3426,7 +3426,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3492,7 +3492,7 @@ import ( ) func main() { - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3984,7 +3984,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group. - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4474,10 +4474,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4603,10 +4603,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -5408,10 +5408,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -5504,10 +5504,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -6446,20 +6446,20 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this prefix (optional) @@ -6468,10 +6468,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -6576,20 +6576,20 @@ Name | Type | Description | Notes **presentInVrf** | **string** | | **presentInVrfId** | **string** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this prefix | @@ -6598,10 +6598,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -8760,10 +8760,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -8860,10 +8860,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -10151,7 +10151,7 @@ Name | Type | Description | Notes ## IpamServicesList -> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() +> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -10205,10 +10205,6 @@ func main() { ipAddressN := []string{"Inner_example"} // []string | IP address (optional) ipAddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipAddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddress := []string{"Inner_example"} // []string | IP address (optional) - ipaddressN := []string{"Inner_example"} // []string | IP address (optional) - ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10245,7 +10241,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10300,10 +10296,6 @@ Name | Type | Description | Notes **ipAddressN** | **[]string** | IP address | **ipAddressId** | **[]int32** | IP address (ID) | **ipAddressIdN** | **[]int32** | IP address (ID) | - **ipaddress** | **[]string** | IP address | - **ipaddressN** | **[]string** | IP address | - **ipaddressId** | **[]int32** | IP address (ID) | - **ipaddressIdN** | **[]int32** | IP address (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -11044,7 +11036,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -11066,7 +11058,7 @@ import ( func main() { cluster := int32(56) // int32 | (optional) clusterGroup := int32(56) // int32 | (optional) - clustergroup := int32(56) // int32 | (optional) + containsVid := float32(8.14) // float32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11102,20 +11094,6 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := int32(56) // int32 | (optional) - maxVid := []int32{int32(123)} // []int32 | (optional) - maxVidEmpty := true // bool | (optional) - maxVidGt := []int32{int32(123)} // []int32 | (optional) - maxVidGte := []int32{int32(123)} // []int32 | (optional) - maxVidLt := []int32{int32(123)} // []int32 | (optional) - maxVidLte := []int32{int32(123)} // []int32 | (optional) - maxVidN := []int32{int32(123)} // []int32 | (optional) - minVid := []int32{int32(123)} // []int32 | (optional) - minVidEmpty := true // bool | (optional) - minVidGt := []int32{int32(123)} // []int32 | (optional) - minVidGte := []int32{int32(123)} // []int32 | (optional) - minVidLt := []int32{int32(123)} // []int32 | (optional) - minVidLte := []int32{int32(123)} // []int32 | (optional) - minVidN := []int32{int32(123)} // []int32 | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -11144,7 +11122,6 @@ func main() { scopeTypeN := "scopeTypeN_example" // string | (optional) site := int32(56) // int32 | (optional) siteGroup := int32(56) // int32 | (optional) - sitegroup := int32(56) // int32 | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -11162,7 +11139,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11185,7 +11162,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster** | **int32** | | **clusterGroup** | **int32** | | - **clustergroup** | **int32** | | + **containsVid** | **float32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -11221,20 +11198,6 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **location** | **int32** | | - **maxVid** | **[]int32** | | - **maxVidEmpty** | **bool** | | - **maxVidGt** | **[]int32** | | - **maxVidGte** | **[]int32** | | - **maxVidLt** | **[]int32** | | - **maxVidLte** | **[]int32** | | - **maxVidN** | **[]int32** | | - **minVid** | **[]int32** | | - **minVidEmpty** | **bool** | | - **minVidGt** | **[]int32** | | - **minVidGte** | **[]int32** | | - **minVidLt** | **[]int32** | | - **minVidLte** | **[]int32** | | - **minVidN** | **[]int32** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -11263,7 +11226,6 @@ Name | Type | Description | Notes **scopeTypeN** | **string** | | **site** | **int32** | | **siteGroup** | **int32** | | - **sitegroup** | **int32** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -11923,20 +11885,20 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) @@ -11945,10 +11907,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12043,20 +12005,20 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this VLAN | @@ -12065,10 +12027,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -12737,10 +12699,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12841,10 +12803,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/Job.md b/docs/Job.md index 1366c59151..9db5ca2fd1 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectType** | **string** | | [readonly] **ObjectId** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | -**Status** | [**JobStatus**](JobStatus.md) | | +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | **Created** | **time.Time** | | [readonly] **Scheduled** | Pointer to **NullableTime** | | [optional] **Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] **Started** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Data** | Pointer to **interface{}** | | [optional] **Error** | **string** | | [readonly] **JobId** | **string** | | @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewJob -`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` +`func NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string, ) *Job` NewJob instantiates a new Job object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Job) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Job) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Job) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Job) GetDisplay() string` @@ -177,20 +198,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *Job) GetStatus() JobStatus` +`func (o *Job) GetStatus() BriefJobStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Job) GetStatusOk() (*JobStatus, bool)` +`func (o *Job) GetStatusOk() (*BriefJobStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *Job) SetStatus(v JobStatus)` +`func (o *Job) SetStatus(v BriefJobStatus)` SetStatus sets Status field to given value. @@ -357,20 +378,20 @@ HasCompleted returns a boolean if a field has been set. UnsetCompleted ensures that no value is present for Completed, not even an explicit nil ### GetUser -`func (o *Job) GetUser() User` +`func (o *Job) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Job) GetUserOk() (*User, bool)` +`func (o *Job) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Job) SetUser(v User)` +`func (o *Job) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/JournalEntry.md b/docs/JournalEntry.md index de511cc13b..2470a93a00 100644 --- a/docs/JournalEntry.md +++ b/docs/JournalEntry.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **AssignedObjectType** | **string** | | **AssignedObjectId** | **int64** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewJournalEntry -`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` +`func NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` NewJournalEntry instantiates a new JournalEntry object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *JournalEntry) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *JournalEntry) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *JournalEntry) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *JournalEntry) GetDisplay() string` diff --git a/docs/L2VPN.md b/docs/L2VPN.md index 85cc2783ea..015695032a 100644 --- a/docs/L2VPN.md +++ b/docs/L2VPN.md @@ -6,18 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNType**](L2VPNType.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPN -`func NewL2VPN(id int32, url string, display string, name string, slug string, ) *L2VPN` +`func NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *L2VPN` NewL2VPN instantiates a new L2VPN object This constructor will assign default values to properties that have it defined, @@ -72,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *L2VPN) GetDisplay() string` @@ -169,20 +198,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPN) GetType() L2VPNType` +`func (o *L2VPN) GetType() BriefL2VPNType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPN) GetTypeOk() (*L2VPNType, bool)` +`func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPN) SetType(v L2VPNType)` +`func (o *L2VPN) SetType(v BriefL2VPNType)` SetType sets Type field to given value. @@ -192,6 +221,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPN) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPN) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPN) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPN) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPN) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPN) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPN) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPN) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPN) GetDescription() string` @@ -217,6 +296,176 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/L2VPNRequest.md b/docs/L2VPNRequest.md index 7c5fb24c8c..22f327eb13 100644 --- a/docs/L2VPNRequest.md +++ b/docs/L2VPNRequest.md @@ -7,8 +7,14 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -106,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPNRequest) GetType() L2VPNTypeValue` +`func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -129,6 +135,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPNRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPNRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPNRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPNRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPNRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPNRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPNRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPNRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPNRequest) GetDescription() string` @@ -154,6 +210,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPNRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPNRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPNRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPNRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPNRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPNRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPNRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPNRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPNRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPNRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/L2VPNTermination.md b/docs/L2VPNTermination.md index 4c558a8e62..d4e22cfc70 100644 --- a/docs/L2VPNTermination.md +++ b/docs/L2VPNTermination.md @@ -6,14 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**L2vpn** | [**L2VPN**](L2VPN.md) | | +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**AssignedObject** | **interface{}** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPNTermination -`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination` +`func NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination` NewL2VPNTermination instantiates a new L2VPNTermination object This constructor will assign default values to properties that have it defined, @@ -68,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPNTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPNTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *L2VPNTermination) GetDisplay() string` @@ -90,24 +118,204 @@ SetDisplay sets Display field to given value. ### GetL2vpn -`func (o *L2VPNTermination) GetL2vpn() L2VPN` +`func (o *L2VPNTermination) GetL2vpn() BriefL2VPN` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool)` +`func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTermination) SetL2vpn(v L2VPN)` +`func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTermination) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTermination) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTermination) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTermination) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetAssignedObject + +`func (o *L2VPNTermination) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *L2VPNTermination) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *L2VPNTermination) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *L2VPNTermination) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetTags + +`func (o *L2VPNTermination) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTermination) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTermination) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTermination) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTermination) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTermination) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTermination) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTermination) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPNTermination) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPNTermination) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPNTermination) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPNTermination) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPNTermination) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPNTermination) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPNTermination) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPNTermination) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/L2VPNTerminationRequest.md b/docs/L2VPNTerminationRequest.md index 06ee7633d1..2fb1317c5f 100644 --- a/docs/L2VPNTerminationRequest.md +++ b/docs/L2VPNTerminationRequest.md @@ -4,13 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | | +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewL2VPNTerminationRequest -`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest` +`func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest` NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -27,24 +31,114 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTerminationRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetTags + +`func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTerminationRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Location.md b/docs/Location.md index 4130ec5473..e911a47c34 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -6,18 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSite**](BriefSite.md) | | +**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional] +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **RackCount** | **int32** | | [readonly] [default to 0] +**DeviceCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location` +`func NewLocation(id int32, url string, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, deviceCount int32, depth int32, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -72,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Location) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Location) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Location) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Location) GetDisplay() string` @@ -132,6 +163,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *Location) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Location) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Location) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *Location) GetParent() NestedLocation` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Location) GetParentOk() (*NestedLocation, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Location) SetParent(v NestedLocation)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Location) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Location) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Location) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *Location) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Location) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Location) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Location) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Location) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Location) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Location) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Location) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Location) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Location) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Location) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Location) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Location) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Location) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *Location) GetDescription() string` @@ -157,6 +328,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Location) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Location) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Location) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Location) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Location) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Location) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Location) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Location) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Location) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Location) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Location) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Location) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Location) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Location) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Location) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Location) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Location) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Location) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetRackCount `func (o *Location) GetRackCount() int32` @@ -177,6 +458,26 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. +### GetDeviceCount + +`func (o *Location) GetDeviceCount() int32` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Location) GetDeviceCountOk() (*int32, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Location) SetDeviceCount(v int32)` + +SetDeviceCount sets DeviceCount field to given value. + + ### GetDepth `func (o *Location) GetDepth() int32` diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md index f23f111fd2..0dd6b179cd 100644 --- a/docs/LocationRequest.md +++ b/docs/LocationRequest.md @@ -6,13 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewLocationRequest -`func NewLocationRequest(name string, slug string, ) *LocationRequest` +`func NewLocationRequest(name string, slug string, site BriefSiteRequest, ) *LocationRequest` NewLocationRequest instantiates a new LocationRequest object This constructor will assign default values to properties that have it defined, @@ -67,6 +74,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *LocationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *LocationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *LocationRequest) GetParent() NestedLocationRequest` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *LocationRequest) SetParent(v NestedLocationRequest)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *LocationRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *LocationRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *LocationRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *LocationRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *LocationRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LocationRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *LocationRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *LocationRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *LocationRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *LocationRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *LocationRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *LocationRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *LocationRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *LocationRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *LocationRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *LocationRequest) GetDescription() string` @@ -92,6 +239,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *LocationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LocationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LocationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LocationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *LocationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *LocationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *LocationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *LocationRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LocationStatus.md b/docs/LocationStatus.md new file mode 100644 index 0000000000..817680af33 --- /dev/null +++ b/docs/LocationStatus.md @@ -0,0 +1,82 @@ +# LocationStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Label** | Pointer to [**LocationStatusLabel**](LocationStatusLabel.md) | | [optional] + +## Methods + +### NewLocationStatus + +`func NewLocationStatus() *LocationStatus` + +NewLocationStatus instantiates a new LocationStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLocationStatusWithDefaults + +`func NewLocationStatusWithDefaults() *LocationStatus` + +NewLocationStatusWithDefaults instantiates a new LocationStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *LocationStatus) GetValue() LocationStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *LocationStatus) GetValueOk() (*LocationStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *LocationStatus) SetValue(v LocationStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *LocationStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *LocationStatus) GetLabel() LocationStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *LocationStatus) SetLabel(v LocationStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *LocationStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LocationStatusLabel.md b/docs/LocationStatusLabel.md new file mode 100644 index 0000000000..611c91d2be --- /dev/null +++ b/docs/LocationStatusLabel.md @@ -0,0 +1,19 @@ +# LocationStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `RETIRED` (value: `"Retired"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LocationStatusValue.md b/docs/LocationStatusValue.md new file mode 100644 index 0000000000..37cbbe607b --- /dev/null +++ b/docs/LocationStatusValue.md @@ -0,0 +1,19 @@ +# LocationStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `STAGING` (value: `"staging"`) + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `RETIRED` (value: `"retired"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Manufacturer.md b/docs/Manufacturer.md index c4c2211adc..8b98ccdf80 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -6,17 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DevicetypeCount** | **int64** | | [readonly] +**InventoryitemCount** | **int64** | | [readonly] +**PlatformCount** | **int64** | | [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64, ) *Manufacturer` +`func NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, devicetypeCount int64, inventoryitemCount int64, platformCount int64, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -71,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Manufacturer) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Manufacturer) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Manufacturer) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Manufacturer) GetDisplay() string` @@ -156,6 +183,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Manufacturer) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Manufacturer) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Manufacturer) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Manufacturer) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Manufacturer) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Manufacturer) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Manufacturer) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Manufacturer) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Manufacturer) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Manufacturer) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Manufacturer) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Manufacturer) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Manufacturer) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Manufacturer) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Manufacturer) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Manufacturer) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Manufacturer) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDevicetypeCount `func (o *Manufacturer) GetDevicetypeCount() int64` @@ -176,6 +313,46 @@ and a boolean to check if the value has been set. SetDevicetypeCount sets DevicetypeCount field to given value. +### GetInventoryitemCount + +`func (o *Manufacturer) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool)` + +GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryitemCount + +`func (o *Manufacturer) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + +### GetPlatformCount + +`func (o *Manufacturer) GetPlatformCount() int64` + +GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise. + +### GetPlatformCountOk + +`func (o *Manufacturer) GetPlatformCountOk() (*int64, bool)` + +GetPlatformCountOk returns a tuple with the PlatformCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformCount + +`func (o *Manufacturer) SetPlatformCount(v int64)` + +SetPlatformCount sets PlatformCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ManufacturerRequest.md b/docs/ManufacturerRequest.md index 669fe23896..6f878526ba 100644 --- a/docs/ManufacturerRequest.md +++ b/docs/ManufacturerRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ManufacturerRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ManufacturerRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ManufacturerRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ManufacturerRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ManufacturerRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ManufacturerRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ManufacturerRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Module.md b/docs/Module.md index a9257180a8..06a0d5e358 100644 --- a/docs/Module.md +++ b/docs/Module.md @@ -6,15 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | +**ModuleType** | [**BriefModuleType**](BriefModuleType.md) | | +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModule -`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module` +`func NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime, ) *Module` NewModule instantiates a new Module object This constructor will assign default values to properties that have it defined, @@ -69,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Module) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Module) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Module) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Module) GetDisplay() string` @@ -91,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Module) GetDevice() Device` +`func (o *Module) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Module) GetDeviceOk() (*Device, bool)` +`func (o *Module) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Module) SetDevice(v Device)` +`func (o *Module) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -129,6 +160,271 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *Module) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *Module) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *Module) GetStatus() ModuleStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Module) GetStatusOk() (*ModuleStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Module) SetStatus(v ModuleStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Module) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *Module) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Module) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Module) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Module) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Module) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Module) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Module) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Module) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Module) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Module) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *Module) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Module) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Module) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Module) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *Module) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Module) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Module) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Module) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Module) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Module) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Module) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Module) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Module) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Module) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Module) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Module) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Module) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Module) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Module) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Module) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Module) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Module) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Module) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Module) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Module) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Module) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ModuleBay.md b/docs/ModuleBay.md index 71f7349397..eab5b9aa04 100644 --- a/docs/ModuleBay.md +++ b/docs/ModuleBay.md @@ -6,10 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModule**](Module.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -22,7 +24,7 @@ Name | Type | Description | Notes ### NewModuleBay -`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` +`func NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` NewModuleBay instantiates a new ModuleBay object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ModuleBay) GetDisplay() string` @@ -99,24 +121,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ModuleBay) GetDevice() Device` +`func (o *ModuleBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBay) GetDeviceOk() (*Device, bool)` +`func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBay) SetDevice(v Device)` +`func (o *ModuleBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBay) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBay) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBay) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBay) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBay) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBay) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBay) GetName() string` @@ -139,20 +196,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBay) GetInstalledModule() Module` +`func (o *ModuleBay) GetInstalledModule() BriefModule` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool)` +`func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBay) SetInstalledModule(v Module)` +`func (o *ModuleBay) SetInstalledModule(v BriefModule)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayRequest.md b/docs/ModuleBayRequest.md index aa37cbe9d9..2062d984b4 100644 --- a/docs/ModuleBayRequest.md +++ b/docs/ModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewModuleBayRequest -`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest` +`func NewModuleBayRequest(device BriefDeviceRequest, name string, ) *ModuleBayRequest` NewModuleBayRequest instantiates a new ModuleBayRequest object This constructor will assign default values to properties that have it defined, @@ -34,24 +35,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleBayRequest) GetDevice() DeviceRequest` +`func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBayRequest) GetName() string` @@ -74,20 +110,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 237edfcafb..1bac163654 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplate -`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` +`func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` NewModuleBayTemplate instantiates a new ModuleBayTemplate object This constructor will assign default values to properties that have it defined, @@ -96,24 +97,74 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ModuleBayTemplate) GetDeviceType() DeviceType` +`func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)` +`func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplate) GetName() string` diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 75345ace9c..96ce2a4374 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplateRequest -`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` +`func NewModuleBayTemplateRequest(name string, ) *ModuleBayTemplateRequest` NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -31,24 +32,74 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplateRequest) GetName() string` diff --git a/docs/ModuleRequest.md b/docs/ModuleRequest.md index 648ff41f3d..11b1cbda2b 100644 --- a/docs/ModuleRequest.md +++ b/docs/ModuleRequest.md @@ -4,14 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleRequest -`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest` +`func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest, ) *ModuleRequest` NewModuleRequest instantiates a new ModuleRequest object This constructor will assign default values to properties that have it defined, @@ -28,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleRequest) GetDevice() DeviceRequest` +`func (o *ModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -66,6 +74,211 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *ModuleRequest) GetStatus() ModuleStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModuleRequest) SetStatus(v ModuleStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModuleRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *ModuleRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *ModuleRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *ModuleRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *ModuleRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *ModuleRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *ModuleRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *ModuleRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *ModuleRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *ModuleRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *ModuleRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *ModuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModuleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *ModuleRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ModuleStatus.md b/docs/ModuleStatus.md new file mode 100644 index 0000000000..5ad5a6dedc --- /dev/null +++ b/docs/ModuleStatus.md @@ -0,0 +1,82 @@ +# ModuleStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Label** | Pointer to [**ModuleStatusLabel**](ModuleStatusLabel.md) | | [optional] + +## Methods + +### NewModuleStatus + +`func NewModuleStatus() *ModuleStatus` + +NewModuleStatus instantiates a new ModuleStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModuleStatusWithDefaults + +`func NewModuleStatusWithDefaults() *ModuleStatus` + +NewModuleStatusWithDefaults instantiates a new ModuleStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ModuleStatus) GetValue() ModuleStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModuleStatus) SetValue(v ModuleStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModuleStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ModuleStatus) GetLabel() ModuleStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ModuleStatus) SetLabel(v ModuleStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleStatusLabel.md b/docs/ModuleStatusLabel.md new file mode 100644 index 0000000000..3673c61f21 --- /dev/null +++ b/docs/ModuleStatusLabel.md @@ -0,0 +1,21 @@ +# ModuleStatusLabel + +## Enum + + +* `OFFLINE` (value: `"Offline"`) + +* `ACTIVE` (value: `"Active"`) + +* `PLANNED` (value: `"Planned"`) + +* `STAGED` (value: `"Staged"`) + +* `FAILED` (value: `"Failed"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleStatusValue.md b/docs/ModuleStatusValue.md new file mode 100644 index 0000000000..6e8631fd7d --- /dev/null +++ b/docs/ModuleStatusValue.md @@ -0,0 +1,21 @@ +# ModuleStatusValue + +## Enum + + +* `OFFLINE` (value: `"offline"`) + +* `ACTIVE` (value: `"active"`) + +* `PLANNED` (value: `"planned"`) + +* `STAGED` (value: `"staged"`) + +* `FAILED` (value: `"failed"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleType.md b/docs/ModuleType.md index 2c09e327c6..c106f7fbbe 100644 --- a/docs/ModuleType.md +++ b/docs/ModuleType.md @@ -6,16 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeAirflow**](ModuleTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModuleType -`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType` +`func NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime, ) *ModuleType` NewModuleType instantiates a new ModuleType object This constructor will assign default values to properties that have it defined, @@ -70,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ModuleType) GetDisplay() string` @@ -92,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *ModuleType) GetManufacturer() Manufacturer` +`func (o *ModuleType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleType) SetManufacturer(v Manufacturer)` +`func (o *ModuleType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -130,6 +160,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleType) GetAirflow() ModuleTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleType) SetAirflow(v ModuleTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleType) GetDescription() string` @@ -155,6 +315,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ModuleType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ModuleType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ModuleType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ModuleType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ModuleType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ModuleType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ModuleType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ModuleType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ModuleType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ModuleTypeAirflow.md b/docs/ModuleTypeAirflow.md new file mode 100644 index 0000000000..2d957066bb --- /dev/null +++ b/docs/ModuleTypeAirflow.md @@ -0,0 +1,82 @@ +# ModuleTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] +**Label** | Pointer to [**ModuleTypeAirflowLabel**](ModuleTypeAirflowLabel.md) | | [optional] + +## Methods + +### NewModuleTypeAirflow + +`func NewModuleTypeAirflow() *ModuleTypeAirflow` + +NewModuleTypeAirflow instantiates a new ModuleTypeAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModuleTypeAirflowWithDefaults + +`func NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow` + +NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModuleTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleTypeAirflow) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleTypeAirflowLabel.md b/docs/ModuleTypeAirflowLabel.md new file mode 100644 index 0000000000..fc30c3c585 --- /dev/null +++ b/docs/ModuleTypeAirflowLabel.md @@ -0,0 +1,21 @@ +# ModuleTypeAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + +* `LEFT_TO_RIGHT` (value: `"Left to right"`) + +* `RIGHT_TO_LEFT` (value: `"Right to left"`) + +* `SIDE_TO_REAR` (value: `"Side to rear"`) + +* `PASSIVE` (value: `"Passive"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleTypeAirflowValue.md b/docs/ModuleTypeAirflowValue.md new file mode 100644 index 0000000000..4656d11972 --- /dev/null +++ b/docs/ModuleTypeAirflowValue.md @@ -0,0 +1,23 @@ +# ModuleTypeAirflowValue + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md index 53185cdf3a..ad422214ba 100644 --- a/docs/ModuleTypeRequest.md +++ b/docs/ModuleTypeRequest.md @@ -4,15 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleTypeRequest -`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest` +`func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *ModuleTypeRequest` NewModuleTypeRequest instantiates a new ModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -29,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -67,6 +74,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleTypeRequest) GetDescription() string` @@ -92,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleTypeRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ModuleTypeRequestAirflow.md b/docs/ModuleTypeRequestAirflow.md new file mode 100644 index 0000000000..25efc1b85d --- /dev/null +++ b/docs/ModuleTypeRequestAirflow.md @@ -0,0 +1,23 @@ +# ModuleTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedContactGroup.md b/docs/NestedContactGroup.md index 57a1c07f43..6778e5dee9 100644 --- a/docs/NestedContactGroup.md +++ b/docs/NestedContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedContactGroup -`func NewNestedContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedContactGroup` +`func NewNestedContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedContactGroup` NewNestedContactGroup instantiates a new NestedContactGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedContactGroup) GetDisplay() string` diff --git a/docs/NestedDevice.md b/docs/NestedDevice.md index ef9a0807e9..04b0049926 100644 --- a/docs/NestedDevice.md +++ b/docs/NestedDevice.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedDevice -`func NewNestedDevice(id int32, url string, display string, ) *NestedDevice` +`func NewNestedDevice(id int32, url string, displayUrl string, display string, ) *NestedDevice` NewNestedDevice instantiates a new NestedDevice object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedDevice) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedDevice) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedDevice) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedDevice) GetDisplay() string` diff --git a/docs/NestedGroup.md b/docs/NestedGroup.md index 2510f7a46f..9708bb72d3 100644 --- a/docs/NestedGroup.md +++ b/docs/NestedGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedGroup -`func NewNestedGroup(id int32, url string, display string, name string, ) *NestedGroup` +`func NewNestedGroup(id int32, url string, displayUrl string, display string, name string, ) *NestedGroup` NewNestedGroup instantiates a new NestedGroup object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedGroup) GetDisplay() string` diff --git a/docs/NestedIPAddress.md b/docs/NestedIPAddress.md new file mode 100644 index 0000000000..6f1cebf802 --- /dev/null +++ b/docs/NestedIPAddress.md @@ -0,0 +1,156 @@ +# NestedIPAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Family** | **int32** | | [readonly] +**Address** | **string** | | + +## Methods + +### NewNestedIPAddress + +`func NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string, ) *NestedIPAddress` + +NewNestedIPAddress instantiates a new NestedIPAddress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedIPAddressWithDefaults + +`func NewNestedIPAddressWithDefaults() *NestedIPAddress` + +NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedIPAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedIPAddress) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedIPAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedIPAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedIPAddress) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedIPAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedIPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedIPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedIPAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedIPAddress) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedIPAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *NestedIPAddress) GetFamily() int32` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *NestedIPAddress) GetFamilyOk() (*int32, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *NestedIPAddress) SetFamily(v int32)` + +SetFamily sets Family field to given value. + + +### GetAddress + +`func (o *NestedIPAddress) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddress) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddress) SetAddress(v string)` + +SetAddress sets Address field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedIPAddressRequest.md b/docs/NestedIPAddressRequest.md new file mode 100644 index 0000000000..731329f5bd --- /dev/null +++ b/docs/NestedIPAddressRequest.md @@ -0,0 +1,51 @@ +# NestedIPAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | + +## Methods + +### NewNestedIPAddressRequest + +`func NewNestedIPAddressRequest(address string, ) *NestedIPAddressRequest` + +NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedIPAddressRequestWithDefaults + +`func NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest` + +NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *NestedIPAddressRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddressRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedInterface.md b/docs/NestedInterface.md index f5bc6feec8..297c573b73 100644 --- a/docs/NestedInterface.md +++ b/docs/NestedInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Device** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Name** | **string** | | @@ -16,7 +17,7 @@ Name | Type | Description | Notes ### NewNestedInterface -`func NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` +`func NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` NewNestedInterface instantiates a new NestedInterface object This constructor will assign default values to properties that have it defined, @@ -71,6 +72,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedInterface) GetDisplay() string` diff --git a/docs/NestedLocation.md b/docs/NestedLocation.md new file mode 100644 index 0000000000..6c80b914ee --- /dev/null +++ b/docs/NestedLocation.md @@ -0,0 +1,177 @@ +# NestedLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedLocation + +`func NewNestedLocation(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedLocation` + +NewNestedLocation instantiates a new NestedLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedLocationWithDefaults + +`func NewNestedLocationWithDefaults() *NestedLocation` + +NewNestedLocationWithDefaults instantiates a new NestedLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedLocation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedLocation) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedLocation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedLocation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedLocation) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedLocation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedLocation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedLocation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedLocation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedLocation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedLocation) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedLocation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocation) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocation) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocation) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedLocation) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedLocation) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedLocation) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedLocation) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedLocationRequest.md b/docs/NestedLocationRequest.md new file mode 100644 index 0000000000..d3b0a011eb --- /dev/null +++ b/docs/NestedLocationRequest.md @@ -0,0 +1,72 @@ +# NestedLocationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | + +## Methods + +### NewNestedLocationRequest + +`func NewNestedLocationRequest(name string, slug string, ) *NestedLocationRequest` + +NewNestedLocationRequest instantiates a new NestedLocationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedLocationRequestWithDefaults + +`func NewNestedLocationRequestWithDefaults() *NestedLocationRequest` + +NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NestedLocationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedLocationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocationRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocationRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedLocationRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedModuleBay.md b/docs/NestedModuleBay.md index fd92789c2a..937d673d8a 100644 --- a/docs/NestedModuleBay.md +++ b/docs/NestedModuleBay.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional] **Name** | **string** | | ## Methods ### NewNestedModuleBay -`func NewNestedModuleBay(id int32, url string, display string, name string, ) *NestedModuleBay` +`func NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string, ) *NestedModuleBay` NewNestedModuleBay instantiates a new NestedModuleBay object This constructor will assign default values to properties that have it defined, @@ -69,61 +69,46 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplay +### GetDisplayUrl -`func (o *NestedModuleBay) GetDisplay() string` +`func (o *NestedModuleBay) GetDisplayUrl() string` -GetDisplay returns the Display field if non-nil, zero value otherwise. +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. -### GetDisplayOk +### GetDisplayUrlOk -`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` +`func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool)` -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplay +### SetDisplayUrl -`func (o *NestedModuleBay) SetDisplay(v string)` +`func (o *NestedModuleBay) SetDisplayUrl(v string)` -SetDisplay sets Display field to given value. +SetDisplayUrl sets DisplayUrl field to given value. -### GetInstalledModule +### GetDisplay -`func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule` +`func (o *NestedModuleBay) GetDisplay() string` -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. +GetDisplay returns the Display field if non-nil, zero value otherwise. -### GetInstalledModuleOk +### GetDisplayOk -`func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)` +`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetInstalledModule - -`func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBay) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil +### SetDisplay -`func (o *NestedModuleBay) SetInstalledModuleNil(b bool)` +`func (o *NestedModuleBay) SetDisplay(v string)` - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +SetDisplay sets Display field to given value. -### UnsetInstalledModule -`func (o *NestedModuleBay) UnsetInstalledModule()` -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBay) GetName() string` diff --git a/docs/NestedModuleBayRequest.md b/docs/NestedModuleBayRequest.md index e23d88b560..abf39c21c4 100644 --- a/docs/NestedModuleBayRequest.md +++ b/docs/NestedModuleBayRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional] **Name** | **string** | | ## Methods @@ -26,41 +25,6 @@ NewNestedModuleBayRequestWithDefaults instantiates a new NestedModuleBayRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetInstalledModule - -`func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest` - -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. - -### GetInstalledModuleOk - -`func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)` - -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule - -`func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBayRequest) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil - -`func (o *NestedModuleBayRequest) SetInstalledModuleNil(b bool)` - - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil - -### UnsetInstalledModule -`func (o *NestedModuleBayRequest) UnsetInstalledModule()` - -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBayRequest) GetName() string` diff --git a/docs/NestedProviderAccount.md b/docs/NestedProviderAccount.md new file mode 100644 index 0000000000..afec51cf4f --- /dev/null +++ b/docs/NestedProviderAccount.md @@ -0,0 +1,161 @@ +# NestedProviderAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **string** | | [optional] +**Account** | **string** | | + +## Methods + +### NewNestedProviderAccount + +`func NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string, ) *NestedProviderAccount` + +NewNestedProviderAccount instantiates a new NestedProviderAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedProviderAccountWithDefaults + +`func NewNestedProviderAccountWithDefaults() *NestedProviderAccount` + +NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedProviderAccount) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedProviderAccount) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedProviderAccount) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedProviderAccount) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedProviderAccount) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedProviderAccount) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedProviderAccount) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedProviderAccount) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedProviderAccount) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedProviderAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedProviderAccount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedProviderAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *NestedProviderAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *NestedProviderAccount) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *NestedProviderAccount) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *NestedProviderAccount) SetAccount(v string)` + +SetAccount sets Account field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedRegion.md b/docs/NestedRegion.md index eb6f37ed61..54e2205b33 100644 --- a/docs/NestedRegion.md +++ b/docs/NestedRegion.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedRegion -`func NewNestedRegion(id int32, url string, display string, name string, slug string, depth int32, ) *NestedRegion` +`func NewNestedRegion(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedRegion` NewNestedRegion instantiates a new NestedRegion object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedRegion) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedRegion) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedRegion) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedRegion) GetDisplay() string` diff --git a/docs/NestedSiteGroup.md b/docs/NestedSiteGroup.md index 0dd67ab6dd..02f2632db5 100644 --- a/docs/NestedSiteGroup.md +++ b/docs/NestedSiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedSiteGroup -`func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` +`func NewNestedSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` NewNestedSiteGroup instantiates a new NestedSiteGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedSiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedSiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedSiteGroup) GetDisplay() string` diff --git a/docs/NestedTag.md b/docs/NestedTag.md index f87362fdc0..69ab5ce088 100644 --- a/docs/NestedTag.md +++ b/docs/NestedTag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedTag -`func NewNestedTag(id int32, url string, display string, name string, slug string, ) *NestedTag` +`func NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string, ) *NestedTag` NewNestedTag instantiates a new NestedTag object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedTag) GetDisplay() string` diff --git a/docs/NestedTenantGroup.md b/docs/NestedTenantGroup.md index 3acbe4a236..49035b582e 100644 --- a/docs/NestedTenantGroup.md +++ b/docs/NestedTenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedTenantGroup -`func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` +`func NewNestedTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` NewNestedTenantGroup instantiates a new NestedTenantGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedTenantGroup) GetDisplay() string` diff --git a/docs/NestedUser.md b/docs/NestedUser.md index f4d0be09f4..adfe8b9c31 100644 --- a/docs/NestedUser.md +++ b/docs/NestedUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedUser -`func NewNestedUser(id int32, url string, display string, username string, ) *NestedUser` +`func NewNestedUser(id int32, url string, displayUrl string, display string, username string, ) *NestedUser` NewNestedUser instantiates a new NestedUser object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedUser) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedUser) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedUser) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedUser) GetDisplay() string` diff --git a/docs/NestedVMInterface.md b/docs/NestedVMInterface.md index bdc94d495c..8fcc143e83 100644 --- a/docs/NestedVMInterface.md +++ b/docs/NestedVMInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | | [readonly] **Name** | **string** | | @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedVMInterface -`func NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` +`func NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` NewNestedVMInterface instantiates a new NestedVMInterface object This constructor will assign default values to properties that have it defined, @@ -69,6 +70,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedVMInterface) GetDisplay() string` diff --git a/docs/NestedVirtualMachine.md b/docs/NestedVirtualMachine.md index 95a5a65aa9..34103ae89c 100644 --- a/docs/NestedVirtualMachine.md +++ b/docs/NestedVirtualMachine.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedVirtualMachine -`func NewNestedVirtualMachine(id int32, url string, display string, name string, ) *NestedVirtualMachine` +`func NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string, ) *NestedVirtualMachine` NewNestedVirtualMachine instantiates a new NestedVirtualMachine object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVirtualMachine) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVirtualMachine) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedVirtualMachine) GetDisplay() string` diff --git a/docs/NestedWirelessLANGroup.md b/docs/NestedWirelessLANGroup.md new file mode 100644 index 0000000000..134d928600 --- /dev/null +++ b/docs/NestedWirelessLANGroup.md @@ -0,0 +1,177 @@ +# NestedWirelessLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedWirelessLANGroup + +`func NewNestedWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` + +NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedWirelessLANGroupWithDefaults + +`func NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup` + +NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedWirelessLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedWirelessLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedWirelessLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedWirelessLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedWirelessLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedWirelessLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedWirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedWirelessLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedWirelessLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedWirelessLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedWirelessLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedWirelessLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedWirelessLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedWirelessLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedWirelessLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedWirelessLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedWirelessLANGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedWirelessLANGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedWirelessLink.md b/docs/NestedWirelessLink.md index 3eeb8edced..758992c489 100644 --- a/docs/NestedWirelessLink.md +++ b/docs/NestedWirelessLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | Pointer to **string** | | [optional] @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedWirelessLink -`func NewNestedWirelessLink(id int32, url string, display string, ) *NestedWirelessLink` +`func NewNestedWirelessLink(id int32, url string, displayUrl string, display string, ) *NestedWirelessLink` NewNestedWirelessLink instantiates a new NestedWirelessLink object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedWirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedWirelessLink) GetDisplay() string` diff --git a/docs/Notification.md b/docs/Notification.md new file mode 100644 index 0000000000..d50dad23ae --- /dev/null +++ b/docs/Notification.md @@ -0,0 +1,265 @@ +# Notification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | **interface{}** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | **time.Time** | | [readonly] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotification + +`func NewNotification(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, eventType Event, ) *Notification` + +NewNotification instantiates a new Notification object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationWithDefaults + +`func NewNotificationWithDefaults() *Notification` + +NewNotificationWithDefaults instantiates a new Notification object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Notification) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Notification) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Notification) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Notification) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Notification) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Notification) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Notification) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Notification) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *Notification) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Notification) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Notification) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *Notification) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Notification) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Notification) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *Notification) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Notification) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Notification) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Notification) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *Notification) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Notification) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Notification) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Notification) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *Notification) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Notification) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Notification) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Notification) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetRead + +`func (o *Notification) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *Notification) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *Notification) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *Notification) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *Notification) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *Notification) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *Notification) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *Notification) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *Notification) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotificationGroup.md b/docs/NotificationGroup.md new file mode 100644 index 0000000000..92fa98a5a5 --- /dev/null +++ b/docs/NotificationGroup.md @@ -0,0 +1,213 @@ +# NotificationGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Users** | Pointer to [**[]User**](User.md) | | [optional] + +## Methods + +### NewNotificationGroup + +`func NewNotificationGroup(id int32, url string, display string, displayUrl string, name string, ) *NotificationGroup` + +NewNotificationGroup instantiates a new NotificationGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationGroupWithDefaults + +`func NewNotificationGroupWithDefaults() *NotificationGroup` + +NewNotificationGroupWithDefaults instantiates a new NotificationGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NotificationGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NotificationGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NotificationGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NotificationGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NotificationGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NotificationGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NotificationGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NotificationGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NotificationGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDisplayUrl + +`func (o *NotificationGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NotificationGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetName + +`func (o *NotificationGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NotificationGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *NotificationGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroup) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroup) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroup) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroup) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroup) GetUsers() []User` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroup) GetUsersOk() (*[]User, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroup) SetUsers(v []User)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroup) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotificationGroupRequest.md b/docs/NotificationGroupRequest.md new file mode 100644 index 0000000000..0d437c2e10 --- /dev/null +++ b/docs/NotificationGroupRequest.md @@ -0,0 +1,129 @@ +# NotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewNotificationGroupRequest + +`func NewNotificationGroupRequest(name string, ) *NotificationGroupRequest` + +NewNotificationGroupRequest instantiates a new NotificationGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationGroupRequestWithDefaults + +`func NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest` + +NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *NotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroupRequest) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotificationRequest.md b/docs/NotificationRequest.md new file mode 100644 index 0000000000..9524f70d17 --- /dev/null +++ b/docs/NotificationRequest.md @@ -0,0 +1,150 @@ +# NotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotificationRequest + +`func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event, ) *NotificationRequest` + +NewNotificationRequest instantiates a new NotificationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationRequestWithDefaults + +`func NewNotificationRequestWithDefaults() *NotificationRequest` + +NewNotificationRequestWithDefaults instantiates a new NotificationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *NotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *NotificationRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *NotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *NotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *NotificationRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *NotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *NotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *NotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + + +### GetRead + +`func (o *NotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *NotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *NotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *NotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *NotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *NotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *NotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *NotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *NotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ObjectChange.md b/docs/ObjectChange.md index 574ef3fe50..95db4d90f5 100644 --- a/docs/ObjectChange.md +++ b/docs/ObjectChange.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Time** | **time.Time** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **UserName** | **string** | | [readonly] **RequestId** | **string** | | [readonly] **Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewObjectChange -`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` +`func NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` NewObjectChange instantiates a new ObjectChange object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectChange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectChange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectChange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ObjectChange) GetDisplay() string` @@ -119,20 +140,20 @@ SetTime sets Time field to given value. ### GetUser -`func (o *ObjectChange) GetUser() User` +`func (o *ObjectChange) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *ObjectChange) GetUserOk() (*User, bool)` +`func (o *ObjectChange) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *ObjectChange) SetUser(v User)` +`func (o *ObjectChange) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md index fec4199e46..87f7cf00ef 100644 --- a/docs/ObjectPermission.md +++ b/docs/ObjectPermission.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewObjectPermission -`func NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` +`func NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` NewObjectPermission instantiates a new ObjectPermission object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectPermission) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectPermission) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ObjectPermission) GetDisplay() string` diff --git a/docs/PaginatedCircuitGroupAssignmentList.md b/docs/PaginatedCircuitGroupAssignmentList.md new file mode 100644 index 0000000000..cc8cc812c7 --- /dev/null +++ b/docs/PaginatedCircuitGroupAssignmentList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupAssignmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) | | + +## Methods + +### NewPaginatedCircuitGroupAssignmentList + +`func NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment, ) *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCircuitGroupAssignmentListWithDefaults + +`func NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedCircuitGroupAssignmentList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedCircuitGroupAssignmentList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupAssignmentList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupAssignmentList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() (*[]CircuitGroupAssignment, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedCircuitGroupList.md b/docs/PaginatedCircuitGroupList.md new file mode 100644 index 0000000000..943619ff52 --- /dev/null +++ b/docs/PaginatedCircuitGroupList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroup**](CircuitGroup.md) | | + +## Methods + +### NewPaginatedCircuitGroupList + +`func NewPaginatedCircuitGroupList(count int32, results []CircuitGroup, ) *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCircuitGroupListWithDefaults + +`func NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedCircuitGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedCircuitGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedCircuitGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedCircuitGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupList) GetResultsOk() (*[]CircuitGroup, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedNotificationGroupList.md b/docs/PaginatedNotificationGroupList.md new file mode 100644 index 0000000000..d183730282 --- /dev/null +++ b/docs/PaginatedNotificationGroupList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]NotificationGroup**](NotificationGroup.md) | | + +## Methods + +### NewPaginatedNotificationGroupList + +`func NewPaginatedNotificationGroupList(count int32, results []NotificationGroup, ) *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedNotificationGroupListWithDefaults + +`func NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedNotificationGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationGroupList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedNotificationGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationGroupList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedNotificationGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationGroupList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedNotificationGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationGroupList) GetResultsOk() (*[]NotificationGroup, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedNotificationList.md b/docs/PaginatedNotificationList.md new file mode 100644 index 0000000000..2baadd8328 --- /dev/null +++ b/docs/PaginatedNotificationList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Notification**](Notification.md) | | + +## Methods + +### NewPaginatedNotificationList + +`func NewPaginatedNotificationList(count int32, results []Notification, ) *PaginatedNotificationList` + +NewPaginatedNotificationList instantiates a new PaginatedNotificationList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedNotificationListWithDefaults + +`func NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList` + +NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedNotificationList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedNotificationList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedNotificationList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedNotificationList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationList) GetResults() []Notification` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationList) GetResultsOk() (*[]Notification, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedNotificationList) SetResults(v []Notification)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedRackTypeList.md b/docs/PaginatedRackTypeList.md new file mode 100644 index 0000000000..bb3f5780a2 --- /dev/null +++ b/docs/PaginatedRackTypeList.md @@ -0,0 +1,144 @@ +# PaginatedRackTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]RackType**](RackType.md) | | + +## Methods + +### NewPaginatedRackTypeList + +`func NewPaginatedRackTypeList(count int32, results []RackType, ) *PaginatedRackTypeList` + +NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedRackTypeListWithDefaults + +`func NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList` + +NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedRackTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedRackTypeList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedRackTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedRackTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedRackTypeList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedRackTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedRackTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedRackTypeList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedRackTypeList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedRackTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedRackTypeList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedRackTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedRackTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedRackTypeList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedRackTypeList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedRackTypeList) GetResults() []RackType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedRackTypeList) GetResultsOk() (*[]RackType, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedRackTypeList) SetResults(v []RackType)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedSubscriptionList.md b/docs/PaginatedSubscriptionList.md new file mode 100644 index 0000000000..f8dc4ddaab --- /dev/null +++ b/docs/PaginatedSubscriptionList.md @@ -0,0 +1,144 @@ +# PaginatedSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Subscription**](Subscription.md) | | + +## Methods + +### NewPaginatedSubscriptionList + +`func NewPaginatedSubscriptionList(count int32, results []Subscription, ) *PaginatedSubscriptionList` + +NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedSubscriptionListWithDefaults + +`func NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList` + +NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedSubscriptionList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedSubscriptionList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedSubscriptionList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedSubscriptionList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedSubscriptionList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedSubscriptionList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedSubscriptionList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedSubscriptionList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedSubscriptionList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedSubscriptionList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedSubscriptionList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedSubscriptionList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedSubscriptionList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedSubscriptionList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedSubscriptionList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedSubscriptionList) GetResults() []Subscription` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedSubscriptionList) GetResultsOk() (*[]Subscription, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedSubscriptionList) SetResults(v []Subscription)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedASNRangeRequest.md b/docs/PatchedASNRangeRequest.md index a777fc11f7..235fbbe6c5 100644 --- a/docs/PatchedASNRangeRequest.md +++ b/docs/PatchedASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] **Start** | Pointer to **int64** | | [optional] **End** | Pointer to **int64** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -85,20 +85,20 @@ HasSlug returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRangeRequest) GetRir() RIRRequest` +`func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -160,20 +160,20 @@ HasEnd returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedASNRequest.md b/docs/PatchedASNRequest.md index 4df3e7c67d..498a458665 100644 --- a/docs/PatchedASNRequest.md +++ b/docs/PatchedASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional] -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -58,20 +58,20 @@ HasAsn returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRequest) GetRir() RIRRequest` +`func (o *PatchedASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -93,20 +93,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *PatchedASNRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedBookmarkRequest.md b/docs/PatchedBookmarkRequest.md index 344f1ee74c..b82fd2d84a 100644 --- a/docs/PatchedBookmarkRequest.md +++ b/docs/PatchedBookmarkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasObjectId returns a boolean if a field has been set. ### GetUser -`func (o *PatchedBookmarkRequest) GetUser() UserRequest` +`func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedBookmarkRequest) SetUser(v UserRequest)` +`func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedCircuitGroupRequest.md b/docs/PatchedCircuitGroupRequest.md new file mode 100644 index 0000000000..7ffbd24038 --- /dev/null +++ b/docs/PatchedCircuitGroupRequest.md @@ -0,0 +1,196 @@ +# PatchedCircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedCircuitGroupRequest + +`func NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedCircuitGroupRequestWithDefaults + +`func NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedCircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedCircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedCircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedCircuitGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedCircuitGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedCircuitGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *PatchedCircuitGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedCircuitGroupRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedCircuitGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedCircuitGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedCircuitGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedCircuitGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedCircuitGroupRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedCircuitGroupRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedCircuitGroupRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *PatchedCircuitGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedCircuitGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedCircuitGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedCircuitGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedCircuitGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedCircuitGroupRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md index 1785e201e3..28bdc580ba 100644 --- a/docs/PatchedCircuitTerminationRequest.md +++ b/docs/PatchedCircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | Pointer to [**CircuitRequest**](CircuitRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] **TermSide** | Pointer to [**Termination1**](Termination1.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -88,20 +88,20 @@ HasTermSide returns a boolean if a field has been set. ### GetSite -`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest` +`func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -123,20 +123,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/PatchedConfigContextRequest.md b/docs/PatchedConfigContextRequest.md index c4a77f8872..5162d6aca2 100644 --- a/docs/PatchedConfigContextRequest.md +++ b/docs/PatchedConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | Pointer to **interface{}** | | [optional] ## Methods @@ -470,20 +470,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md index c9b1475925..37005f0125 100644 --- a/docs/PatchedConfigTemplateRequest.md +++ b/docs/PatchedConfigTemplateRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] **TemplateCode** | Pointer to **string** | Jinja2 template code. | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -142,20 +142,20 @@ HasTemplateCode returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedContactRequest.md b/docs/PatchedContactRequest.md index d1ad6719e2..042bee7750 100644 --- a/docs/PatchedContactRequest.md +++ b/docs/PatchedContactRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Title** | Pointer to **string** | | [optional] **Phone** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest` +`func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool)` +`func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)` +`func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md index bf25fd2a40..9df288606a 100644 --- a/docs/PatchedDeviceBayRequest.md +++ b/docs/PatchedDeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -133,20 +133,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/PatchedDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md index 5ba265ed2b..dc8920d73c 100644 --- a/docs/PatchedDeviceBayTemplateRequest.md +++ b/docs/PatchedDeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/PatchedDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md index 19824a38b8..f66bc8e9f6 100644 --- a/docs/PatchedDeviceRoleRequest.md +++ b/docs/PatchedDeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -134,20 +134,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md index 0a424e1f2a..2195f5d070 100644 --- a/docs/PatchedExportTemplateRequest.md +++ b/docs/PatchedExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -209,20 +209,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md index 4e987d7522..94ee184e36 100644 --- a/docs/PatchedFHRPGroupAssignmentRequest.md +++ b/docs/PatchedFHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional] +**Group** | Pointer to [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | [optional] **InterfaceType** | Pointer to **string** | | [optional] **InterfaceId** | Pointer to **int64** | | [optional] **Priority** | Pointer to **int32** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md index b1e63b0ca4..b708c64857 100644 --- a/docs/PatchedFHRPGroupRequest.md +++ b/docs/PatchedFHRPGroupRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional] +**Protocol** | Pointer to [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | [optional] **GroupId** | Pointer to **int32** | | [optional] **AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] **AuthKey** | Pointer to **string** | | [optional] @@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set. ### GetProtocol -`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. diff --git a/docs/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md index de2766af0c..fd6d6db096 100644 --- a/docs/PatchedImageAttachmentRequest.md +++ b/docs/PatchedImageAttachmentRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **ObjectId** | Pointer to **int64** | | [optional] **Name** | Pointer to **string** | | [optional] **Image** | Pointer to ***os.File** | | [optional] -**ImageHeight** | Pointer to **int32** | | [optional] -**ImageWidth** | Pointer to **int32** | | [optional] ## Methods @@ -130,56 +128,6 @@ SetImage sets Image field to given value. HasImage returns a boolean if a field has been set. -### GetImageHeight - -`func (o *PatchedImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - -### HasImageHeight - -`func (o *PatchedImageAttachmentRequest) HasImageHeight() bool` - -HasImageHeight returns a boolean if a field has been set. - -### GetImageWidth - -`func (o *PatchedImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - -### HasImageWidth - -`func (o *PatchedImageAttachmentRequest) HasImageWidth() bool` - -HasImageWidth returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedInventoryItemRequest.md b/docs/PatchedInventoryItemRequest.md index 29a3617b6e..15eb808cc9 100644 --- a/docs/PatchedInventoryItemRequest.md +++ b/docs/PatchedInventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest` +`func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -151,20 +151,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -186,20 +186,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md index 8bc9025d49..7be75bce81 100644 --- a/docs/PatchedInventoryItemTemplateRequest.md +++ b/docs/PatchedInventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -181,20 +181,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md index 52faa0e937..4027c8f8ff 100644 --- a/docs/PatchedL2VPNTerminationRequest.md +++ b/docs/PatchedL2VPNTerminationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional] +**L2vpn** | Pointer to [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | [optional] **AssignedObjectType** | Pointer to **string** | | [optional] **AssignedObjectId** | Pointer to **int64** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. diff --git a/docs/PatchedModuleBayRequest.md b/docs/PatchedModuleBayRequest.md index 57abae4fcc..9a04dd1db8 100644 --- a/docs/PatchedModuleBayRequest.md +++ b/docs/PatchedModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -57,6 +58,41 @@ SetDevice sets Device field to given value. HasDevice returns a boolean if a field has been set. +### GetModule + +`func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PatchedModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PatchedModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PatchedModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PatchedModuleBayRequest) GetName() string` @@ -84,20 +120,20 @@ HasName returns a boolean if a field has been set. ### GetInstalledModule -`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/PatchedModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md index afa822d29c..faa58b18a8 100644 --- a/docs/PatchedModuleBayTemplateRequest.md +++ b/docs/PatchedModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -54,6 +55,51 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. +### SetDeviceTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PatchedModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PatchedModuleBayTemplateRequest) GetName() string` diff --git a/docs/PatchedNotificationGroupRequest.md b/docs/PatchedNotificationGroupRequest.md new file mode 100644 index 0000000000..03c1aaab9b --- /dev/null +++ b/docs/PatchedNotificationGroupRequest.md @@ -0,0 +1,134 @@ +# PatchedNotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewPatchedNotificationGroupRequest + +`func NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedNotificationGroupRequestWithDefaults + +`func NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedNotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedNotificationGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedNotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedNotificationGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedNotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedNotificationGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedNotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedNotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *PatchedNotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *PatchedNotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *PatchedNotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *PatchedNotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *PatchedNotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PatchedNotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PatchedNotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *PatchedNotificationGroupRequest) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedNotificationRequest.md b/docs/PatchedNotificationRequest.md new file mode 100644 index 0000000000..7c30c9ee52 --- /dev/null +++ b/docs/PatchedNotificationRequest.md @@ -0,0 +1,170 @@ +# PatchedNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | Pointer to [**Event**](Event.md) | | [optional] + +## Methods + +### NewPatchedNotificationRequest + +`func NewPatchedNotificationRequest() *PatchedNotificationRequest` + +NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedNotificationRequestWithDefaults + +`func NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest` + +NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *PatchedNotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedNotificationRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *PatchedNotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedNotificationRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedNotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedNotificationRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *PatchedNotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedNotificationRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedNotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedNotificationRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetRead + +`func (o *PatchedNotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *PatchedNotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *PatchedNotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *PatchedNotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *PatchedNotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *PatchedNotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *PatchedNotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *PatchedNotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + +### HasEventType + +`func (o *PatchedNotificationRequest) HasEventType() bool` + +HasEventType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedPlatformRequest.md b/docs/PatchedPlatformRequest.md index 8c681c6587..a45b87ba44 100644 --- a/docs/PatchedPlatformRequest.md +++ b/docs/PatchedPlatformRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetManufacturer -`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -118,20 +118,20 @@ HasManufacturer returns a boolean if a field has been set. UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetConfigTemplate -`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedPowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md index 1f2bda37d8..832203743a 100644 --- a/docs/PatchedPowerPanelRequest.md +++ b/docs/PatchedPowerPanelRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest` +`func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)` +`func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -58,20 +58,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest` +`func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)` +`func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. diff --git a/docs/PatchedProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md index e4f8fd72e4..8dcbb884ec 100644 --- a/docs/PatchedProviderAccountRequest.md +++ b/docs/PatchedProviderAccountRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md index 71345eb121..9bc9624e3b 100644 --- a/docs/PatchedProviderNetworkRequest.md +++ b/docs/PatchedProviderNetworkRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedRackReservationRequest.md b/docs/PatchedRackReservationRequest.md index 5347665db9..0b0b9d3343 100644 --- a/docs/PatchedRackReservationRequest.md +++ b/docs/PatchedRackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional] +**Rack** | Pointer to [**BriefRackRequest**](BriefRackRequest.md) | | [optional] **Units** | Pointer to **[]int32** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *PatchedRackReservationRequest) GetRack() RackRequest` +`func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)` +`func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -84,20 +84,20 @@ HasUnits returns a boolean if a field has been set. ### GetUser -`func (o *PatchedRackReservationRequest) GetUser() UserRequest` +`func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedRackReservationRequest) SetUser(v UserRequest)` +`func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. @@ -109,20 +109,20 @@ HasUser returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest` +`func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md index a08f52e557..95629a647a 100644 --- a/docs/PatchedRouteTargetRequest.md +++ b/docs/PatchedRouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -57,20 +57,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` +`func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedScriptInputRequest.md b/docs/PatchedScriptInputRequest.md new file mode 100644 index 0000000000..babb8fad70 --- /dev/null +++ b/docs/PatchedScriptInputRequest.md @@ -0,0 +1,164 @@ +# PatchedScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] +**Commit** | Pointer to **bool** | | [optional] +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPatchedScriptInputRequest + +`func NewPatchedScriptInputRequest() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedScriptInputRequestWithDefaults + +`func NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PatchedScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PatchedScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PatchedScriptInputRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *PatchedScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *PatchedScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *PatchedScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *PatchedScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + +### HasCommit + +`func (o *PatchedScriptInputRequest) HasCommit() bool` + +HasCommit returns a boolean if a field has been set. + +### GetScheduleAt + +`func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *PatchedScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *PatchedScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *PatchedScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *PatchedScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *PatchedScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *PatchedScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *PatchedScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *PatchedScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedSubscriptionRequest.md b/docs/PatchedSubscriptionRequest.md new file mode 100644 index 0000000000..28601b30f9 --- /dev/null +++ b/docs/PatchedSubscriptionRequest.md @@ -0,0 +1,108 @@ +# PatchedSubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] + +## Methods + +### NewPatchedSubscriptionRequest + +`func NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedSubscriptionRequestWithDefaults + +`func NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *PatchedSubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedSubscriptionRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *PatchedSubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedSubscriptionRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedSubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedSubscriptionRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *PatchedSubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedSubscriptionRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedSubscriptionRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedTenantRequest.md b/docs/PatchedTenantRequest.md index 660e888105..a4b3b23b06 100644 --- a/docs/PatchedTenantRequest.md +++ b/docs/PatchedTenantRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest` +`func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool)` +`func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)` +`func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedTokenRequest.md b/docs/PatchedTokenRequest.md index a62dfd87e8..8d27c1785a 100644 --- a/docs/PatchedTokenRequest.md +++ b/docs/PatchedTokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *PatchedTokenRequest) GetUser() UserRequest` +`func (o *PatchedTokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedTokenRequest) SetUser(v UserRequest)` +`func (o *PatchedTokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedVLANGroupRequest.md b/docs/PatchedVLANGroupRequest.md index 9847c46b3d..c9b9b4b28f 100644 --- a/docs/PatchedVLANGroupRequest.md +++ b/docs/PatchedVLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -153,56 +151,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *PatchedVLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *PatchedVLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *PatchedVLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *PatchedVLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *PatchedVLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *PatchedVLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *PatchedVLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedVLANGroupRequest) GetDescription() string` diff --git a/docs/PatchedVRFRequest.md b/docs/PatchedVRFRequest.md index 5c927e21cf..5b3fbced69 100644 --- a/docs/PatchedVRFRequest.md +++ b/docs/PatchedVRFRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -96,20 +96,20 @@ HasRd returns a boolean if a field has been set. UnsetRd ensures that no value is present for Rd, not even an explicit nil ### GetTenant -`func (o *PatchedVRFRequest) GetTenant() TenantRequest` +`func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedVRFRequest) SetTenant(v TenantRequest)` +`func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md index f8b0d3d48e..1a7dd3c340 100644 --- a/docs/PatchedVirtualDiskRequest.md +++ b/docs/PatchedVirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Size** | Pointer to **int32** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md index 41ef048227..3278caefcf 100644 --- a/docs/PatchedWritableAggregateRequest.md +++ b/docs/PatchedWritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set. ### GetRir -`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` +`func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -84,20 +84,20 @@ HasRir returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md index 431b4945f3..f01965e688 100644 --- a/docs/PatchedWritableCableRequest.md +++ b/docs/PatchedWritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *PatchedWritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *PatchedWritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/PatchedWritableCircuitGroupAssignmentRequest.md b/docs/PatchedWritableCircuitGroupAssignmentRequest.md new file mode 100644 index 0000000000..9068273d59 --- /dev/null +++ b/docs/PatchedWritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,134 @@ +# PatchedWritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewPatchedWritableCircuitGroupAssignmentRequest + +`func NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + +### HasCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasCircuit() bool` + +HasCircuit returns a boolean if a field has been set. + +### GetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md index 90bca5029f..7f012b64f0 100644 --- a/docs/PatchedWritableCircuitRequest.md +++ b/docs/PatchedWritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | Pointer to **string** | Unique circuit ID | [optional] -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | Pointer to [**CircuitTypeRequest**](CircuitTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods @@ -64,20 +65,20 @@ HasCid returns a boolean if a field has been set. ### GetProvider -`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. @@ -89,20 +90,20 @@ HasProvider returns a boolean if a field has been set. ### GetProviderAccount -`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -124,20 +125,20 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. @@ -149,20 +150,20 @@ HasType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -174,20 +175,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -412,6 +413,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *PatchedWritableCircuitRequest) HasAssignments() bool` + +HasAssignments returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md index 18ee4fc620..0e1f19b931 100644 --- a/docs/PatchedWritableClusterRequest.md +++ b/docs/PatchedWritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ClusterTypeRequest**](ClusterTypeRequest.md) | | [optional] -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | Pointer to [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -61,20 +61,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. @@ -86,20 +86,20 @@ HasType returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -121,20 +121,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -146,20 +146,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -181,20 +181,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest` +`func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md index 52a08ee909..1b5ea9f2d8 100644 --- a/docs/PatchedWritableConsolePortRequest.md +++ b/docs/PatchedWritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index d9dbf04aa4..8540149355 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md index 05b70f9d54..b2b57e24c8 100644 --- a/docs/PatchedWritableConsoleServerPortRequest.md +++ b/docs/PatchedWritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index ef7c3aa0ee..b8326fbb5c 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index e2b7dc360c..791ef18446 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | Pointer to [**BriefContactRequest**](BriefContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set. ### GetContact -`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. @@ -108,20 +108,20 @@ HasContact returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -143,20 +143,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 21645eb48d..036786d586 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -254,6 +256,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *PatchedWritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *PatchedWritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32` @@ -414,6 +441,41 @@ HasDefault returns a boolean if a field has been set. `func (o *PatchedWritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *PatchedWritableCustomFieldRequest) GetWeight() int32` @@ -536,20 +598,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md index 89182786d9..144dda6f37 100644 --- a/docs/PatchedWritableDataSourceRequest.md +++ b/docs/PatchedWritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -158,31 +158,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PatchedWritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PatchedWritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}` @@ -243,6 +218,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *PatchedWritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md index 330f80fe3e..6175c121ac 100644 --- a/docs/PatchedWritableDeviceTypeRequest.md +++ b/docs/PatchedWritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -44,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -69,20 +69,20 @@ HasManufacturer returns a boolean if a field has been set. ### GetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -339,20 +339,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index 2d049b1033..e460e87966 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**Role** | Pointer to [**DeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**RackFace1**](RackFace1.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -90,20 +90,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -115,20 +115,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -140,20 +140,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -175,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -270,20 +270,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -295,20 +295,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -330,20 +330,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -545,20 +545,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -580,20 +580,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -615,20 +615,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -650,20 +650,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -685,20 +685,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -840,20 +840,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md index b1539fb42e..eced560e58 100644 --- a/docs/PatchedWritableEventRuleRequest.md +++ b/docs/PatchedWritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | Pointer to **[]string** | | [optional] **Name** | Pointer to **string** | | [optional] -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | Pointer to [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | [optional] **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | Pointer to **string** | | [optional] @@ -89,155 +85,55 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd +### GetEnabled -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. +GetEnabled returns the Enabled field if non-nil, zero value otherwise. -### GetTypeJobEndOk +### GetEnabledOk -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTypeJobEnd +### SetEnabled -`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` -SetTypeJobEnd sets TypeJobEnd field to given value. +SetEnabled sets Enabled field to given value. -### HasTypeJobEnd +### HasEnabled -`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` -HasTypeJobEnd returns a boolean if a field has been set. +HasEnabled returns a boolean if a field has been set. -### GetEnabled +### GetEventTypes -`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` -GetEnabled returns the Enabled field if non-nil, zero value otherwise. +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. -### GetEnabledOk +### GetEventTypesOk -`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabled +### SetEventTypes -`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` -SetEnabled sets Enabled field to given value. +SetEventTypes sets EventTypes field to given value. -### HasEnabled +### HasEventTypes -`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool` -HasEnabled returns a boolean if a field has been set. +HasEventTypes returns a boolean if a field has been set. ### GetConditions diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md index 1ad15f568d..83f7b749b5 100644 --- a/docs/PatchedWritableFrontPortRequest.md +++ b/docs/PatchedWritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -63,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 2b26765814..79b85c9058 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] -**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional] +**RearPort** | Pointer to [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | [optional] **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -205,20 +205,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md index 283f8e6e42..49191ed363 100644 --- a/docs/PatchedWritableIPAddressRequest.md +++ b/docs/PatchedWritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -99,20 +99,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md index f38f938337..3179cd2c06 100644 --- a/docs/PatchedWritableIPRangeRequest.md +++ b/docs/PatchedWritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | Pointer to **string** | | [optional] **EndAddress** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -87,20 +87,20 @@ HasEndAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -122,20 +122,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -182,20 +182,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest` +`func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md index 8692a34abc..8cb953b36d 100644 --- a/docs/PatchedWritableIPSecProfileRequest.md +++ b/docs/PatchedWritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] -**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional] -**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | [optional] +**IkePolicy** | Pointer to [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | [optional] +**IpsecPolicy** | Pointer to [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -109,20 +109,20 @@ HasMode returns a boolean if a field has been set. ### GetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. @@ -134,20 +134,20 @@ HasIkePolicy returns a boolean if a field has been set. ### GetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index be3d47b6da..b80cdd3d02 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -108,20 +108,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -803,20 +803,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -913,20 +913,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index dce5b9c25e..37a2b39736 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md index 27aad448fc..f149765a22 100644 --- a/docs/PatchedWritableL2VPNRequest.md +++ b/docs/PatchedWritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md index acc3b3ce7e..cb0dab0cb8 100644 --- a/docs/PatchedWritableLocationRequest.md +++ b/docs/PatchedWritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -86,20 +86,20 @@ HasSlug returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest` +`func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -146,20 +146,20 @@ HasParent returns a boolean if a field has been set. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -171,20 +171,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md index e5788f6e4e..044d52a7b2 100644 --- a/docs/PatchedWritableModuleRequest.md +++ b/docs/PatchedWritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **ModuleBay** | Pointer to **int32** | | [optional] -**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | Pointer to [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -86,20 +86,20 @@ HasModuleBay returns a boolean if a field has been set. ### GetModuleType -`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md index 179b6c6826..298b838d07 100644 --- a/docs/PatchedWritableModuleTypeRequest.md +++ b/docs/PatchedWritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -108,6 +109,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *PatchedWritableModuleTypeRequest) GetWeight() float64` @@ -145,20 +171,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index cc35f75bc0..5a59507742 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | Pointer to [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. @@ -67,20 +67,20 @@ HasPowerPanel returns a boolean if a field has been set. ### GetRack -`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest` +`func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -352,20 +352,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md index eb1ac8177a..e32eb4ef3b 100644 --- a/docs/PatchedWritablePowerOutletRequest.md +++ b/docs/PatchedWritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md index f76400db64..7023694498 100644 --- a/docs/PatchedWritablePowerOutletRequestType.md +++ b/docs/PatchedWritablePowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 42e796ccf8..083418fb7d 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -179,20 +179,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md index e1e5a0cbc4..e607de63fd 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequestType.md +++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md index 197374b544..50ac83cae6 100644 --- a/docs/PatchedWritablePowerPortRequest.md +++ b/docs/PatchedWritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md index 0b2b85bc40..ec314c4710 100644 --- a/docs/PatchedWritablePowerPortRequestType.md +++ b/docs/PatchedWritablePowerPortRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index 1b737c2aa6..a6282b6992 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md index a6fc8d0bf6..296570b725 100644 --- a/docs/PatchedWritablePowerPortTemplateRequestType.md +++ b/docs/PatchedWritablePowerPortTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md index 91217763d8..11ecea4d77 100644 --- a/docs/PatchedWritablePrefixRequest.md +++ b/docs/PatchedWritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -64,20 +64,20 @@ HasPrefix returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest` +`func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -99,20 +99,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest` +`func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -134,20 +134,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -169,20 +169,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest` +`func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -229,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest` +`func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index ee517e47ea..3a9f84d13e 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -111,20 +113,20 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *PatchedWritableRackRequest) GetSite() SiteRequest` +`func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -136,20 +138,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -171,20 +173,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -231,20 +233,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest` +`func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -324,30 +326,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *PatchedWritableRackRequest) HasType() bool` +`func (o *PatchedWritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *PatchedWritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *PatchedWritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -496,20 +533,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -674,6 +711,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableRackRequest) GetDescription() string` diff --git a/docs/PatchedWritableRackRequestAirflow.md b/docs/PatchedWritableRackRequestAirflow.md new file mode 100644 index 0000000000..a4de6542a0 --- /dev/null +++ b/docs/PatchedWritableRackRequestAirflow.md @@ -0,0 +1,15 @@ +# PatchedWritableRackRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRackRequestFormFactor.md b/docs/PatchedWritableRackRequestFormFactor.md new file mode 100644 index 0000000000..85a3f53997 --- /dev/null +++ b/docs/PatchedWritableRackRequestFormFactor.md @@ -0,0 +1,25 @@ +# PatchedWritableRackRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRackTypeRequest.md b/docs/PatchedWritableRackTypeRequest.md new file mode 100644 index 0000000000..32ed5e80bc --- /dev/null +++ b/docs/PatchedWritableRackTypeRequest.md @@ -0,0 +1,574 @@ +# PatchedWritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Model** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableRackTypeRequest + +`func NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableRackTypeRequestWithDefaults + +`func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### GetModel + +`func (o *PatchedWritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *PatchedWritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *PatchedWritableRackTypeRequest) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedWritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedWritableRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *PatchedWritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedWritableRackTypeRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedWritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetWidth + +`func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *PatchedWritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *PatchedWritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *PatchedWritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *PatchedWritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *PatchedWritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *PatchedWritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *PatchedWritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *PatchedWritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *PatchedWritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *PatchedWritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### GetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *PatchedWritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableRackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableRackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRackTypeRequestFormFactor.md b/docs/PatchedWritableRackTypeRequestFormFactor.md new file mode 100644 index 0000000000..e1dd497f02 --- /dev/null +++ b/docs/PatchedWritableRackTypeRequestFormFactor.md @@ -0,0 +1,23 @@ +# PatchedWritableRackTypeRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md index f77fdd2db5..c3687e9e30 100644 --- a/docs/PatchedWritableRearPortRequest.md +++ b/docs/PatchedWritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index 200b96c81b..2e43d2d102 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md index 1766d4654c..7a04b670cf 100644 --- a/docs/PatchedWritableServiceRequest.md +++ b/docs/PatchedWritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | Pointer to **[]int32** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md index 508c38a898..8c3c896c87 100644 --- a/docs/PatchedWritableSiteRequest.md +++ b/docs/PatchedWritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Full name of the site | [optional] **Slug** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -118,20 +118,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest` +`func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -153,20 +153,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -188,20 +188,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md index 5fa722f815..a4407ef86b 100644 --- a/docs/PatchedWritableTunnelRequest.md +++ b/docs/PatchedWritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -87,20 +87,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ HasEncapsulation returns a boolean if a field has been set. ### GetIpsecProfile -`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -182,20 +182,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md index 15f17c6229..3cbfca83e0 100644 --- a/docs/PatchedWritableTunnelTerminationRequest.md +++ b/docs/PatchedWritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional] +**Tunnel** | Pointer to [**BriefTunnelRequest**](BriefTunnelRequest.md) | | [optional] **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | Pointer to **string** | | [optional] **TerminationId** | Pointer to **NullableInt64** | | [optional] -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -143,20 +143,20 @@ HasTerminationId returns a boolean if a field has been set. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md index edfc174e7c..489fc76da0 100644 --- a/docs/PatchedWritableVLANRequest.md +++ b/docs/PatchedWritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] **Name** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -157,20 +157,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -217,20 +217,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest` +`func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md index ae6bedaead..219ce7f6b6 100644 --- a/docs/PatchedWritableVMInterfaceRequest.md +++ b/docs/PatchedWritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -305,20 +305,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -365,20 +365,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md index 1954bc8537..e9b0dc680d 100644 --- a/docs/PatchedWritableVirtualDeviceContextRequest.md +++ b/docs/PatchedWritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -62,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -122,20 +122,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -192,20 +192,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md index 08fc04070a..34e864ee1b 100644 --- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md +++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -70,20 +71,20 @@ HasName returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -95,20 +96,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -130,20 +131,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -165,20 +166,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -198,22 +199,47 @@ HasDevice returns a boolean if a field has been set. `func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -235,20 +261,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -270,20 +296,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -305,20 +331,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -340,20 +366,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -530,20 +556,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md index 6bb30de66f..efcbde3780 100644 --- a/docs/PatchedWritableWirelessLANRequest.md +++ b/docs/PatchedWritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -88,20 +88,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -148,20 +148,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -183,20 +183,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md index a04db8cf46..5726a3256d 100644 --- a/docs/PatchedWritableWirelessLinkRequest.md +++ b/docs/PatchedWritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] -**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] +**InterfaceA** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**InterfaceB** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -38,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. @@ -63,20 +65,20 @@ HasInterfaceA returns a boolean if a field has been set. ### GetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -113,20 +115,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -138,20 +140,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -246,6 +248,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *PatchedWritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableWirelessLinkRequest) GetDescription() string` diff --git a/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md b/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md new file mode 100644 index 0000000000..368d1a9c5b --- /dev/null +++ b/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md @@ -0,0 +1,19 @@ +# PatchedWritableWirelessLinkRequestDistanceUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Platform.md b/docs/Platform.md index abceb730ab..d88f6d620f 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -6,10 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | **int64** | | [readonly] **VirtualmachineCount** | **int64** | | [readonly] @@ -17,7 +24,7 @@ Name | Type | Description | Notes ### NewPlatform -`func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *Platform` +`func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -72,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Platform) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Platform) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Platform) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Platform) GetDisplay() string` @@ -132,6 +159,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *Platform) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *Platform) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *Platform) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *Platform) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *Platform) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *Platform) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *Platform) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *Platform) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *Platform) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *Platform) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` @@ -157,6 +254,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Platform) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Platform) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Platform) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Platform) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Platform) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Platform) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Platform) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Platform) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Platform) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Platform) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Platform) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Platform) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Platform) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Platform) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Platform) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Platform) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Platform) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Platform) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Platform) GetDeviceCount() int64` diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md index 39c7230e55..160d7324ae 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PlatformRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *PlatformRequest) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *PlatformRequest) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PlatformRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PlatformRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PlatformRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` @@ -92,6 +166,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *PlatformRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PlatformRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PlatformRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PlatformRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PlatformRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PlatformRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PlatformRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PlatformRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PowerFeed.md b/docs/PowerFeed.md index d1fe1f2363..fd7d76f87e 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**PowerPanel** | [**BriefPowerPanel**](BriefPowerPanel.md) | | +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] **Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] @@ -18,15 +19,15 @@ Name | Type | Description | Notes **Amperage** | Pointer to **int32** | | [optional] **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +39,7 @@ Name | Type | Description | Notes ### NewPowerFeed -`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` +`func NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` NewPowerFeed instantiates a new PowerFeed object This constructor will assign default values to properties that have it defined, @@ -93,6 +94,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerFeed) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerFeed) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerFeed) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerFeed) GetDisplay() string` @@ -115,40 +136,40 @@ SetDisplay sets Display field to given value. ### GetPowerPanel -`func (o *PowerFeed) GetPowerPanel() PowerPanel` +`func (o *PowerFeed) GetPowerPanel() BriefPowerPanel` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` +`func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` +`func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeed) GetRack() Rack` +`func (o *PowerFeed) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeed) GetRackOk() (*Rack, bool)` +`func (o *PowerFeed) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeed) SetRack(v Rack)` +`func (o *PowerFeed) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -390,20 +411,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerFeed) GetCable() Cable` +`func (o *PowerFeed) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerFeed) GetCableOk() (*Cable, bool)` +`func (o *PowerFeed) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerFeed) SetCable(v Cable)` +`func (o *PowerFeed) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -478,6 +499,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerFeed) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerFeed) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerFeed) GetConnectedEndpoints() []interface{}` @@ -498,6 +529,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerFeed) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerFeed) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerFeed) GetConnectedEndpointsType() string` @@ -518,6 +559,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerFeed) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerFeed) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerFeed) GetConnectedEndpointsReachable() bool` @@ -565,20 +616,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeed) GetTenant() Tenant` +`func (o *PowerFeed) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeed) GetTenantOk() (*Tenant, bool)` +`func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeed) SetTenant(v Tenant)` +`func (o *PowerFeed) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index d72dbffb67..a08360ebc8 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewPowerFeedRequest -`func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *PowerFeedRequest` +`func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *PowerFeedRequest` NewPowerFeedRequest instantiates a new PowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeedRequest) GetRack() RackRequest` +`func (o *PowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeedRequest) SetRack(v RackRequest)` +`func (o *PowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeedRequest) GetTenant() TenantRequest` +`func (o *PowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerOutlet.md b/docs/PowerOutlet.md index 488ae2777c..b17d6815b1 100644 --- a/docs/PowerOutlet.md +++ b/docs/PowerOutlet.md @@ -6,22 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPort**](BriefPowerPort.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,7 +34,7 @@ Name | Type | Description | Notes ### NewPowerOutlet -`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` +`func NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` NewPowerOutlet instantiates a new PowerOutlet object This constructor will assign default values to properties that have it defined, @@ -88,6 +89,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerOutlet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerOutlet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerOutlet) GetDisplay() string` @@ -110,40 +131,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerOutlet) GetDevice() Device` +`func (o *PowerOutlet) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` +`func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutlet) SetDevice(v Device)` +`func (o *PowerOutlet) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutlet) GetModule() Module` +`func (o *PowerOutlet) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` +`func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutlet) SetModule(v Module)` +`func (o *PowerOutlet) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -245,20 +266,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutlet) GetPowerPort() PowerPort` +`func (o *PowerOutlet) GetPowerPort() BriefPowerPort` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` +`func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutlet) SetPowerPort(v PowerPort)` +`func (o *PowerOutlet) SetPowerPort(v BriefPowerPort)` SetPowerPort sets PowerPort field to given value. @@ -365,20 +386,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerOutlet) GetCable() Cable` +`func (o *PowerOutlet) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` +`func (o *PowerOutlet) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerOutlet) SetCable(v Cable)` +`func (o *PowerOutlet) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -453,6 +474,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerOutlet) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerOutlet) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` @@ -473,6 +504,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerOutlet) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerOutlet) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerOutlet) GetConnectedEndpointsType() string` @@ -493,6 +534,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerOutlet) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerOutlet) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md index 13dda02fda..d972b8040a 100644 --- a/docs/PowerOutletRequest.md +++ b/docs/PowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewPowerOutletRequest -`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest` +`func NewPowerOutletRequest(device BriefDeviceRequest, name string, ) *PowerOutletRequest` NewPowerOutletRequest instantiates a new PowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutletRequest) GetModule() ModuleRequest` +`func (o *PowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md index c44e44e534..ea20ff0b9d 100644 --- a/docs/PowerOutletRequestType.md +++ b/docs/PowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index f682defafd..e762a82dce 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplate**](BriefPowerPortTemplate.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -99,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` +`func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` +`func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -134,20 +134,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplate) GetModuleType() ModuleType` +`func (o *PowerOutletTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` +`func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -249,20 +249,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` +`func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` +`func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` +`func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index 36e06e4b63..c4cb92e502 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -184,20 +184,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md index 4df800c349..28e2d83098 100644 --- a/docs/PowerOutletTypeLabel.md +++ b/docs/PowerOutletTypeLabel.md @@ -125,6 +125,8 @@ * `NEMA_L21_30_R` (value: `"NEMA L21-30R"`) +* `NEMA_L22_20_R` (value: `"NEMA L22-20R"`) + * `NEMA_L22_30_R` (value: `"NEMA L22-30R"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md index 31346d7075..f5b2a53fea 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -6,16 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] **PowerfeedCount** | **int64** | | [readonly] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPanel -`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -70,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPanel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPanel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPanel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerPanel) GetDisplay() string` @@ -90,6 +118,61 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *PowerPanel) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanel) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanel) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanel) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanel) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanel) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanel) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanel) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanel) GetName() string` @@ -135,6 +218,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + ### GetPowerfeedCount `func (o *PowerPanel) GetPowerfeedCount() int64` @@ -155,6 +313,66 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### GetCreated + +`func (o *PowerPanel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPanel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPanel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPanel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPanel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPanel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPanel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPanel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPanel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PowerPanelRequest.md b/docs/PowerPanelRequest.md index 1993a4681d..dbe61e3b7a 100644 --- a/docs/PowerPanelRequest.md +++ b/docs/PowerPanelRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPanelRequest -`func NewPowerPanelRequest(name string, ) *PowerPanelRequest` +`func NewPowerPanelRequest(site BriefSiteRequest, name string, ) *PowerPanelRequest` NewPowerPanelRequest instantiates a new PowerPanelRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,61 @@ NewPowerPanelRequestWithDefaults instantiates a new PowerPanelRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *PowerPanelRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanelRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanelRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanelRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanelRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanelRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanelRequest) GetName() string` @@ -71,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanelRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PowerPort.md b/docs/PowerPort.md index 43c65c7fa9..8b21830a28 100644 --- a/docs/PowerPort.md +++ b/docs/PowerPort.md @@ -6,18 +6,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerPort -`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort` +`func NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort` NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, @@ -72,6 +89,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerPort) GetDisplay() string` @@ -94,24 +131,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerPort) GetDevice() Device` +`func (o *PowerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPort) GetDeviceOk() (*Device, bool)` +`func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPort) SetDevice(v Device)` +`func (o *PowerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPort) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPort) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPort) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPort) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPort) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPort) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPort) GetName() string` @@ -132,6 +204,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPort) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPort) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPort) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPort) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPort) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPort) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPort) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPort) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPort) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPort) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPort) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPort) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPort) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPort) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPort) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPort) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPort) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPort) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPort) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPort) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPort) GetDescription() string` @@ -157,22 +359,47 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPort) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPort) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPort) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + ### GetCable -`func (o *PowerPort) GetCable() Cable` +`func (o *PowerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerPort) GetCableOk() (*Cable, bool)` +`func (o *PowerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerPort) SetCable(v Cable)` +`func (o *PowerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -187,6 +414,266 @@ SetCable sets Cable field to given value. `func (o *PowerPort) UnsetCable()` UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerPort) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerPort) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerPort) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerPort) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerPort) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerPort) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerPort) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### SetLinkPeersTypeNil + +`func (o *PowerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +### GetConnectedEndpoints + +`func (o *PowerPort) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerPort) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### SetConnectedEndpointsNil + +`func (o *PowerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil +### GetConnectedEndpointsType + +`func (o *PowerPort) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerPort) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### SetConnectedEndpointsTypeNil + +`func (o *PowerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +### GetConnectedEndpointsReachable + +`func (o *PowerPort) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerPort) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *PowerPort) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPort) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPort) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPort) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPort) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPort) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPort) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPort) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerPort) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPort) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPort) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPort) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPort) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPort) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPort) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPort) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPort) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetOccupied `func (o *PowerPort) GetOccupied() bool` diff --git a/docs/PowerPortRequest.md b/docs/PowerPortRequest.md index 5828bf3578..26e241c9a7 100644 --- a/docs/PowerPortRequest.md +++ b/docs/PowerPortRequest.md @@ -4,15 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPortRequest -`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest` +`func NewPowerPortRequest(device BriefDeviceRequest, name string, ) *PowerPortRequest` NewPowerPortRequest instantiates a new PowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -29,24 +37,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerPortRequest) GetDevice() DeviceRequest` +`func (o *PowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPortRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPortRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPortRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPortRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPortRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPortRequest) GetName() string` @@ -67,6 +110,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPortRequest) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPortRequest) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPortRequest) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPortRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPortRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPortRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPortRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPortRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPortRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPortRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPortRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PowerPortRequestType.md b/docs/PowerPortRequestType.md new file mode 100644 index 0000000000..8e1e4ae237 --- /dev/null +++ b/docs/PowerPortRequestType.md @@ -0,0 +1,219 @@ +# PowerPortRequestType + +## Enum + + +* `IEC_60320_C6` (value: `"iec-60320-c6"`) + +* `IEC_60320_C8` (value: `"iec-60320-c8"`) + +* `IEC_60320_C14` (value: `"iec-60320-c14"`) + +* `IEC_60320_C16` (value: `"iec-60320-c16"`) + +* `IEC_60320_C20` (value: `"iec-60320-c20"`) + +* `IEC_60320_C22` (value: `"iec-60320-c22"`) + +* `IEC_60309_P_N_E_4H` (value: `"iec-60309-p-n-e-4h"`) + +* `IEC_60309_P_N_E_6H` (value: `"iec-60309-p-n-e-6h"`) + +* `IEC_60309_P_N_E_9H` (value: `"iec-60309-p-n-e-9h"`) + +* `IEC_60309_2P_E_4H` (value: `"iec-60309-2p-e-4h"`) + +* `IEC_60309_2P_E_6H` (value: `"iec-60309-2p-e-6h"`) + +* `IEC_60309_2P_E_9H` (value: `"iec-60309-2p-e-9h"`) + +* `IEC_60309_3P_E_4H` (value: `"iec-60309-3p-e-4h"`) + +* `IEC_60309_3P_E_6H` (value: `"iec-60309-3p-e-6h"`) + +* `IEC_60309_3P_E_9H` (value: `"iec-60309-3p-e-9h"`) + +* `IEC_60309_3P_N_E_4H` (value: `"iec-60309-3p-n-e-4h"`) + +* `IEC_60309_3P_N_E_6H` (value: `"iec-60309-3p-n-e-6h"`) + +* `IEC_60309_3P_N_E_9H` (value: `"iec-60309-3p-n-e-9h"`) + +* `IEC_60906_1` (value: `"iec-60906-1"`) + +* `NBR_14136_10A` (value: `"nbr-14136-10a"`) + +* `NBR_14136_20A` (value: `"nbr-14136-20a"`) + +* `NEMA_1_15P` (value: `"nema-1-15p"`) + +* `NEMA_5_15P` (value: `"nema-5-15p"`) + +* `NEMA_5_20P` (value: `"nema-5-20p"`) + +* `NEMA_5_30P` (value: `"nema-5-30p"`) + +* `NEMA_5_50P` (value: `"nema-5-50p"`) + +* `NEMA_6_15P` (value: `"nema-6-15p"`) + +* `NEMA_6_20P` (value: `"nema-6-20p"`) + +* `NEMA_6_30P` (value: `"nema-6-30p"`) + +* `NEMA_6_50P` (value: `"nema-6-50p"`) + +* `NEMA_10_30P` (value: `"nema-10-30p"`) + +* `NEMA_10_50P` (value: `"nema-10-50p"`) + +* `NEMA_14_20P` (value: `"nema-14-20p"`) + +* `NEMA_14_30P` (value: `"nema-14-30p"`) + +* `NEMA_14_50P` (value: `"nema-14-50p"`) + +* `NEMA_14_60P` (value: `"nema-14-60p"`) + +* `NEMA_15_15P` (value: `"nema-15-15p"`) + +* `NEMA_15_20P` (value: `"nema-15-20p"`) + +* `NEMA_15_30P` (value: `"nema-15-30p"`) + +* `NEMA_15_50P` (value: `"nema-15-50p"`) + +* `NEMA_15_60P` (value: `"nema-15-60p"`) + +* `NEMA_L1_15P` (value: `"nema-l1-15p"`) + +* `NEMA_L5_15P` (value: `"nema-l5-15p"`) + +* `NEMA_L5_20P` (value: `"nema-l5-20p"`) + +* `NEMA_L5_30P` (value: `"nema-l5-30p"`) + +* `NEMA_L5_50P` (value: `"nema-l5-50p"`) + +* `NEMA_L6_15P` (value: `"nema-l6-15p"`) + +* `NEMA_L6_20P` (value: `"nema-l6-20p"`) + +* `NEMA_L6_30P` (value: `"nema-l6-30p"`) + +* `NEMA_L6_50P` (value: `"nema-l6-50p"`) + +* `NEMA_L10_30P` (value: `"nema-l10-30p"`) + +* `NEMA_L14_20P` (value: `"nema-l14-20p"`) + +* `NEMA_L14_30P` (value: `"nema-l14-30p"`) + +* `NEMA_L14_50P` (value: `"nema-l14-50p"`) + +* `NEMA_L14_60P` (value: `"nema-l14-60p"`) + +* `NEMA_L15_20P` (value: `"nema-l15-20p"`) + +* `NEMA_L15_30P` (value: `"nema-l15-30p"`) + +* `NEMA_L15_50P` (value: `"nema-l15-50p"`) + +* `NEMA_L15_60P` (value: `"nema-l15-60p"`) + +* `NEMA_L21_20P` (value: `"nema-l21-20p"`) + +* `NEMA_L21_30P` (value: `"nema-l21-30p"`) + +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + +* `NEMA_L22_30P` (value: `"nema-l22-30p"`) + +* `CS6361C` (value: `"cs6361c"`) + +* `CS6365C` (value: `"cs6365c"`) + +* `CS8165C` (value: `"cs8165c"`) + +* `CS8265C` (value: `"cs8265c"`) + +* `CS8365C` (value: `"cs8365c"`) + +* `CS8465C` (value: `"cs8465c"`) + +* `ITA_C` (value: `"ita-c"`) + +* `ITA_E` (value: `"ita-e"`) + +* `ITA_F` (value: `"ita-f"`) + +* `ITA_EF` (value: `"ita-ef"`) + +* `ITA_G` (value: `"ita-g"`) + +* `ITA_H` (value: `"ita-h"`) + +* `ITA_I` (value: `"ita-i"`) + +* `ITA_J` (value: `"ita-j"`) + +* `ITA_K` (value: `"ita-k"`) + +* `ITA_L` (value: `"ita-l"`) + +* `ITA_M` (value: `"ita-m"`) + +* `ITA_N` (value: `"ita-n"`) + +* `ITA_O` (value: `"ita-o"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_3_B` (value: `"usb-3-b"`) + +* `USB_3_MICRO_B` (value: `"usb-3-micro-b"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"molex-micro-fit-1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"molex-micro-fit-2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"molex-micro-fit-2x4"`) + +* `DC_TERMINAL` (value: `"dc-terminal"`) + +* `SAF_D_GRID` (value: `"saf-d-grid"`) + +* `NEUTRIK_POWERCON_20` (value: `"neutrik-powercon-20"`) + +* `NEUTRIK_POWERCON_32` (value: `"neutrik-powercon-32"`) + +* `NEUTRIK_POWERCON_TRUE1` (value: `"neutrik-powercon-true1"`) + +* `NEUTRIK_POWERCON_TRUE1_TOP` (value: `"neutrik-powercon-true1-top"`) + +* `UBIQUITI_SMARTPOWER` (value: `"ubiquiti-smartpower"`) + +* `HARDWIRED` (value: `"hardwired"`) + +* `OTHER` (value: `"other"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PowerPortTemplate.md b/docs/PowerPortTemplate.md index 0ddb2e3244..6f50846c8e 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPortTemplate -`func NewPowerPortTemplate(id int32, url string, display string, name string, ) *PowerPortTemplate` +`func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate` NewPowerPortTemplate instantiates a new PowerPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplate) GetName() string` @@ -109,6 +187,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplate) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplate) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplate) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplate) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplate) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplate) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplate) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplate) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplate) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplate) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplate) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplate) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplate) GetDescription() string` @@ -134,6 +342,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *PowerPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 7c113cd12a..30f81cd0ba 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -4,7 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -26,6 +32,76 @@ NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplateRequest) GetName() string` @@ -46,6 +122,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplateRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplateRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplateRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplateRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplateRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplateRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplateRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplateRequest) GetDescription() string` diff --git a/docs/PowerPortType.md b/docs/PowerPortType.md new file mode 100644 index 0000000000..c982432ff5 --- /dev/null +++ b/docs/PowerPortType.md @@ -0,0 +1,82 @@ +# PowerPortType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**Label** | Pointer to [**PowerPortTypeLabel**](PowerPortTypeLabel.md) | | [optional] + +## Methods + +### NewPowerPortType + +`func NewPowerPortType() *PowerPortType` + +NewPowerPortType instantiates a new PowerPortType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPowerPortTypeWithDefaults + +`func NewPowerPortTypeWithDefaults() *PowerPortType` + +NewPowerPortTypeWithDefaults instantiates a new PowerPortType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PowerPortType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *PowerPortType) GetLabel() PowerPortTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortType) SetLabel(v PowerPortTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortType) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PowerPortTypeLabel.md b/docs/PowerPortTypeLabel.md new file mode 100644 index 0000000000..561079ab0f --- /dev/null +++ b/docs/PowerPortTypeLabel.md @@ -0,0 +1,217 @@ +# PowerPortTypeLabel + +## Enum + + +* `C6` (value: `"C6"`) + +* `C8` (value: `"C8"`) + +* `C14` (value: `"C14"`) + +* `C16` (value: `"C16"`) + +* `C20` (value: `"C20"`) + +* `C22` (value: `"C22"`) + +* `PNE_4_H` (value: `"P+N+E 4H"`) + +* `PNE_6_H` (value: `"P+N+E 6H"`) + +* `PNE_9_H` (value: `"P+N+E 9H"`) + +* `_2_PE_4_H` (value: `"2P+E 4H"`) + +* `_2_PE_6_H` (value: `"2P+E 6H"`) + +* `_2_PE_9_H` (value: `"2P+E 9H"`) + +* `_3_PE_4_H` (value: `"3P+E 4H"`) + +* `_3_PE_6_H` (value: `"3P+E 6H"`) + +* `_3_PE_9_H` (value: `"3P+E 9H"`) + +* `_3_PNE_4_H` (value: `"3P+N+E 4H"`) + +* `_3_PNE_6_H` (value: `"3P+N+E 6H"`) + +* `_3_PNE_9_H` (value: `"3P+N+E 9H"`) + +* `IEC_60906_1` (value: `"IEC 60906-1"`) + +* `_2_PT_10_A__NBR_14136` (value: `"2P+T 10A (NBR 14136)"`) + +* `_2_PT_20_A__NBR_14136` (value: `"2P+T 20A (NBR 14136)"`) + +* `NEMA_1_15_P` (value: `"NEMA 1-15P"`) + +* `NEMA_5_15_P` (value: `"NEMA 5-15P"`) + +* `NEMA_5_20_P` (value: `"NEMA 5-20P"`) + +* `NEMA_5_30_P` (value: `"NEMA 5-30P"`) + +* `NEMA_5_50_P` (value: `"NEMA 5-50P"`) + +* `NEMA_6_15_P` (value: `"NEMA 6-15P"`) + +* `NEMA_6_20_P` (value: `"NEMA 6-20P"`) + +* `NEMA_6_30_P` (value: `"NEMA 6-30P"`) + +* `NEMA_6_50_P` (value: `"NEMA 6-50P"`) + +* `NEMA_10_30_P` (value: `"NEMA 10-30P"`) + +* `NEMA_10_50_P` (value: `"NEMA 10-50P"`) + +* `NEMA_14_20_P` (value: `"NEMA 14-20P"`) + +* `NEMA_14_30_P` (value: `"NEMA 14-30P"`) + +* `NEMA_14_50_P` (value: `"NEMA 14-50P"`) + +* `NEMA_14_60_P` (value: `"NEMA 14-60P"`) + +* `NEMA_15_15_P` (value: `"NEMA 15-15P"`) + +* `NEMA_15_20_P` (value: `"NEMA 15-20P"`) + +* `NEMA_15_30_P` (value: `"NEMA 15-30P"`) + +* `NEMA_15_50_P` (value: `"NEMA 15-50P"`) + +* `NEMA_15_60_P` (value: `"NEMA 15-60P"`) + +* `NEMA_L1_15_P` (value: `"NEMA L1-15P"`) + +* `NEMA_L5_15_P` (value: `"NEMA L5-15P"`) + +* `NEMA_L5_20_P` (value: `"NEMA L5-20P"`) + +* `NEMA_L5_30_P` (value: `"NEMA L5-30P"`) + +* `NEMA_L5_50_P` (value: `"NEMA L5-50P"`) + +* `NEMA_L6_15_P` (value: `"NEMA L6-15P"`) + +* `NEMA_L6_20_P` (value: `"NEMA L6-20P"`) + +* `NEMA_L6_30_P` (value: `"NEMA L6-30P"`) + +* `NEMA_L6_50_P` (value: `"NEMA L6-50P"`) + +* `NEMA_L10_30_P` (value: `"NEMA L10-30P"`) + +* `NEMA_L14_20_P` (value: `"NEMA L14-20P"`) + +* `NEMA_L14_30_P` (value: `"NEMA L14-30P"`) + +* `NEMA_L14_50_P` (value: `"NEMA L14-50P"`) + +* `NEMA_L14_60_P` (value: `"NEMA L14-60P"`) + +* `NEMA_L15_20_P` (value: `"NEMA L15-20P"`) + +* `NEMA_L15_30_P` (value: `"NEMA L15-30P"`) + +* `NEMA_L15_50_P` (value: `"NEMA L15-50P"`) + +* `NEMA_L15_60_P` (value: `"NEMA L15-60P"`) + +* `NEMA_L21_20_P` (value: `"NEMA L21-20P"`) + +* `NEMA_L21_30_P` (value: `"NEMA L21-30P"`) + +* `NEMA_L22_20_P` (value: `"NEMA L22-20P"`) + +* `NEMA_L22_30_P` (value: `"NEMA L22-30P"`) + +* `CS6361_C` (value: `"CS6361C"`) + +* `CS6365_C` (value: `"CS6365C"`) + +* `CS8165_C` (value: `"CS8165C"`) + +* `CS8265_C` (value: `"CS8265C"`) + +* `CS8365_C` (value: `"CS8365C"`) + +* `CS8465_C` (value: `"CS8465C"`) + +* `ITA_TYPE_C__CEE_7_16` (value: `"ITA Type C (CEE 7/16)"`) + +* `ITA_TYPE_E__CEE_7_6` (value: `"ITA Type E (CEE 7/6)"`) + +* `ITA_TYPE_F__CEE_7_4` (value: `"ITA Type F (CEE 7/4)"`) + +* `ITA_TYPE_E_F__CEE_7_7` (value: `"ITA Type E/F (CEE 7/7)"`) + +* `ITA_TYPE_G__BS_1363` (value: `"ITA Type G (BS 1363)"`) + +* `ITA_TYPE_H` (value: `"ITA Type H"`) + +* `ITA_TYPE_I` (value: `"ITA Type I"`) + +* `ITA_TYPE_J` (value: `"ITA Type J"`) + +* `ITA_TYPE_K` (value: `"ITA Type K"`) + +* `ITA_TYPE_L__CEI_23_50` (value: `"ITA Type L (CEI 23-50)"`) + +* `ITA_TYPE_M__BS_546` (value: `"ITA Type M (BS 546)"`) + +* `ITA_TYPE_N` (value: `"ITA Type N"`) + +* `ITA_TYPE_O` (value: `"ITA Type O"`) + +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + +* `USB_3_0_TYPE_B` (value: `"USB 3.0 Type B"`) + +* `USB_3_0_MICRO_B` (value: `"USB 3.0 Micro B"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"Molex Micro-Fit 1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"Molex Micro-Fit 2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"Molex Micro-Fit 2x4"`) + +* `DC_TERMINAL` (value: `"DC Terminal"`) + +* `SAF_D_GRID` (value: `"Saf-D-Grid"`) + +* `NEUTRIK_POWER_CON__20_A` (value: `"Neutrik powerCON (20A)"`) + +* `NEUTRIK_POWER_CON__32_A` (value: `"Neutrik powerCON (32A)"`) + +* `NEUTRIK_POWER_CON_TRUE1` (value: `"Neutrik powerCON TRUE1"`) + +* `NEUTRIK_POWER_CON_TRUE1_TOP` (value: `"Neutrik powerCON TRUE1 TOP"`) + +* `UBIQUITI_SMART_POWER` (value: `"Ubiquiti SmartPower"`) + +* `HARDWIRED` (value: `"Hardwired"`) + +* `OTHER` (value: `"Other"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Prefix.md b/docs/Prefix.md index b1b6821a6e..66c553024b 100644 --- a/docs/Prefix.md +++ b/docs/Prefix.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,7 +31,7 @@ Name | Type | Description | Notes ### NewPrefix -`func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Prefix) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Prefix) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Prefix) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Prefix) GetDisplay() string` @@ -147,20 +168,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *Prefix) GetSite() Site` +`func (o *Prefix) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Prefix) GetSiteOk() (*Site, bool)` +`func (o *Prefix) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Prefix) SetSite(v Site)` +`func (o *Prefix) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -182,20 +203,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *Prefix) GetVrf() VRF` +`func (o *Prefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Prefix) GetVrfOk() (*VRF, bool)` +`func (o *Prefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Prefix) SetVrf(v VRF)` +`func (o *Prefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -217,20 +238,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *Prefix) GetTenant() Tenant` +`func (o *Prefix) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Prefix) GetTenantOk() (*Tenant, bool)` +`func (o *Prefix) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Prefix) SetTenant(v Tenant)` +`func (o *Prefix) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -252,20 +273,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *Prefix) GetVlan() VLAN` +`func (o *Prefix) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *Prefix) GetVlanOk() (*VLAN, bool)` +`func (o *Prefix) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *Prefix) SetVlan(v VLAN)` +`func (o *Prefix) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -312,20 +333,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *Prefix) GetRole() Role` +`func (o *Prefix) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Prefix) GetRoleOk() (*Role, bool)` +`func (o *Prefix) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Prefix) SetRole(v Role)` +`func (o *Prefix) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/PrefixRequest.md b/docs/PrefixRequest.md index ae1f2006b8..9f8079465f 100644 --- a/docs/PrefixRequest.md +++ b/docs/PrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *PrefixRequest) GetSite() SiteRequest` +`func (o *PrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PrefixRequest) SetSite(v SiteRequest)` +`func (o *PrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PrefixRequest) GetVrf() VRFRequest` +`func (o *PrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PrefixRequest) SetVrf(v VRFRequest)` +`func (o *PrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PrefixRequest) GetTenant() TenantRequest` +`func (o *PrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PrefixRequest) SetTenant(v TenantRequest)` +`func (o *PrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PrefixRequest) GetVlan() VLANRequest` +`func (o *PrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PrefixRequest) SetVlan(v VLANRequest)` +`func (o *PrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PrefixRequest) GetRole() RoleRequest` +`func (o *PrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PrefixRequest) SetRole(v RoleRequest)` +`func (o *PrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/Provider.md b/docs/Provider.md index 16fd7e5dfc..7f587c8e7b 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to [**[]NestedProviderAccount**](NestedProviderAccount.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **CircuitCount** | **int64** | | [readonly] ## Methods ### NewProvider -`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider` +`func NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *Provider` NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Provider) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Provider) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Provider) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Provider) GetDisplay() string` @@ -131,6 +159,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *Provider) GetAccounts() []NestedProviderAccount` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *Provider) GetAccountsOk() (*[]NestedProviderAccount, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *Provider) SetAccounts(v []NestedProviderAccount)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *Provider) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *Provider) GetDescription() string` @@ -156,6 +209,166 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Provider) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Provider) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Provider) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Provider) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Provider) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Provider) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Provider) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Provider) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Provider) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Provider) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Provider) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Provider) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Provider) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Provider) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Provider) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Provider) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Provider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Provider) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Provider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Provider) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Provider) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Provider) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Provider) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Provider) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Provider) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Provider) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetCircuitCount `func (o *Provider) GetCircuitCount() int64` diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md index aac9f2198e..4ea7ef5917 100644 --- a/docs/ProviderAccount.md +++ b/docs/ProviderAccount.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Provider** | [**Provider**](Provider.md) | | +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewProviderAccount -`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` +`func NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` NewProviderAccount instantiates a new ProviderAccount object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ProviderAccount) GetDisplay() string` @@ -98,20 +119,20 @@ SetDisplay sets Display field to given value. ### GetProvider -`func (o *ProviderAccount) GetProvider() Provider` +`func (o *ProviderAccount) GetProvider() BriefProvider` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *ProviderAccount) GetProviderOk() (*Provider, bool)` +`func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *ProviderAccount) SetProvider(v Provider)` +`func (o *ProviderAccount) SetProvider(v BriefProvider)` SetProvider sets Provider field to given value. diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md index 73ff7c78bf..bf38cf07ef 100644 --- a/docs/ProviderAccountRequest.md +++ b/docs/ProviderAccountRequest.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderAccountRequest -`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest` +`func NewProviderAccountRequest(provider BriefProviderRequest, account string, ) *ProviderAccountRequest` NewProviderAccountRequest instantiates a new ProviderAccountRequest object This constructor will assign default values to properties that have it defined, @@ -27,6 +31,26 @@ NewProviderAccountRequestWithDefaults instantiates a new ProviderAccountRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderAccountRequest) GetName() string` @@ -97,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderAccountRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderAccountRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderAccountRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderAccountRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderAccountRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderAccountRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderAccountRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderAccountRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProviderNetwork.md b/docs/ProviderNetwork.md index de3e093732..b0fdec44c1 100644 --- a/docs/ProviderNetwork.md +++ b/docs/ProviderNetwork.md @@ -6,15 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewProviderNetwork -`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork` +`func NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime, ) *ProviderNetwork` NewProviderNetwork instantiates a new ProviderNetwork object This constructor will assign default values to properties that have it defined, @@ -69,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderNetwork) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderNetwork) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ProviderNetwork) GetDisplay() string` @@ -89,6 +117,26 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetProvider + +`func (o *ProviderNetwork) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetwork) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetwork) GetName() string` @@ -109,6 +157,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetwork) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetwork) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetwork) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetwork) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetwork) GetDescription() string` @@ -134,6 +207,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetwork) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetwork) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetwork) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetwork) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetwork) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetwork) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetwork) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetwork) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetwork) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetwork) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetwork) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetwork) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ProviderNetwork) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ProviderNetwork) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ProviderNetwork) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ProviderNetwork) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ProviderNetwork) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ProviderNetwork) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ProviderNetwork) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ProviderNetwork) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProviderNetworkRequest.md b/docs/ProviderNetworkRequest.md index 21f981aa69..45b2b952a6 100644 --- a/docs/ProviderNetworkRequest.md +++ b/docs/ProviderNetworkRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderNetworkRequest -`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` +`func NewProviderNetworkRequest(provider BriefProviderRequest, name string, ) *ProviderNetworkRequest` NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,26 @@ NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetworkRequest) GetName() string` @@ -46,6 +71,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetworkRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetworkRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetworkRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetworkRequest) GetDescription() string` @@ -71,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetworkRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetworkRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetworkRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetworkRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetworkRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetworkRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetworkRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProviderRequest.md b/docs/ProviderRequest.md index a7e51837e8..c03de9ce67 100644 --- a/docs/ProviderRequest.md +++ b/docs/ProviderRequest.md @@ -6,7 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +72,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *ProviderRequest) GetAccounts() []int32` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *ProviderRequest) GetAccountsOk() (*[]int32, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *ProviderRequest) SetAccounts(v []int32)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *ProviderRequest) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderRequest) GetDescription() string` @@ -92,6 +122,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *ProviderRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *ProviderRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *ProviderRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *ProviderRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RIR.md b/docs/RIR.md index 2c027c73a1..2bb4cce6ed 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -6,17 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **AggregateCount** | **int64** | | [readonly] ## Methods ### NewRIR -`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR` +`func NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64, ) *RIR` NewRIR instantiates a new RIR object This constructor will assign default values to properties that have it defined, @@ -71,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RIR) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RIR) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RIR) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RIR) GetDisplay() string` @@ -131,6 +157,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIR) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIR) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIR) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIR) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIR) GetDescription() string` @@ -156,6 +207,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIR) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIR) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIR) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIR) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIR) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIR) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIR) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIR) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RIR) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RIR) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RIR) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RIR) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RIR) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RIR) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RIR) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RIR) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RIR) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RIR) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetAggregateCount `func (o *RIR) GetAggregateCount() int64` diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md index 3a102b34c4..761c2570e4 100644 --- a/docs/RIRRequest.md +++ b/docs/RIRRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIRRequest) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIRRequest) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIRRequest) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIRRequest) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIRRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIRRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIRRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIRRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIRRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIRRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIRRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIRRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIRRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Rack.md b/docs/Rack.md index 5628a5efc9..83c1411322 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -6,16 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRole**](BriefRackRole.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackType**](BriefRackType.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**RackAirflow**](RackAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | **int64** | | [readonly] +**PowerfeedCount** | **int64** | | [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, deviceCount int64, ) *Rack` +`func NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, deviceCount int64, powerfeedCount int64, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -70,6 +99,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Rack) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Rack) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Rack) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Rack) GetDisplay() string` @@ -110,6 +159,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *Rack) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *Rack) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *Rack) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *Rack) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *Rack) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *Rack) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *Rack) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Rack) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Rack) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *Rack) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Rack) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Rack) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *Rack) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *Rack) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *Rack) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *Rack) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Rack) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Rack) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Rack) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Rack) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Rack) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *Rack) GetStatus() RackStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Rack) GetStatusOk() (*RackStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Rack) SetStatus(v RackStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Rack) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *Rack) GetRole() BriefRackRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Rack) GetRoleOk() (*BriefRackRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *Rack) SetRole(v BriefRackRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *Rack) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *Rack) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *Rack) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *Rack) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Rack) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Rack) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Rack) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Rack) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Rack) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Rack) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Rack) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Rack) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Rack) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *Rack) GetRackType() BriefRackType` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *Rack) GetRackTypeOk() (*BriefRackType, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *Rack) SetRackType(v BriefRackType)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *Rack) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *Rack) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *Rack) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *Rack) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *Rack) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *Rack) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *Rack) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *Rack) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *Rack) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *Rack) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *Rack) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *Rack) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *Rack) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *Rack) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *Rack) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *Rack) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *Rack) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *Rack) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *Rack) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *Rack) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *Rack) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Rack) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Rack) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Rack) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *Rack) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *Rack) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *Rack) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *Rack) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *Rack) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *Rack) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *Rack) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *Rack) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *Rack) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *Rack) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *Rack) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *Rack) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *Rack) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *Rack) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *Rack) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *Rack) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *Rack) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *Rack) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *Rack) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *Rack) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *Rack) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *Rack) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *Rack) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *Rack) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *Rack) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *Rack) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *Rack) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *Rack) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *Rack) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *Rack) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *Rack) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *Rack) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *Rack) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *Rack) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *Rack) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *Rack) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *Rack) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *Rack) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *Rack) GetAirflow() RackAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *Rack) GetAirflowOk() (*RackAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *Rack) SetAirflow(v RackAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *Rack) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *Rack) GetDescription() string` @@ -135,6 +869,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Rack) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Rack) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Rack) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Rack) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Rack) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Rack) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Rack) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Rack) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Rack) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Rack) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Rack) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Rack) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Rack) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Rack) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Rack) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Rack) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Rack) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Rack) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Rack) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Rack) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Rack) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Rack) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Rack) GetDeviceCount() int64` @@ -155,6 +1024,26 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### GetPowerfeedCount + +`func (o *Rack) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *Rack) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *Rack) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RackAirflow.md b/docs/RackAirflow.md new file mode 100644 index 0000000000..5afcaf33e7 --- /dev/null +++ b/docs/RackAirflow.md @@ -0,0 +1,82 @@ +# RackAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] +**Label** | Pointer to [**RackAirflowLabel**](RackAirflowLabel.md) | | [optional] + +## Methods + +### NewRackAirflow + +`func NewRackAirflow() *RackAirflow` + +NewRackAirflow instantiates a new RackAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackAirflowWithDefaults + +`func NewRackAirflowWithDefaults() *RackAirflow` + +NewRackAirflowWithDefaults instantiates a new RackAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackAirflow) GetValue() PatchedWritableRackRequestAirflow` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackAirflow) GetValueOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackAirflow) SetValue(v PatchedWritableRackRequestAirflow)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackAirflow) GetLabel() RackAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackAirflow) GetLabelOk() (*RackAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackAirflow) SetLabel(v RackAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackAirflow) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackAirflowLabel.md b/docs/RackAirflowLabel.md new file mode 100644 index 0000000000..e517065baa --- /dev/null +++ b/docs/RackAirflowLabel.md @@ -0,0 +1,13 @@ +# RackAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackFormFactor.md b/docs/RackFormFactor.md new file mode 100644 index 0000000000..dbb3162311 --- /dev/null +++ b/docs/RackFormFactor.md @@ -0,0 +1,82 @@ +# RackFormFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Label** | Pointer to [**RackFormFactorLabel**](RackFormFactorLabel.md) | | [optional] + +## Methods + +### NewRackFormFactor + +`func NewRackFormFactor() *RackFormFactor` + +NewRackFormFactor instantiates a new RackFormFactor object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackFormFactorWithDefaults + +`func NewRackFormFactorWithDefaults() *RackFormFactor` + +NewRackFormFactorWithDefaults instantiates a new RackFormFactor object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackFormFactor) GetValue() PatchedWritableRackRequestFormFactor` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackFormFactor) GetValueOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackFormFactor) SetValue(v PatchedWritableRackRequestFormFactor)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackFormFactor) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackFormFactor) GetLabel() RackFormFactorLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackFormFactor) SetLabel(v RackFormFactorLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackFormFactor) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackFormFactorLabel.md b/docs/RackFormFactorLabel.md new file mode 100644 index 0000000000..720b1eb8c6 --- /dev/null +++ b/docs/RackFormFactorLabel.md @@ -0,0 +1,23 @@ +# RackFormFactorLabel + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post frame"`) + +* `_4_POST_FRAME` (value: `"4-post frame"`) + +* `_4_POST_CABINET` (value: `"4-post cabinet"`) + +* `WALL_MOUNTED_FRAME` (value: `"Wall-mounted frame"`) + +* `WALL_MOUNTED_FRAME__VERTICAL` (value: `"Wall-mounted frame (vertical)"`) + +* `WALL_MOUNTED_CABINET` (value: `"Wall-mounted cabinet"`) + +* `WALL_MOUNTED_CABINET__VERTICAL` (value: `"Wall-mounted cabinet (vertical)"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackOuterUnit.md b/docs/RackOuterUnit.md new file mode 100644 index 0000000000..09a88910f6 --- /dev/null +++ b/docs/RackOuterUnit.md @@ -0,0 +1,82 @@ +# RackOuterUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Label** | Pointer to [**RackOuterUnitLabel**](RackOuterUnitLabel.md) | | [optional] + +## Methods + +### NewRackOuterUnit + +`func NewRackOuterUnit() *RackOuterUnit` + +NewRackOuterUnit instantiates a new RackOuterUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackOuterUnitWithDefaults + +`func NewRackOuterUnitWithDefaults() *RackOuterUnit` + +NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackOuterUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackOuterUnit) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackOuterUnitLabel.md b/docs/RackOuterUnitLabel.md new file mode 100644 index 0000000000..760faedf16 --- /dev/null +++ b/docs/RackOuterUnitLabel.md @@ -0,0 +1,13 @@ +# RackOuterUnitLabel + +## Enum + + +* `MILLIMETERS` (value: `"Millimeters"`) + +* `INCHES` (value: `"Inches"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackRequest.md b/docs/RackRequest.md index fdc2c2dd55..12ddea190e 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -5,13 +5,38 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewRackRequest -`func NewRackRequest(name string, ) *RackRequest` +`func NewRackRequest(name string, site BriefSiteRequest, ) *RackRequest` NewRackRequest instantiates a new RackRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +71,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *RackRequest) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *RackRequest) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *RackRequest) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *RackRequest) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *RackRequest) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *RackRequest) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *RackRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *RackRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *RackRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *RackRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *RackRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *RackRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *RackRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *RackRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *RackRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *RackRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *RackRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *RackRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RackRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *RackRequest) GetRole() BriefRackRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RackRequest) SetRole(v BriefRackRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RackRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *RackRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *RackRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *RackRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *RackRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *RackRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *RackRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *RackRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *RackRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *RackRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *RackRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *RackRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *RackRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *RackRequest) GetRackType() BriefRackTypeRequest` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *RackRequest) SetRackType(v BriefRackTypeRequest)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *RackRequest) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *RackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *RackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *RackRequest) GetFormFactor() RackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackRequest) SetFormFactor(v RackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *RackRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *RackRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *RackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *RackRequest) GetDescription() string` @@ -71,6 +781,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *RackRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RackRequestFormFactor.md b/docs/RackRequestFormFactor.md new file mode 100644 index 0000000000..5725ed05af --- /dev/null +++ b/docs/RackRequestFormFactor.md @@ -0,0 +1,25 @@ +# RackRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackRequestOuterUnit.md b/docs/RackRequestOuterUnit.md new file mode 100644 index 0000000000..8316b288d2 --- /dev/null +++ b/docs/RackRequestOuterUnit.md @@ -0,0 +1,15 @@ +# RackRequestOuterUnit + +## Enum + + +* `MM` (value: `"mm"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackReservation.md b/docs/RackReservation.md index d8fdbd2ff4..3908a59cf5 100644 --- a/docs/RackReservation.md +++ b/docs/RackReservation.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Rack** | [**Rack**](Rack.md) | | +**Rack** | [**BriefRack**](BriefRack.md) | | **Units** | **[]int32** | | **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**User** | [**User**](User.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**User** | [**BriefUser**](BriefUser.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRackReservation -`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` +`func NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string, ) *RackReservation` NewRackReservation instantiates a new RackReservation object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackReservation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackReservation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackReservation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RackReservation) GetDisplay() string` @@ -99,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetRack -`func (o *RackReservation) GetRack() Rack` +`func (o *RackReservation) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservation) GetRackOk() (*Rack, bool)` +`func (o *RackReservation) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservation) SetRack(v Rack)` +`func (o *RackReservation) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -199,40 +220,40 @@ SetLastUpdated sets LastUpdated field to given value. UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetUser -`func (o *RackReservation) GetUser() User` +`func (o *RackReservation) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservation) GetUserOk() (*User, bool)` +`func (o *RackReservation) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservation) SetUser(v User)` +`func (o *RackReservation) SetUser(v BriefUser)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservation) GetTenant() Tenant` +`func (o *RackReservation) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservation) GetTenantOk() (*Tenant, bool)` +`func (o *RackReservation) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservation) SetTenant(v Tenant)` +`func (o *RackReservation) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md index e87e36a898..1910e473a1 100644 --- a/docs/RackReservationRequest.md +++ b/docs/RackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | [**RackRequest**](RackRequest.md) | | +**Rack** | [**BriefRackRequest**](BriefRackRequest.md) | | **Units** | **[]int32** | | -**User** | [**UserRequest**](UserRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewRackReservationRequest -`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string, ) *RackReservationRequest` +`func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string, ) *RackReservationRequest` NewRackReservationRequest instantiates a new RackReservationRequest object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *RackReservationRequest) GetRack() RackRequest` +`func (o *RackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservationRequest) SetRack(v RackRequest)` +`func (o *RackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -74,40 +74,40 @@ SetUnits sets Units field to given value. ### GetUser -`func (o *RackReservationRequest) GetUser() UserRequest` +`func (o *RackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservationRequest) SetUser(v UserRequest)` +`func (o *RackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservationRequest) GetTenant() TenantRequest` +`func (o *RackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservationRequest) SetTenant(v TenantRequest)` +`func (o *RackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/RackRole.md b/docs/RackRole.md index a13905573c..25a4d6f53b 100644 --- a/docs/RackRole.md +++ b/docs/RackRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewRackRole -`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` +`func NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` NewRackRole instantiates a new RackRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RackRole) GetDisplay() string` diff --git a/docs/RackStatus.md b/docs/RackStatus.md new file mode 100644 index 0000000000..414f07ddeb --- /dev/null +++ b/docs/RackStatus.md @@ -0,0 +1,82 @@ +# RackStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Label** | Pointer to [**RackStatusLabel**](RackStatusLabel.md) | | [optional] + +## Methods + +### NewRackStatus + +`func NewRackStatus() *RackStatus` + +NewRackStatus instantiates a new RackStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackStatusWithDefaults + +`func NewRackStatusWithDefaults() *RackStatus` + +NewRackStatusWithDefaults instantiates a new RackStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackStatus) GetLabel() RackStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackStatus) GetLabelOk() (*RackStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackStatus) SetLabel(v RackStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackStatusLabel.md b/docs/RackStatusLabel.md new file mode 100644 index 0000000000..0b700039e6 --- /dev/null +++ b/docs/RackStatusLabel.md @@ -0,0 +1,19 @@ +# RackStatusLabel + +## Enum + + +* `RESERVED` (value: `"Reserved"`) + +* `AVAILABLE` (value: `"Available"`) + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackType.md b/docs/RackType.md new file mode 100644 index 0000000000..dcc20c65ba --- /dev/null +++ b/docs/RackType.md @@ -0,0 +1,735 @@ +# RackType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewRackType + +`func NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, ) *RackType` + +NewRackType instantiates a new RackType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackTypeWithDefaults + +`func NewRackTypeWithDefaults() *RackType` + +NewRackTypeWithDefaults instantiates a new RackType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RackType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RackType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RackType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *RackType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RackType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *RackType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *RackType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *RackType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *RackType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *RackType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *RackType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *RackType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RackType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackType) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackType) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackType) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackType) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackType) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackType) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackType) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackType) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackType) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackType) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackType) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackType) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackType) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackType) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackType) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackType) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackType) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackType) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackType) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackType) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackType) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackType) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackType) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackType) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackType) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackType) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackType) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackType) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackType) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackType) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackType) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackType) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackType) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackType) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackType) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackType) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackType) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackType) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackType) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackType) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackType) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackType) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackType) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackType) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackType) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackType) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackType) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackType) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackType) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackType) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackType) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RackType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RackType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RackType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RackType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RackType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RackType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RackType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RackType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RackType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RackType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackTypeRequest.md b/docs/RackTypeRequest.md new file mode 100644 index 0000000000..bbf79de3a3 --- /dev/null +++ b/docs/RackTypeRequest.md @@ -0,0 +1,589 @@ +# RackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewRackTypeRequest + +`func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *RackTypeRequest` + +NewRackTypeRequest instantiates a new RackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackTypeRequestWithDefaults + +`func NewRackTypeRequestWithDefaults() *RackTypeRequest` + +NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *RackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackTypeRequest) GetFormFactor() RackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackTypeRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackTypeRequest) SetFormFactor(v RackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackTypeRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackTypeRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackTypeRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackTypeRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackTypeRequest) GetOuterUnit() RackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackTypeRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackTypeRequest) SetOuterUnit(v RackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackTypeRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackTypeRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackTypeRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackUnit.md b/docs/RackUnit.md index 507d76f97f..170729fb94 100644 --- a/docs/RackUnit.md +++ b/docs/RackUnit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **float64** | | [readonly] **Name** | **string** | | [readonly] **Face** | [**RackUnitFace**](RackUnitFace.md) | | -**Device** | [**Device**](Device.md) | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | [readonly] **Occupied** | **bool** | | [readonly] **Display** | **string** | | [readonly] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRackUnit -`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string, ) *RackUnit` +`func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string, ) *RackUnit` NewRackUnit instantiates a new RackUnit object This constructor will assign default values to properties that have it defined, @@ -92,20 +92,20 @@ SetFace sets Face field to given value. ### GetDevice -`func (o *RackUnit) GetDevice() Device` +`func (o *RackUnit) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RackUnit) GetDeviceOk() (*Device, bool)` +`func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RackUnit) SetDevice(v Device)` +`func (o *RackUnit) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. diff --git a/docs/RackWidth.md b/docs/RackWidth.md new file mode 100644 index 0000000000..04b03ffe83 --- /dev/null +++ b/docs/RackWidth.md @@ -0,0 +1,82 @@ +# RackWidth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**Label** | Pointer to [**RackWidthLabel**](RackWidthLabel.md) | | [optional] + +## Methods + +### NewRackWidth + +`func NewRackWidth() *RackWidth` + +NewRackWidth instantiates a new RackWidth object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackWidthWithDefaults + +`func NewRackWidthWithDefaults() *RackWidth` + +NewRackWidthWithDefaults instantiates a new RackWidth object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackWidth) GetValue() RackWidthValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackWidth) GetValueOk() (*RackWidthValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackWidth) SetValue(v RackWidthValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackWidth) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackWidth) GetLabel() RackWidthLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackWidth) SetLabel(v RackWidthLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackWidth) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackWidthLabel.md b/docs/RackWidthLabel.md new file mode 100644 index 0000000000..c6fa6cba1a --- /dev/null +++ b/docs/RackWidthLabel.md @@ -0,0 +1,17 @@ +# RackWidthLabel + +## Enum + + +* `_10_INCHES` (value: `"10 inches"`) + +* `_19_INCHES` (value: `"19 inches"`) + +* `_21_INCHES` (value: `"21 inches"`) + +* `_23_INCHES` (value: `"23 inches"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackWidthValue.md b/docs/RackWidthValue.md new file mode 100644 index 0000000000..c4f90af4da --- /dev/null +++ b/docs/RackWidthValue.md @@ -0,0 +1,17 @@ +# RackWidthValue + +## Enum + + +* `_10` (value: `10`) + +* `_19` (value: `19`) + +* `_21` (value: `21`) + +* `_23` (value: `23`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RearPort.md b/docs/RearPort.md index 18ec1face6..a491dd748f 100644 --- a/docs/RearPort.md +++ b/docs/RearPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -16,10 +17,10 @@ Name | Type | Description | Notes **Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -30,7 +31,7 @@ Name | Type | Description | Notes ### NewRearPort -`func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` +`func NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` NewRearPort instantiates a new RearPort object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RearPort) GetDisplay() string` @@ -107,40 +128,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *RearPort) GetDevice() Device` +`func (o *RearPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPort) GetDeviceOk() (*Device, bool)` +`func (o *RearPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPort) SetDevice(v Device)` +`func (o *RearPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPort) GetModule() Module` +`func (o *RearPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPort) GetModuleOk() (*Module, bool)` +`func (o *RearPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPort) SetModule(v Module)` +`func (o *RearPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -327,20 +348,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *RearPort) GetCable() Cable` +`func (o *RearPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *RearPort) GetCableOk() (*Cable, bool)` +`func (o *RearPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *RearPort) SetCable(v Cable)` +`func (o *RearPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -415,6 +436,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *RearPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *RearPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *RearPort) GetTags() []NestedTag` diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md index 3555c4450e..8a6a327559 100644 --- a/docs/RearPortRequest.md +++ b/docs/RearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewRearPortRequest -`func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` +`func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` NewRearPortRequest instantiates a new RearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *RearPortRequest) GetDevice() DeviceRequest` +`func (o *RearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPortRequest) SetDevice(v DeviceRequest)` +`func (o *RearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPortRequest) GetModule() ModuleRequest` +`func (o *RearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPortRequest) SetModule(v ModuleRequest)` +`func (o *RearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md index 004494da36..a687076f73 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortType**](FrontPortType.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewRearPortTemplate -`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` +`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime, ) *RearPortTemplate` NewRearPortTemplate instantiates a new RearPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *RearPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplate) GetName() string` @@ -109,6 +187,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplate) GetType() FrontPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplate) SetType(v FrontPortType)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplate) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplate) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplate) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplate) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplate) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplate) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplate) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplate) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplate) GetDescription() string` @@ -134,6 +307,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *RearPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RearPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RearPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RearPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RearPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RearPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RearPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RearPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index d139cde910..71bf28cd37 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -4,14 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewRearPortTemplateRequest -`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest` +`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest` NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +32,76 @@ NewRearPortTemplateRequestWithDefaults instantiates a new RearPortTemplateReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplateRequest) GetName() string` @@ -46,6 +122,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplateRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplateRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplateRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplateRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplateRequest) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplateRequest) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplateRequest) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplateRequest) GetDescription() string` diff --git a/docs/Region.md b/docs/Region.md index f7c3a1a817..a1f9b45c10 100644 --- a/docs/Region.md +++ b/docs/Region.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRegion -`func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` +`func NewRegion(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Region) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Region) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Region) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Region) GetDisplay() string` diff --git a/docs/Role.md b/docs/Role.md index 5054c3ea7e..2b15481fb8 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **PrefixCount** | **int64** | | [readonly] **VlanCount** | **int64** | | [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, prefixCount int64, vlanCount int64, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Role) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Role) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Role) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Role) GetDisplay() string` @@ -132,6 +158,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *Role) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Role) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Role) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Role) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *Role) GetDescription() string` @@ -157,6 +208,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Role) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Role) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Role) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Role) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Role) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Role) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Role) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Role) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Role) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Role) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Role) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Role) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Role) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Role) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Role) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Role) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Role) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Role) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetPrefixCount `func (o *Role) GetPrefixCount() int64` diff --git a/docs/RoleRequest.md b/docs/RoleRequest.md index 4ea26627a6..8a35bd48f6 100644 --- a/docs/RoleRequest.md +++ b/docs/RoleRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *RoleRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RoleRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RoleRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RoleRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *RoleRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RoleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RouteTarget.md b/docs/RouteTarget.md index 55b89b478d..f203abad91 100644 --- a/docs/RouteTarget.md +++ b/docs/RouteTarget.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewRouteTarget -`func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` +`func NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` NewRouteTarget instantiates a new RouteTarget object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RouteTarget) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RouteTarget) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RouteTarget) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RouteTarget) GetDisplay() string` @@ -117,20 +138,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTarget) GetTenant() Tenant` +`func (o *RouteTarget) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTarget) GetTenantOk() (*Tenant, bool)` +`func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTarget) SetTenant(v Tenant)` +`func (o *RouteTarget) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md index 2627327d1b..55aedbd23d 100644 --- a/docs/RouteTargetRequest.md +++ b/docs/RouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -52,20 +52,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTargetRequest) GetTenant() TenantRequest` +`func (o *RouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md index 78ce2dbcbe..88b69affe5 100644 --- a/docs/SavedFilter.md +++ b/docs/SavedFilter.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewSavedFilter -`func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` +`func NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` NewSavedFilter instantiates a new SavedFilter object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SavedFilter) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SavedFilter) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SavedFilter) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *SavedFilter) GetDisplay() string` diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md index 21435ca5df..166791f3f2 100644 --- a/docs/SchemaAPI.md +++ b/docs/SchemaAPI.md @@ -30,7 +30,7 @@ import ( func main() { format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) - lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("cs") // SchemaRetrieveLangParameter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md index aed2056cbe..ffba2fac9d 100644 --- a/docs/SchemaRetrieveLangParameter.md +++ b/docs/SchemaRetrieveLangParameter.md @@ -3,6 +3,10 @@ ## Enum +* `CS` (value: `"cs"`) + +* `DA` (value: `"da"`) + * `DE` (value: `"de"`) * `EN` (value: `"en"`) @@ -11,8 +15,14 @@ * `FR` (value: `"fr"`) +* `IT` (value: `"it"`) + * `JA` (value: `"ja"`) +* `NL` (value: `"nl"`) + +* `PL` (value: `"pl"`) + * `PT` (value: `"pt"`) * `RU` (value: `"ru"`) diff --git a/docs/Script.md b/docs/Script.md index e8ce7b887c..8ddbdc5c7c 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Module** | **int32** | | [readonly] **Name** | **string** | | [readonly] -**Description** | **string** | | [readonly] +**Description** | **NullableString** | | [readonly] **Vars** | **interface{}** | | [readonly] -**Result** | [**Job**](Job.md) | | [readonly] +**Result** | [**BriefJob**](BriefJob.md) | | [readonly] **Display** | **string** | | [readonly] **IsExecutable** | **bool** | | [readonly] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewScript -`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script` +`func NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool, ) *Script` NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, @@ -73,6 +74,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Script) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Script) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Script) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetModule `func (o *Script) GetModule() int32` @@ -133,6 +154,16 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. +### SetDescriptionNil + +`func (o *Script) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Script) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetVars `func (o *Script) GetVars() interface{}` @@ -165,20 +196,20 @@ SetVars sets Vars field to given value. UnsetVars ensures that no value is present for Vars, not even an explicit nil ### GetResult -`func (o *Script) GetResult() Job` +`func (o *Script) GetResult() BriefJob` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *Script) GetResultOk() (*Job, bool)` +`func (o *Script) GetResultOk() (*BriefJob, bool)` GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResult -`func (o *Script) SetResult(v Job)` +`func (o *Script) SetResult(v BriefJob)` SetResult sets Result field to given value. diff --git a/docs/ScriptInputRequest.md b/docs/ScriptInputRequest.md new file mode 100644 index 0000000000..ed5d793996 --- /dev/null +++ b/docs/ScriptInputRequest.md @@ -0,0 +1,154 @@ +# ScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **interface{}** | | +**Commit** | **bool** | | +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewScriptInputRequest + +`func NewScriptInputRequest(data interface{}, commit bool, ) *ScriptInputRequest` + +NewScriptInputRequest instantiates a new ScriptInputRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptInputRequestWithDefaults + +`func NewScriptInputRequestWithDefaults() *ScriptInputRequest` + +NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + + +### SetDataNil + +`func (o *ScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *ScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *ScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *ScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *ScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + + +### GetScheduleAt + +`func (o *ScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *ScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *ScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *ScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *ScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *ScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *ScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *ScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Service.md b/docs/Service.md index 230dccd710..9e154aaf6a 100644 --- a/docs/Service.md +++ b/docs/Service.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachine**](BriefVirtualMachine.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewService -`func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` +`func NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Service) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Service) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Service) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Service) GetDisplay() string` @@ -101,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Service) GetDevice() Device` +`func (o *Service) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Service) GetDeviceOk() (*Device, bool)` +`func (o *Service) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Service) SetDevice(v Device)` +`func (o *Service) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -136,20 +157,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *Service) GetVirtualMachine() VirtualMachine` +`func (o *Service) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *Service) SetVirtualMachine(v VirtualMachine)` +`func (o *Service) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md index bfabf2ad6a..8321249799 100644 --- a/docs/ServiceRequest.md +++ b/docs/ServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ServiceRequest) GetDevice() DeviceRequest` +`func (o *ServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ServiceRequest) SetDevice(v DeviceRequest)` +`func (o *ServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md index a83d4f5cbf..a817c1d462 100644 --- a/docs/ServiceTemplate.md +++ b/docs/ServiceTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewServiceTemplate -`func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` +`func NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` NewServiceTemplate instantiates a new ServiceTemplate object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ServiceTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ServiceTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ServiceTemplate) GetDisplay() string` diff --git a/docs/Site.md b/docs/Site.md index 0458e57f6f..39600dc6ab 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -6,16 +6,39 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegion**](BriefRegion.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroup**](BriefSiteGroup.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | **int64** | | [readonly] +**PrefixCount** | **int64** | | [readonly] +**RackCount** | **int64** | | [readonly] +**VirtualmachineCount** | **int64** | | [readonly] +**VlanCount** | **int64** | | [readonly] ## Methods ### NewSite -`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` +`func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, deviceCount int64, prefixCount int64, rackCount int64, virtualmachineCount int64, vlanCount int64, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -70,6 +93,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Site) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Site) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Site) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Site) GetDisplay() string` @@ -130,6 +173,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *Site) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Site) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Site) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Site) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *Site) GetRegion() BriefRegion` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Site) GetRegionOk() (*BriefRegion, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Site) SetRegion(v BriefRegion)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Site) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Site) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Site) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *Site) GetGroup() BriefSiteGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Site) GetGroupOk() (*BriefSiteGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Site) SetGroup(v BriefSiteGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Site) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Site) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Site) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *Site) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Site) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Site) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Site) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Site) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Site) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Site) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Site) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Site) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Site) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *Site) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *Site) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *Site) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *Site) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *Site) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *Site) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *Site) GetDescription() string` @@ -155,6 +388,406 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *Site) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *Site) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *Site) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *Site) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *Site) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *Site) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *Site) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *Site) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *Site) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *Site) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *Site) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *Site) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *Site) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *Site) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *Site) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *Site) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *Site) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *Site) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *Site) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *Site) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *Site) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Site) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Site) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Site) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Site) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Site) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Site) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Site) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Site) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Site) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Site) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Site) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Site) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Site) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Site) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Site) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Site) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Site) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Site) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Site) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Site) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Site) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Site) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Site) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Site) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Site) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Site) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Site) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Site) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Site) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Site) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Site) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + +### GetPrefixCount + +`func (o *Site) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Site) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Site) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + +### GetRackCount + +`func (o *Site) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Site) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Site) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Site) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Site) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Site) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + + +### GetVlanCount + +`func (o *Site) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Site) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Site) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SiteGroup.md b/docs/SiteGroup.md index b97426cac7..b61125c266 100644 --- a/docs/SiteGroup.md +++ b/docs/SiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewSiteGroup -`func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *SiteGroup) GetDisplay() string` diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md index b12c9721bb..a4efb95449 100644 --- a/docs/SiteRequest.md +++ b/docs/SiteRequest.md @@ -6,7 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +81,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *SiteRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SiteRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SiteRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *SiteRequest) GetRegion() BriefRegionRequest` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *SiteRequest) SetRegion(v BriefRegionRequest)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *SiteRequest) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *SiteRequest) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *SiteRequest) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *SiteRequest) GetGroup() BriefSiteGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *SiteRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *SiteRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *SiteRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *SiteRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *SiteRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *SiteRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *SiteRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *SiteRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *SiteRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *SiteRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *SiteRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *SiteRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *SiteRequest) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SiteRequest) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SiteRequest) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *SiteRequest) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *SiteRequest) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *SiteRequest) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *SiteRequest) GetDescription() string` @@ -92,6 +296,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *SiteRequest) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *SiteRequest) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *SiteRequest) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *SiteRequest) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *SiteRequest) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *SiteRequest) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *SiteRequest) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *SiteRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *SiteRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *SiteRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *SiteRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *SiteRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *SiteRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *SiteRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *SiteRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *SiteRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *SiteRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *SiteRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *SiteRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *SiteRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *SiteRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *SiteRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *SiteRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *SiteRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *SiteRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *SiteRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *SiteRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *SiteRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SiteRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SiteRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SiteRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *SiteRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *SiteRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *SiteRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *SiteRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Subscription.md b/docs/Subscription.md new file mode 100644 index 0000000000..711a6685d9 --- /dev/null +++ b/docs/Subscription.md @@ -0,0 +1,208 @@ +# Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | **interface{}** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | **time.Time** | | [readonly] + +## Methods + +### NewSubscription + +`func NewSubscription(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Subscription` + +NewSubscription instantiates a new Subscription object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubscriptionWithDefaults + +`func NewSubscriptionWithDefaults() *Subscription` + +NewSubscriptionWithDefaults instantiates a new Subscription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Subscription) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Subscription) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Subscription) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Subscription) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Subscription) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Subscription) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Subscription) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Subscription) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *Subscription) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Subscription) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Subscription) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *Subscription) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Subscription) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Subscription) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *Subscription) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Subscription) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Subscription) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Subscription) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *Subscription) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Subscription) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Subscription) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Subscription) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *Subscription) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Subscription) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Subscription) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Subscription) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubscriptionRequest.md b/docs/SubscriptionRequest.md new file mode 100644 index 0000000000..80d3e89e41 --- /dev/null +++ b/docs/SubscriptionRequest.md @@ -0,0 +1,93 @@ +# SubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | + +## Methods + +### NewSubscriptionRequest + +`func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest, ) *SubscriptionRequest` + +NewSubscriptionRequest instantiates a new SubscriptionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubscriptionRequestWithDefaults + +`func NewSubscriptionRequestWithDefaults() *SubscriptionRequest` + +NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *SubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SubscriptionRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *SubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *SubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SubscriptionRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *SubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *SubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *SubscriptionRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tag.md b/docs/Tag.md index 603faa5a08..19bec48eb3 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewTag -`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` +`func NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` NewTag instantiates a new Tag object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tag) GetDisplay() string` diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md index 0314e63970..fd75ebd5c5 100644 --- a/docs/TenancyAPI.md +++ b/docs/TenancyAPI.md @@ -82,7 +82,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -146,7 +146,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -212,7 +212,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -278,7 +278,7 @@ import ( ) func main() { - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -423,10 +423,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -456,8 +456,8 @@ func main() { objectTypeIdN := int32(56) // int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - priority := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) @@ -500,10 +500,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -533,8 +533,8 @@ Name | Type | Description | Notes **objectTypeIdN** | **int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | **q** | **string** | Search | **role** | **[]string** | Contact role (slug) | **roleN** | **[]string** | Contact role (slug) | @@ -726,7 +726,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact assignment. - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1128,10 +1128,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1223,10 +1223,10 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Contact group (slug) | - **ancestorN** | **[]int32** | Contact group (slug) | - **ancestorId** | **[]int32** | Contact group (ID) | - **ancestorIdN** | **[]int32** | Contact group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2655,10 +2655,10 @@ func main() { emailNie := []string{"Inner_example"} // []string | (optional) emailNiew := []string{"Inner_example"} // []string | (optional) emailNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2790,10 +2790,10 @@ Name | Type | Description | Notes **emailNie** | **[]string** | | **emailNiew** | **[]string** | | **emailNisw** | **[]string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3445,10 +3445,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3540,10 +3540,10 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Tenant group (slug) | - **ancestorN** | **[]int32** | Tenant group (slug) | - **ancestorId** | **[]int32** | Tenant group (ID) | - **ancestorIdN** | **[]int32** | Tenant group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4198,8 +4198,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4221,10 +4221,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4295,8 +4295,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4318,10 +4318,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | Tenant group (slug) | - **groupN** | **[]int32** | Tenant group (slug) | - **groupId** | **[]int32** | Tenant group (ID) | - **groupIdN** | **[]int32** | Tenant group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/Tenant.md b/docs/Tenant.md index 68d998dce3..f06a23a14f 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -6,16 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroup**](BriefTenantGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | **int64** | | [readonly] +**IpaddressCount** | **int64** | | [readonly] +**PrefixCount** | **int64** | | [readonly] +**RackCount** | **int64** | | [readonly] +**SiteCount** | **int64** | | [readonly] +**VirtualmachineCount** | **int64** | | [readonly] +**VlanCount** | **int64** | | [readonly] +**VrfCount** | **int64** | | [readonly] +**ClusterCount** | **int64** | | [readonly] ## Methods ### NewTenant -`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` +`func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, deviceCount int64, ipaddressCount int64, prefixCount int64, rackCount int64, siteCount int64, virtualmachineCount int64, vlanCount int64, vrfCount int64, clusterCount int64, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -70,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tenant) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tenant) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tenant) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tenant) GetDisplay() string` @@ -130,6 +167,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *Tenant) GetGroup() BriefTenantGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tenant) SetGroup(v BriefTenantGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tenant) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tenant) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tenant) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *Tenant) GetDescription() string` @@ -155,6 +227,341 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tenant) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tenant) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tenant) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tenant) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tenant) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tenant) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tenant) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tenant) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tenant) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tenant) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tenant) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tenant) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tenant) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tenant) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tenant) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tenant) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tenant) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tenant) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tenant) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tenant) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tenant) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Tenant) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Tenant) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Tenant) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Tenant) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Tenant) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Tenant) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + + +### GetIpaddressCount + +`func (o *Tenant) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *Tenant) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *Tenant) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + +### GetPrefixCount + +`func (o *Tenant) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Tenant) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Tenant) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + +### GetRackCount + +`func (o *Tenant) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Tenant) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Tenant) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetSiteCount + +`func (o *Tenant) GetSiteCount() int64` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *Tenant) GetSiteCountOk() (*int64, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *Tenant) SetSiteCount(v int64)` + +SetSiteCount sets SiteCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Tenant) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Tenant) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + + +### GetVlanCount + +`func (o *Tenant) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Tenant) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Tenant) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + +### GetVrfCount + +`func (o *Tenant) GetVrfCount() int64` + +GetVrfCount returns the VrfCount field if non-nil, zero value otherwise. + +### GetVrfCountOk + +`func (o *Tenant) GetVrfCountOk() (*int64, bool)` + +GetVrfCountOk returns a tuple with the VrfCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrfCount + +`func (o *Tenant) SetVrfCount(v int64)` + +SetVrfCount sets VrfCount field to given value. + + +### GetClusterCount + +`func (o *Tenant) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *Tenant) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *Tenant) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TenantGroup.md b/docs/TenantGroup.md index 22a3d41c5a..229c2960e3 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTenantGroup -`func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TenantGroup) GetDisplay() string` diff --git a/docs/TenantRequest.md b/docs/TenantRequest.md index 7a4881f710..948e6d6e2e 100644 --- a/docs/TenantRequest.md +++ b/docs/TenantRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *TenantRequest) GetGroup() BriefTenantGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TenantRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TenantRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TenantRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *TenantRequest) GetDescription() string` @@ -92,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TenantRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TenantRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TenantRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TenantRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TenantRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TenantRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TenantRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TenantRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TenantRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TenantRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TenantRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TenantRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Token.md b/docs/Token.md index d39896b1ec..1910ba9d44 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewToken -`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` +`func NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, ) *Token` NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Token) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Token) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Token) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Token) GetDisplay() string` @@ -96,20 +117,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *Token) GetUser() User` +`func (o *Token) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Token) GetUserOk() (*User, bool)` +`func (o *Token) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Token) SetUser(v User)` +`func (o *Token) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md index 8b0aa1be20..d0dca806d2 100644 --- a/docs/TokenProvision.md +++ b/docs/TokenProvision.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | **time.Time** | | [readonly] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewTokenProvision -`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` +`func NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` NewTokenProvision instantiates a new TokenProvision object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TokenProvision) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TokenProvision) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TokenProvision) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TokenProvision) GetDisplay() string` @@ -96,20 +117,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *TokenProvision) GetUser() User` +`func (o *TokenProvision) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenProvision) GetUserOk() (*User, bool)` +`func (o *TokenProvision) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenProvision) SetUser(v User)` +`func (o *TokenProvision) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index 06de41a6db..b34549c9cd 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewTokenRequest -`func NewTokenRequest(user UserRequest, ) *TokenRequest` +`func NewTokenRequest(user BriefUserRequest, ) *TokenRequest` NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *TokenRequest) GetUser() UserRequest` +`func (o *TokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenRequest) SetUser(v UserRequest)` +`func (o *TokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/Tunnel.md b/docs/Tunnel.md index 0ed4424722..188930ec15 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Status** | [**TunnelStatus**](TunnelStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroup**](BriefTunnelGroup.md) | | [optional] +**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfile**](BriefIPSecProfile.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**TerminationsCount** | **int64** | | [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` +`func NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tunnel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tunnel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tunnel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tunnel) GetDisplay() string` @@ -109,6 +142,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *Tunnel) GetStatus() TunnelStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Tunnel) SetStatus(v TunnelStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *Tunnel) GetGroup() BriefTunnelGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tunnel) SetGroup(v BriefTunnelGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tunnel) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tunnel) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tunnel) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *Tunnel) GetEncapsulation() TunnelEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *Tunnel) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *Tunnel) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *Tunnel) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *Tunnel) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Tunnel) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Tunnel) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Tunnel) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Tunnel) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Tunnel) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *Tunnel) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *Tunnel) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *Tunnel) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *Tunnel) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *Tunnel) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *Tunnel) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *Tunnel) GetDescription() string` @@ -134,6 +347,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tunnel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tunnel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tunnel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tunnel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tunnel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tunnel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tunnel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tunnel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tunnel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tunnel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tunnel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tunnel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tunnel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tunnel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tunnel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tunnel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tunnel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tunnel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tunnel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tunnel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tunnel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetTerminationsCount + +`func (o *Tunnel) GetTerminationsCount() int64` + +GetTerminationsCount returns the TerminationsCount field if non-nil, zero value otherwise. + +### GetTerminationsCountOk + +`func (o *Tunnel) GetTerminationsCountOk() (*int64, bool)` + +GetTerminationsCountOk returns a tuple with the TerminationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationsCount + +`func (o *Tunnel) SetTerminationsCount(v int64)` + +SetTerminationsCount sets TerminationsCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TunnelEncapsulation.md b/docs/TunnelEncapsulation.md new file mode 100644 index 0000000000..fe7e117168 --- /dev/null +++ b/docs/TunnelEncapsulation.md @@ -0,0 +1,82 @@ +# TunnelEncapsulation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] +**Label** | Pointer to [**TunnelEncapsulationLabel**](TunnelEncapsulationLabel.md) | | [optional] + +## Methods + +### NewTunnelEncapsulation + +`func NewTunnelEncapsulation() *TunnelEncapsulation` + +NewTunnelEncapsulation instantiates a new TunnelEncapsulation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTunnelEncapsulationWithDefaults + +`func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation` + +NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelEncapsulation) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelEncapsulation) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TunnelEncapsulationLabel.md b/docs/TunnelEncapsulationLabel.md new file mode 100644 index 0000000000..9e46fb7c8a --- /dev/null +++ b/docs/TunnelEncapsulationLabel.md @@ -0,0 +1,17 @@ +# TunnelEncapsulationLabel + +## Enum + + +* `I_PSEC___TRANSPORT` (value: `"IPsec - Transport"`) + +* `I_PSEC___TUNNEL` (value: `"IPsec - Tunnel"`) + +* `IP_IN_IP` (value: `"IP-in-IP"`) + +* `GRE` (value: `"GRE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TunnelGroup.md b/docs/TunnelGroup.md index 696dd40403..879e3b5951 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewTunnelGroup -`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` +`func NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` NewTunnelGroup instantiates a new TunnelGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TunnelGroup) GetDisplay() string` diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md index 03d4cda242..37d929b181 100644 --- a/docs/TunnelRequest.md +++ b/docs/TunnelRequest.md @@ -5,13 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewTunnelRequest -`func NewTunnelRequest(name string, ) *TunnelRequest` +`func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest` NewTunnelRequest instantiates a new TunnelRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +55,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TunnelRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TunnelRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TunnelRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *TunnelRequest) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *TunnelRequest) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *TunnelRequest) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *TunnelRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *TunnelRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *TunnelRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *TunnelRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *TunnelRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *TunnelRequest) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *TunnelRequest) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *TunnelRequest) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *TunnelRequest) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *TunnelRequest) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *TunnelRequest) GetDescription() string` @@ -71,6 +260,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TunnelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TunnelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TunnelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TunnelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TunnelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TunnelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TunnelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TunnelStatus.md b/docs/TunnelStatus.md new file mode 100644 index 0000000000..46022ca86c --- /dev/null +++ b/docs/TunnelStatus.md @@ -0,0 +1,82 @@ +# TunnelStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] +**Label** | Pointer to [**TunnelStatusLabel**](TunnelStatusLabel.md) | | [optional] + +## Methods + +### NewTunnelStatus + +`func NewTunnelStatus() *TunnelStatus` + +NewTunnelStatus instantiates a new TunnelStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTunnelStatusWithDefaults + +`func NewTunnelStatusWithDefaults() *TunnelStatus` + +NewTunnelStatusWithDefaults instantiates a new TunnelStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelStatus) GetLabel() TunnelStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *TunnelStatus) SetLabel(v TunnelStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TunnelStatusLabel.md b/docs/TunnelStatusLabel.md new file mode 100644 index 0000000000..8bd96d36a2 --- /dev/null +++ b/docs/TunnelStatusLabel.md @@ -0,0 +1,15 @@ +# TunnelStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DISABLED` (value: `"Disabled"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TunnelTermination.md b/docs/TunnelTermination.md index 1804e64d5b..7fd55af866 100644 --- a/docs/TunnelTermination.md +++ b/docs/TunnelTermination.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Tunnel** | [**Tunnel**](Tunnel.md) | | +**Tunnel** | [**BriefTunnel**](BriefTunnel.md) | | **Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | **Termination** | **interface{}** | | [readonly] -**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTunnelTermination -`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` +`func NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` NewTunnelTermination instantiates a new TunnelTermination object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TunnelTermination) GetDisplay() string` @@ -99,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetTunnel -`func (o *TunnelTermination) GetTunnel() Tunnel` +`func (o *TunnelTermination) GetTunnel() BriefTunnel` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool)` +`func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTermination) SetTunnel(v Tunnel)` +`func (o *TunnelTermination) SetTunnel(v BriefTunnel)` SetTunnel sets Tunnel field to given value. @@ -219,20 +240,20 @@ SetTermination sets Termination field to given value. UnsetTermination ensures that no value is present for Termination, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTermination) GetOutsideIp() IPAddress` +`func (o *TunnelTermination) GetOutsideIp() BriefIPAddress` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool)` +`func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTermination) SetOutsideIp(v IPAddress)` +`func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md index e684cfe200..5466a217e9 100644 --- a/docs/TunnelTerminationRequest.md +++ b/docs/TunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewTunnelTerminationRequest -`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` +`func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -123,20 +123,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/User.md b/docs/User.md index 5312320e34..2513a66710 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,14 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] ## Methods ### NewUser -`func NewUser(id int32, url string, display string, username string, ) *User` +`func NewUser(id int32, url string, displayUrl string, display string, username string, ) *User` NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, @@ -68,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *User) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *User) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *User) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *User) GetDisplay() string` @@ -108,6 +138,241 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetFirstName + +`func (o *User) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *User) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *User) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *User) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *User) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *User) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *User) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *User) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *User) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *User) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *User) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *User) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *User) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *User) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *User) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *User) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *User) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *User) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *User) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *User) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *User) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *User) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *User) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *User) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *User) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *User) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *User) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *User) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *User) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *User) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *User) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *User) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *User) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *User) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *User) GetPermissions() []ObjectPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *User) GetPermissionsOk() (*[]ObjectPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *User) SetPermissions(v []ObjectPermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *User) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UserRequest.md b/docs/UserRequest.md index 58e87259fd..03e64cb5fd 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -5,12 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**Password** | **string** | | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Permissions** | Pointer to **[]int32** | | [optional] ## Methods ### NewUserRequest -`func NewUserRequest(username string, ) *UserRequest` +`func NewUserRequest(username string, password string, ) *UserRequest` NewUserRequest instantiates a new UserRequest object This constructor will assign default values to properties that have it defined, @@ -45,6 +55,261 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetPassword + +`func (o *UserRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *UserRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *UserRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetFirstName + +`func (o *UserRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *UserRequest) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *UserRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *UserRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *UserRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *UserRequest) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *UserRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *UserRequest) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *UserRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UserRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *UserRequest) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *UserRequest) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *UserRequest) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *UserRequest) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *UserRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *UserRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *UserRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *UserRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *UserRequest) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *UserRequest) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *UserRequest) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *UserRequest) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *UserRequest) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *UserRequest) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *UserRequest) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *UserRequest) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *UserRequest) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *UserRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *UserRequest) GetPermissions() []int32` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *UserRequest) GetPermissionsOk() (*[]int32, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *UserRequest) SetPermissions(v []int32)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *UserRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UsersAPI.md b/docs/UsersAPI.md index 2da4d42da5..114471722d 100644 --- a/docs/UsersAPI.md +++ b/docs/UsersAPI.md @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() @@ -487,6 +487,8 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -497,7 +499,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -548,6 +550,8 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -1537,7 +1541,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1601,7 +1605,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1667,7 +1671,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1733,7 +1737,7 @@ import ( ) func main() { - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2243,7 +2247,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this token. - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2314,7 +2318,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2378,7 +2382,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2444,7 +2448,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2510,7 +2514,7 @@ import ( ) func main() { - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2625,7 +2629,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() +> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() @@ -2707,6 +2711,8 @@ func main() { lastNameNiew := []string{"Inner_example"} // []string | (optional) lastNameNisw := []string{"Inner_example"} // []string | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -2726,7 +2732,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2809,6 +2815,8 @@ Name | Type | Description | Notes **lastNameNiew** | **[]string** | | **lastNameNisw** | **[]string** | | **limit** | **int32** | Number of results to return per page. | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -3008,7 +3016,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this user. - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/VLAN.md b/docs/VLAN.md index 81cee5529a..ea177ed1c5 100644 --- a/docs/VLAN.md +++ b/docs/VLAN.md @@ -6,16 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**PrefixCount** | **int64** | | [readonly] ## Methods ### NewVLAN -`func NewVLAN(id int32, url string, display string, vid int32, name string, ) *VLAN` +`func NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, prefixCount int64, ) *VLAN` NewVLAN instantiates a new VLAN object This constructor will assign default values to properties that have it defined, @@ -70,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VLAN) GetDisplay() string` @@ -90,6 +123,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *VLAN) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLAN) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLAN) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLAN) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLAN) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLAN) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLAN) GetGroup() BriefVLANGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLAN) SetGroup(v BriefVLANGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLAN) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLAN) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLAN) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLAN) GetVid() int32` @@ -130,6 +233,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLAN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLAN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLAN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLAN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLAN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLAN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLAN) GetStatus() IPRangeStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLAN) SetStatus(v IPRangeStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLAN) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLAN) GetRole() BriefRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLAN) GetRoleOk() (*BriefRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLAN) SetRole(v BriefRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLAN) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLAN) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLAN) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLAN) GetDescription() string` @@ -155,6 +353,191 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLAN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLAN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLAN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLAN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetL2vpnTermination + +`func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + + +### SetL2vpnTerminationNil + +`func (o *VLAN) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *VLAN) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetTags + +`func (o *VLAN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLAN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLAN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLAN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLAN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLAN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLAN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLAN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VLAN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VLAN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VLAN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VLAN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VLAN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VLAN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VLAN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VLAN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VLAN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetPrefixCount + +`func (o *VLAN) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *VLAN) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *VLAN) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VLANGroup.md b/docs/VLANGroup.md index 6df7b1d13c..8622cfb992 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] **Scope** | **interface{}** | | [readonly] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -26,7 +25,7 @@ Name | Type | Description | Notes ### NewVLANGroup -`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` +`func NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` NewVLANGroup instantiates a new VLANGroup object This constructor will assign default values to properties that have it defined, @@ -81,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VLANGroup) GetDisplay() string` @@ -241,56 +260,6 @@ SetScope sets Scope field to given value. `func (o *VLANGroup) UnsetScope()` UnsetScope ensures that no value is present for Scope, not even an explicit nil -### GetMinVid - -`func (o *VLANGroup) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroup) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroup) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroup) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroup) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroup) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroup) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroup) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroup) GetDescription() string` diff --git a/docs/VLANGroupRequest.md b/docs/VLANGroupRequest.md index efd4ab4ff4..768c049b0a 100644 --- a/docs/VLANGroupRequest.md +++ b/docs/VLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,56 +141,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *VLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *VLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroupRequest) GetDescription() string` diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md index 8ee516347a..0b7ddd1b88 100644 --- a/docs/VLANRequest.md +++ b/docs/VLANRequest.md @@ -4,9 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -27,6 +35,76 @@ NewVLANRequestWithDefaults instantiates a new VLANRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *VLANRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLANRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLANRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLANRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLANRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLANRequest) GetGroup() BriefVLANGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLANRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLANRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLANRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLANRequest) GetVid() int32` @@ -67,6 +145,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLANRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLANRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLANRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLANRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLANRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLANRequest) GetStatus() IPRangeStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLANRequest) SetStatus(v IPRangeStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLANRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLANRequest) GetRole() BriefRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLANRequest) SetRole(v BriefRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLANRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLANRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLANRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLANRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLANRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLANRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLANRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLANRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VLANRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLANRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLANRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLANRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLANRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLANRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLANRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLANRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VMInterface.md b/docs/VMInterface.md index ba4d5ef2c7..6af5432f38 100644 --- a/docs/VMInterface.md +++ b/docs/VMInterface.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] @@ -16,10 +17,10 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewVMInterface -`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` +`func NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` NewVMInterface instantiates a new VMInterface object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VMInterface) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VMInterface) GetVirtualMachine() VirtualMachine` +`func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` +`func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -363,20 +384,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterface) GetUntaggedVlan() VLAN` +`func (o *VMInterface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterface) SetUntaggedVlan(v VLAN)` +`func (o *VMInterface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -423,20 +444,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterface) GetVrf() VRF` +`func (o *VMInterface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterface) GetVrfOk() (*VRF, bool)` +`func (o *VMInterface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterface) SetVrf(v VRF)` +`func (o *VMInterface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -458,20 +479,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` +`func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md index f82ea7526e..9285ac3015 100644 --- a/docs/VMInterfaceRequest.md +++ b/docs/VMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewVMInterfaceRequest -`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest` +`func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *VMInterfaceRequest` NewVMInterfaceRequest instantiates a new VMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterfaceRequest) GetVrf() VRFRequest` +`func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/VRF.md b/docs/VRF.md index e30a5c20ec..b0af7038fb 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -6,17 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpaddressCount** | **int64** | | [readonly] **PrefixCount** | **int64** | | [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, prefixCount int64, ) *VRF` +`func NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64, prefixCount int64, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -71,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VRF) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VRF) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VRF) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VRF) GetDisplay() string` @@ -146,6 +177,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRF) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRF) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRF) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRF) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRF) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRF) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRF) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRF) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRF) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRF) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRF) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRF) GetDescription() string` @@ -171,6 +262,211 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRF) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRF) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRF) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRF) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRF) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRF) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRF) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRF) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRF) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRF) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRF) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRF) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRF) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRF) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRF) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRF) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRF) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRF) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRF) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRF) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VRF) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VRF) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VRF) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VRF) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VRF) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VRF) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VRF) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VRF) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VRF) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VRF) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpaddressCount + +`func (o *VRF) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *VRF) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *VRF) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + ### GetPrefixCount `func (o *VRF) GetPrefixCount() int64` diff --git a/docs/VRFRequest.md b/docs/VRFRequest.md index 6637879c65..292a8949e0 100644 --- a/docs/VRFRequest.md +++ b/docs/VRFRequest.md @@ -6,7 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -82,6 +89,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRFRequest) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRFRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRFRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRFRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRFRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRFRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRFRequest) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRFRequest) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRFRequest) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRFRequest) GetDescription() string` @@ -107,6 +174,131 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRFRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRFRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRFRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRFRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRFRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRFRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRFRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRFRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRFRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRFRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRFRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRFRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRFRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRFRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRFRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRFRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRFRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRFRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRFRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRFRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualChassis.md b/docs/VirtualChassis.md index 325cd6a07a..a69dd31c80 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **MemberCount** | **int32** | | [readonly] +**Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualChassis) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualChassis) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualChassis) GetDisplay() string` @@ -111,6 +139,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassis) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassis) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassis) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassis) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassis) GetMaster() NestedDevice` @@ -171,6 +224,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassis) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassis) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassis) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassis) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassis) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassis) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassis) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassis) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassis) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassis) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassis) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassis) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualChassis) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VirtualChassis) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VirtualChassis) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualChassis) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualChassis) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VirtualChassis) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VirtualChassis) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualChassis) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetMemberCount `func (o *VirtualChassis) GetMemberCount() int32` @@ -191,6 +379,26 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### GetMembers + +`func (o *VirtualChassis) GetMembers() []NestedDevice` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *VirtualChassis) GetMembersOk() (*[]NestedDevice, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *VirtualChassis) SetMembers(v []NestedDevice)` + +SetMembers sets Members field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md index 76fe6fb806..c8f966eb58 100644 --- a/docs/VirtualChassisRequest.md +++ b/docs/VirtualChassisRequest.md @@ -5,8 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -47,6 +51,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassisRequest) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassisRequest) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassisRequest) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassisRequest) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest` @@ -107,6 +136,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassisRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassisRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassisRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassisRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassisRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassisRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassisRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassisRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index 6bdea62eba..e45d92a95f 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -6,14 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -27,7 +28,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDeviceContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDeviceContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualDeviceContext) GetDisplay() string` @@ -124,20 +145,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContext) GetDevice() Device` +`func (o *VirtualDeviceContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContext) SetDevice(v Device)` +`func (o *VirtualDeviceContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -179,20 +200,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContext) GetTenant() Tenant` +`func (o *VirtualDeviceContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContext) SetTenant(v Tenant)` +`func (o *VirtualDeviceContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -214,20 +235,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -244,20 +265,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -279,20 +300,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md index f3436b2b52..2604eb36a9 100644 --- a/docs/VirtualDeviceContextRequest.md +++ b/docs/VirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContextRequest -`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` +`func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md index 2bc24b4e82..abbaa3bc53 100644 --- a/docs/VirtualDisk.md +++ b/docs/VirtualDisk.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewVirtualDisk -`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` +`func NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` NewVirtualDisk instantiates a new VirtualDisk object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDisk) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDisk) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualDisk) GetDisplay() string` @@ -97,20 +118,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine` +`func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)` +`func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md index 3ec5d8bf75..737588e43a 100644 --- a/docs/VirtualDiskRequest.md +++ b/docs/VirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewVirtualDiskRequest -`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` +`func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` NewVirtualDiskRequest instantiates a new VirtualDiskRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index bb09969ee7..062f8d52db 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -6,24 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | Pointer to [**VirtualMachineWithConfigContextStatus**](VirtualMachineWithConfigContextStatus.md) | | [optional] -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -37,7 +39,7 @@ Name | Type | Description | Notes ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -92,6 +94,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualMachineWithConfigContext) GetDisplay() string` @@ -134,20 +156,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus` +`func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool)` +`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)` +`func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus)` SetStatus sets Status field to given value. @@ -159,20 +181,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContext) GetSite() Site` +`func (o *VirtualMachineWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContext) SetSite(v Site)` +`func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -194,20 +216,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster` +`func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)` +`func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -229,20 +251,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContext) GetDevice() Device` +`func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)` +`func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -262,22 +284,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContext) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContext) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContext) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContext) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole` +`func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole)` +`func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -299,20 +346,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant` +`func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant)` +`func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -334,20 +381,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform` +`func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)` +`func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -369,20 +416,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -399,20 +446,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -434,20 +481,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -624,20 +671,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md index 44050ed132..7bc48c4244 100644 --- a/docs/VirtualMachineWithConfigContextRequest.md +++ b/docs/VirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md index b93f4f2661..857336f1ab 100644 --- a/docs/VirtualizationAPI.md +++ b/docs/VirtualizationAPI.md @@ -416,8 +416,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -509,8 +509,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -1565,7 +1565,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1629,7 +1629,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1695,7 +1695,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1761,7 +1761,7 @@ import ( ) func main() { - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1898,8 +1898,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1955,16 +1955,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -1973,10 +1973,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional) @@ -2010,8 +2010,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2067,16 +2067,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -2085,10 +2085,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | Cluster type (slug) | @@ -2279,7 +2279,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this cluster. - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2350,7 +2350,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2414,7 +2414,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2480,7 +2480,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2546,7 +2546,7 @@ import ( ) func main() { - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3076,7 +3076,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3147,7 +3147,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3211,7 +3211,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3277,7 +3277,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3343,7 +3343,7 @@ import ( ) func main() { - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3811,7 +3811,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual disk. - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4193,7 +4193,7 @@ Name | Type | Description | Notes ## VirtualizationVirtualMachinesList -> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() +> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() @@ -4229,8 +4229,8 @@ func main() { configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4327,20 +4327,31 @@ func main() { primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -4349,10 +4360,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4373,7 +4384,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4410,8 +4421,8 @@ Name | Type | Description | Notes **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4508,20 +4519,31 @@ Name | Type | Description | Notes **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) | **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | + **serial** | **[]string** | | + **serialEmpty** | **bool** | | + **serialIc** | **[]string** | | + **serialIe** | **[]string** | | + **serialIew** | **[]string** | | + **serialIsw** | **[]string** | | + **serialN** | **[]string** | | + **serialNic** | **[]string** | | + **serialNie** | **[]string** | | + **serialNiew** | **[]string** | | + **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -4530,10 +4552,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md index 4a260a9e03..b4be1dc00b 100644 --- a/docs/VpnAPI.md +++ b/docs/VpnAPI.md @@ -118,7 +118,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -248,7 +248,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## VpnIkePoliciesList -> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() +> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() @@ -513,10 +513,6 @@ func main() { presharedKeyNie := "presharedKeyNie_example" // string | (optional) presharedKeyNiew := "presharedKeyNiew_example" // string | (optional) presharedKeyNisw := "presharedKeyNisw_example" // string | (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -526,7 +522,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -611,10 +607,6 @@ Name | Type | Description | Notes **presharedKeyNie** | **string** | | **presharedKeyNiew** | **string** | | **presharedKeyNisw** | **string** | | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -875,7 +867,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -939,7 +931,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1005,7 +997,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1937,7 +1929,7 @@ Name | Type | Description | Notes ## VpnIpsecPoliciesList -> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2011,10 +2003,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) pfsGroup := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) pfsGroupN := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2022,7 +2010,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2097,10 +2085,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | **pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2359,7 +2343,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2423,7 +2407,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2489,7 +2473,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2555,7 +2539,7 @@ import ( ) func main() { - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3021,7 +3005,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this IPSec profile. - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3849,7 +3833,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3913,7 +3897,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3979,7 +3963,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4045,7 +4029,7 @@ import ( ) func main() { - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4535,7 +4519,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN termination. - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4802,7 +4786,7 @@ import ( ) func main() { - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5016,10 +5000,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | (optional) @@ -5128,10 +5112,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | | @@ -5320,7 +5304,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN. - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6126,7 +6110,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6190,7 +6174,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6256,7 +6240,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6322,7 +6306,7 @@ import ( ) func main() { - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6774,7 +6758,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this tunnel termination. - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6845,7 +6829,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6909,7 +6893,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6975,7 +6959,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7241,10 +7225,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tunnelId := []int32{int32(123)} // []int32 | (optional) @@ -7344,10 +7328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **tunnelId** | **[]int32** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 146995485d..6f1965a4c8 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewWebhook -`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` +`func NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` NewWebhook instantiates a new Webhook object This constructor will assign default values to properties that have it defined, @@ -81,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Webhook) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Webhook) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Webhook) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Webhook) GetDisplay() string` diff --git a/docs/WirelessAPI.md b/docs/WirelessAPI.md index e35e3430e9..6b26fe066e 100644 --- a/docs/WirelessAPI.md +++ b/docs/WirelessAPI.md @@ -386,10 +386,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | (optional) - ancestorN := []int32{int32(123)} // []int32 | (optional) - ancestorId := []int32{int32(123)} // []int32 | (optional) - ancestorIdN := []int32{int32(123)} // []int32 | (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -481,10 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | | - **ancestorN** | **[]int32** | | - **ancestorId** | **[]int32** | | - **ancestorIdN** | **[]int32** | | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1171,10 +1171,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | (optional) - groupN := []int32{int32(123)} // []int32 | (optional) - groupId := []int32{int32(123)} // []int32 | (optional) - groupIdN := []int32{int32(123)} // []int32 | (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1213,10 +1213,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1280,10 +1280,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | | - **groupN** | **[]int32** | | - **groupId** | **[]int32** | | - **groupIdN** | **[]int32** | | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1322,10 +1322,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1585,7 +1585,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1649,7 +1649,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +1715,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1781,7 +1781,7 @@ import ( ) func main() { - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1896,7 +1896,7 @@ Name | Type | Description | Notes ## WirelessWirelessLinksList -> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1950,6 +1950,15 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + distance := []float64{float64(123)} // []float64 | (optional) + distanceEmpty := true // bool | (optional) + distanceGt := []float64{float64(123)} // []float64 | (optional) + distanceGte := []float64{float64(123)} // []float64 | (optional) + distanceLt := []float64{float64(123)} // []float64 | (optional) + distanceLte := []float64{float64(123)} // []float64 | (optional) + distanceN := []float64{float64(123)} // []float64 | (optional) + distanceUnit := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) + distanceUnitN := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1990,17 +1999,17 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2055,6 +2064,15 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **distance** | **[]float64** | | + **distanceEmpty** | **bool** | | + **distanceGt** | **[]float64** | | + **distanceGte** | **[]float64** | | + **distanceLt** | **[]float64** | | + **distanceLte** | **[]float64** | | + **distanceN** | **[]float64** | | + **distanceUnit** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | + **distanceUnitN** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2095,10 +2113,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2285,7 +2303,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless link. - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/WirelessLAN.md b/docs/WirelessLAN.md index 8bc856e77a..6a61ef291d 100644 --- a/docs/WirelessLAN.md +++ b/docs/WirelessLAN.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroup**](BriefWirelessLANGroup.md) | | [optional] **Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewWirelessLAN -`func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` +`func NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` NewWirelessLAN instantiates a new WirelessLAN object This constructor will assign default values to properties that have it defined, @@ -81,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLAN) GetDisplay() string` @@ -148,20 +169,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLAN) GetGroup() WirelessLANGroup` +`func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool)` +`func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)` +`func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup)` SetGroup sets Group field to given value. @@ -208,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLAN) GetVlan() VLAN` +`func (o *WirelessLAN) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLAN) GetVlanOk() (*VLAN, bool)` +`func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLAN) SetVlan(v VLAN)` +`func (o *WirelessLAN) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -243,20 +264,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLAN) GetTenant() Tenant` +`func (o *WirelessLAN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLAN) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLAN) SetTenant(v Tenant)` +`func (o *WirelessLAN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md index aae3009eb4..2242ea72d5 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLANGroup) GetDisplay() string` @@ -132,6 +158,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetParent + +`func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *WirelessLANGroup) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *WirelessLANGroup) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *WirelessLANGroup) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetDescription `func (o *WirelessLANGroup) GetDescription() string` @@ -157,6 +218,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *WirelessLANGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WirelessLANGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WirelessLANGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WirelessLANGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WirelessLANGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WirelessLANGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WirelessLANGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *WirelessLANGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *WirelessLANGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *WirelessLANGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *WirelessLANGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *WirelessLANGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *WirelessLANGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *WirelessLANGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *WirelessLANGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetWirelesslanCount `func (o *WirelessLANGroup) GetWirelesslanCount() int32` diff --git a/docs/WirelessLANRequest.md b/docs/WirelessLANRequest.md index 84671d6645..b4617be51a 100644 --- a/docs/WirelessLANRequest.md +++ b/docs/WirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLANRequest) GetVlan() VLANRequest` +`func (o *WirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLANRequest) GetTenant() TenantRequest` +`func (o *WirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLink.md b/docs/WirelessLink.md index 9f446e21f7..e1f980a0ef 100644 --- a/docs/WirelessLink.md +++ b/docs/WirelessLink.md @@ -6,15 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**InterfaceA** | [**Interface**](Interface.md) | | -**InterfaceB** | [**Interface**](Interface.md) | | +**InterfaceA** | [**BriefInterface**](BriefInterface.md) | | +**InterfaceB** | [**BriefInterface**](BriefInterface.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkDistanceUnit**](WirelessLinkDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -26,7 +29,7 @@ Name | Type | Description | Notes ### NewWirelessLink -`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` +`func NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` NewWirelessLink instantiates a new WirelessLink object This constructor will assign default values to properties that have it defined, @@ -81,6 +84,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLink) GetDisplay() string` @@ -103,40 +126,40 @@ SetDisplay sets Display field to given value. ### GetInterfaceA -`func (o *WirelessLink) GetInterfaceA() Interface` +`func (o *WirelessLink) GetInterfaceA() BriefInterface` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLink) SetInterfaceA(v Interface)` +`func (o *WirelessLink) SetInterfaceA(v BriefInterface)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLink) GetInterfaceB() Interface` +`func (o *WirelessLink) GetInterfaceB() BriefInterface` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLink) SetInterfaceB(v Interface)` +`func (o *WirelessLink) SetInterfaceB(v BriefInterface)` SetInterfaceB sets InterfaceB field to given value. @@ -168,20 +191,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLink) GetStatus() WirelessLinkStatus` +`func (o *WirelessLink) GetStatus() CableStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool)` +`func (o *WirelessLink) GetStatusOk() (*CableStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLink) SetStatus(v WirelessLinkStatus)` +`func (o *WirelessLink) SetStatus(v CableStatus)` SetStatus sets Status field to given value. @@ -193,20 +216,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLink) GetTenant() Tenant` +`func (o *WirelessLink) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLink) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLink) SetTenant(v Tenant)` +`func (o *WirelessLink) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -301,6 +324,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLink) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLink) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLink) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLink) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLink) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLink) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLink) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLink) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLink) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLink) GetDescription() string` diff --git a/docs/WirelessLinkDistanceUnit.md b/docs/WirelessLinkDistanceUnit.md new file mode 100644 index 0000000000..43edda5558 --- /dev/null +++ b/docs/WirelessLinkDistanceUnit.md @@ -0,0 +1,82 @@ +# WirelessLinkDistanceUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] +**Label** | Pointer to [**WirelessLinkDistanceUnitLabel**](WirelessLinkDistanceUnitLabel.md) | | [optional] + +## Methods + +### NewWirelessLinkDistanceUnit + +`func NewWirelessLinkDistanceUnit() *WirelessLinkDistanceUnit` + +NewWirelessLinkDistanceUnit instantiates a new WirelessLinkDistanceUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWirelessLinkDistanceUnitWithDefaults + +`func NewWirelessLinkDistanceUnitWithDefaults() *WirelessLinkDistanceUnit` + +NewWirelessLinkDistanceUnitWithDefaults instantiates a new WirelessLinkDistanceUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *WirelessLinkDistanceUnit) GetValue() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WirelessLinkDistanceUnit) GetValueOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *WirelessLinkDistanceUnit) SetValue(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *WirelessLinkDistanceUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *WirelessLinkDistanceUnit) GetLabel() WirelessLinkDistanceUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *WirelessLinkDistanceUnit) GetLabelOk() (*WirelessLinkDistanceUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *WirelessLinkDistanceUnit) SetLabel(v WirelessLinkDistanceUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *WirelessLinkDistanceUnit) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessLinkDistanceUnitLabel.md b/docs/WirelessLinkDistanceUnitLabel.md new file mode 100644 index 0000000000..d9598f52d0 --- /dev/null +++ b/docs/WirelessLinkDistanceUnitLabel.md @@ -0,0 +1,17 @@ +# WirelessLinkDistanceUnitLabel + +## Enum + + +* `KILOMETERS` (value: `"Kilometers"`) + +* `METERS` (value: `"Meters"`) + +* `MILES` (value: `"Miles"`) + +* `FEET` (value: `"Feet"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md index cbb26cae56..4cc414500f 100644 --- a/docs/WirelessLinkRequest.md +++ b/docs/WirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkRequestDistanceUnit**](WirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLinkRequest -`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest` +`func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WirelessLinkRequest` NewWirelessLinkRequest instantiates a new WirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLinkRequest) GetDescription() string` diff --git a/docs/WirelessLinkRequestDistanceUnit.md b/docs/WirelessLinkRequestDistanceUnit.md new file mode 100644 index 0000000000..5625206b79 --- /dev/null +++ b/docs/WirelessLinkRequestDistanceUnit.md @@ -0,0 +1,19 @@ +# WirelessLinkRequestDistanceUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessWirelessLinksListDistanceUnitParameter.md b/docs/WirelessWirelessLinksListDistanceUnitParameter.md new file mode 100644 index 0000000000..568a370d29 --- /dev/null +++ b/docs/WirelessWirelessLinksListDistanceUnitParameter.md @@ -0,0 +1,17 @@ +# WirelessWirelessLinksListDistanceUnitParameter + +## Enum + + +* `FT` (value: `"ft"`) + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WritableAggregateRequest.md b/docs/WritableAggregateRequest.md index 169807729f..cbcd91bcde 100644 --- a/docs/WritableAggregateRequest.md +++ b/docs/WritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableAggregateRequest -`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` +`func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest, ) *WritableAggregateRequest` NewWritableAggregateRequest instantiates a new WritableAggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *WritableAggregateRequest) GetRir() RIRRequest` +`func (o *WritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *WritableAggregateRequest) GetTenant() TenantRequest` +`func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md index aef093b34d..cb8fa67e54 100644 --- a/docs/WritableCableRequest.md +++ b/docs/WritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *WritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *WritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCableRequest) GetTenant() TenantRequest` +`func (o *WritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCableRequest) SetTenant(v TenantRequest)` +`func (o *WritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/WritableCircuitGroupAssignmentRequest.md b/docs/WritableCircuitGroupAssignmentRequest.md new file mode 100644 index 0000000000..bd44ef1089 --- /dev/null +++ b/docs/WritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,124 @@ +# WritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewWritableCircuitGroupAssignmentRequest + +`func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest, ) *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *WritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *WritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableCircuitGroupAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md index 02a8ad3f77..8382f981d9 100644 --- a/docs/WritableCircuitRequest.md +++ b/docs/WritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**ProviderRequest**](ProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,12 +17,13 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewWritableCircuitRequest -`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest` +`func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *WritableCircuitRequest` NewWritableCircuitRequest instantiates a new WritableCircuitRequest object This constructor will assign default values to properties that have it defined, @@ -59,40 +60,40 @@ SetCid sets Cid field to given value. ### GetProvider -`func (o *WritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. ### GetProviderAccount -`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -114,40 +115,40 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. ### GetStatus -`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -159,20 +160,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCircuitRequest) GetTenant() TenantRequest` +`func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -397,6 +398,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *WritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *WritableCircuitRequest) HasAssignments() bool` + +HasAssignments returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md index 430b5cf501..d25e42949d 100644 --- a/docs/WritableClusterRequest.md +++ b/docs/WritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableClusterRequest -`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest` +`func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest, ) *WritableClusterRequest` NewWritableClusterRequest instantiates a new WritableClusterRequest object This constructor will assign default values to properties that have it defined, @@ -56,40 +56,40 @@ SetName sets Name field to given value. ### GetType -`func (o *WritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. ### GetGroup -`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -111,20 +111,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -136,20 +136,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableClusterRequest) GetTenant() TenantRequest` +`func (o *WritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -171,20 +171,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *WritableClusterRequest) GetSite() SiteRequest` +`func (o *WritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableClusterRequest) SetSite(v SiteRequest)` +`func (o *WritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md index 0ba0c6885e..9b0b4a502a 100644 --- a/docs/WritableConsolePortRequest.md +++ b/docs/WritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsolePortRequest -`func NewWritableConsolePortRequest(device DeviceRequest, name string, ) *WritableConsolePortRequest` +`func NewWritableConsolePortRequest(device BriefDeviceRequest, name string, ) *WritableConsolePortRequest` NewWritableConsolePortRequest instantiates a new WritableConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index 3799557e89..b675fc60b0 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md index 6af4a78aa1..82d557c25f 100644 --- a/docs/WritableConsoleServerPortRequest.md +++ b/docs/WritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsoleServerPortRequest -`func NewWritableConsoleServerPortRequest(device DeviceRequest, name string, ) *WritableConsoleServerPortRequest` +`func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *WritableConsoleServerPortRequest` NewWritableConsoleServerPortRequest instantiates a new WritableConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index e35a4b9ec4..122f48c6af 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index 678cd6e277..dc94d6b6f2 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableContactAssignmentRequest -`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest` +`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *WritableContactAssignmentRequest` NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index f82e51b730..2e40f45584 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -244,6 +246,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *WritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *WritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *WritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *WritableCustomFieldRequest) GetSearchWeight() int32` @@ -404,6 +431,41 @@ HasDefault returns a boolean if a field has been set. `func (o *WritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *WritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *WritableCustomFieldRequest) GetWeight() int32` @@ -526,20 +588,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md index 02b6809110..aa37a1cc4a 100644 --- a/docs/WritableDataSourceRequest.md +++ b/docs/WritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *WritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *WritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *WritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *WritableDataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *WritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md index 14fb745558..53aefbe6c7 100644 --- a/docs/WritableDeviceTypeRequest.md +++ b/docs/WritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewWritableDeviceTypeRequest -`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` +`func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` NewWritableDeviceTypeRequest instantiates a new WritableDeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,40 +44,40 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### GetDefaultPlatform -`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -324,20 +324,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 0935ed3569..694be056b0 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | [**RackFace1**](RackFace1.md) | | **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -525,20 +525,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -560,20 +560,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -595,20 +595,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -630,20 +630,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -665,20 +665,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -820,20 +820,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md index d091d02bfa..bcd1ad37f2 100644 --- a/docs/WritableEventRuleRequest.md +++ b/docs/WritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableEventRuleRequest -`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` +`func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string, ) *WritableEventRuleRequest` NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *WritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *WritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *WritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *WritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *WritableEventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *WritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *WritableEventRuleRequest) GetConditions() interface{}` diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md index 42fc878268..3038539181 100644 --- a/docs/WritableFrontPortRequest.md +++ b/docs/WritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortRequest -`func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` +`func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` NewWritableFrontPortRequest instantiates a new WritableFrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index 8806917ff8..3aa02af78b 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortTemplateRequest -`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` +`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md index 6eaaca69ad..ca192ccab0 100644 --- a/docs/WritableIPAddressRequest.md +++ b/docs/WritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -59,20 +59,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *WritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -94,20 +94,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md index 5edb8406dc..186e2cb367 100644 --- a/docs/WritableIPRangeRequest.md +++ b/docs/WritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *WritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableIPRangeRequest) GetRole() RoleRequest` +`func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md index f4d30c4c1d..11cd4baa03 100644 --- a/docs/WritableIPSecProfileRequest.md +++ b/docs/WritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableIPSecProfileRequest -`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *WritableIPSecProfileRequest` NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index d0870300e3..f5eb17d110 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewWritableInterfaceRequest -`func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` +`func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *WritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index e5f0f4deb0..503f4e400f 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md index d8d0852be8..df3aa2b333 100644 --- a/docs/WritableL2VPNRequest.md +++ b/docs/WritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | | +**Type** | [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableL2VPNRequest -`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest` +`func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue, ) *WritableL2VPNRequest` NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object This constructor will assign default values to properties that have it defined, @@ -112,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *WritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md index dd699d8189..1e4c81e9b0 100644 --- a/docs/WritableLocationRequest.md +++ b/docs/WritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**SiteRequest**](SiteRequest.md) | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | **Parent** | **NullableInt32** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableLocationRequest -`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest` +`func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32, ) *WritableLocationRequest` NewWritableLocationRequest instantiates a new WritableLocationRequest object This constructor will assign default values to properties that have it defined, @@ -76,20 +76,20 @@ SetSlug sets Slug field to given value. ### GetSite -`func (o *WritableLocationRequest) GetSite() SiteRequest` +`func (o *WritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableLocationRequest) SetSite(v SiteRequest)` +`func (o *WritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -126,20 +126,20 @@ SetParent sets Parent field to given value. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -151,20 +151,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableLocationRequest) GetTenant() TenantRequest` +`func (o *WritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md index 95f95384cc..a815e5e6bf 100644 --- a/docs/WritableModuleRequest.md +++ b/docs/WritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | **int32** | | -**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleRequest -`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *WritableModuleRequest` +`func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest, ) *WritableModuleRequest` NewWritableModuleRequest instantiates a new WritableModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableModuleRequest) GetDevice() DeviceRequest` +`func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value. ### GetModuleType -`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. ### GetStatus -`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md index ada1a71f7e..013d928c9b 100644 --- a/docs/WritableModuleTypeRequest.md +++ b/docs/WritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleTypeRequest -`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest` +`func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *WritableModuleTypeRequest` NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -98,6 +99,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *WritableModuleTypeRequest) GetWeight() float64` @@ -135,20 +161,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index f8ee53481c..c7ee1dfc9a 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewWritablePowerFeedRequest -`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *WritablePowerFeedRequest` +`func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *WritablePowerFeedRequest` NewWritablePowerFeedRequest instantiates a new WritablePowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *WritablePowerFeedRequest) GetRack() RackRequest` +`func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md index 978dfe7616..dcba99ba50 100644 --- a/docs/WritablePowerOutletRequest.md +++ b/docs/WritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerOutletRequest -`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest` +`func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string, ) *WritablePowerOutletRequest` NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -162,20 +162,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index 196e5721af..eae1aa8155 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -174,20 +174,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md index 55d0323088..914481d74b 100644 --- a/docs/WritablePowerPortRequest.md +++ b/docs/WritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerPortRequest -`func NewWritablePowerPortRequest(device DeviceRequest, name string, ) *WritablePowerPortRequest` +`func NewWritablePowerPortRequest(device BriefDeviceRequest, name string, ) *WritablePowerPortRequest` NewWritablePowerPortRequest instantiates a new WritablePowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index 75edd99501..54d00f9c08 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md index 87080ca95c..9ff1ed7816 100644 --- a/docs/WritablePrefixRequest.md +++ b/docs/WritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *WritablePrefixRequest) GetSite() SiteRequest` +`func (o *WritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *WritablePrefixRequest) GetVrf() VRFRequest` +`func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritablePrefixRequest) GetTenant() TenantRequest` +`func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *WritablePrefixRequest) GetVlan() VLANRequest` +`func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritablePrefixRequest) GetRole() RoleRequest` +`func (o *WritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index a9a7cf6f57..864bdfd6a7 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,7 +36,7 @@ Name | Type | Description | Notes ### NewWritableRackRequest -`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest` +`func NewWritableRackRequest(name string, site BriefSiteRequest, ) *WritableRackRequest` NewWritableRackRequest instantiates a new WritableRackRequest object This constructor will assign default values to properties that have it defined, @@ -106,40 +108,40 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *WritableRackRequest) GetSite() SiteRequest` +`func (o *WritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableRackRequest) SetSite(v SiteRequest)` +`func (o *WritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableRackRequest) GetLocation() LocationRequest` +`func (o *WritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableRackRequest) SetLocation(v LocationRequest)` +`func (o *WritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -161,20 +163,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *WritableRackRequest) GetTenant() TenantRequest` +`func (o *WritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableRackRequest) SetTenant(v TenantRequest)` +`func (o *WritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -221,20 +223,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableRackRequest) GetRole() RackRoleRequest` +`func (o *WritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -314,30 +316,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *WritableRackRequest) HasType() bool` +`func (o *WritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *WritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *WritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *WritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -486,20 +523,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -664,6 +701,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *WritableRackRequest) GetDescription() string` diff --git a/docs/WritableRackTypeRequest.md b/docs/WritableRackTypeRequest.md new file mode 100644 index 0000000000..3f393bfaef --- /dev/null +++ b/docs/WritableRackTypeRequest.md @@ -0,0 +1,554 @@ +# WritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableRackTypeRequest + +`func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor, ) *WritableRackTypeRequest` + +NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableRackTypeRequestWithDefaults + +`func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest` + +NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *WritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *WritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *WritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *WritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *WritableRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *WritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *WritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + + +### GetWidth + +`func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *WritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *WritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *WritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *WritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *WritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *WritableRackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *WritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *WritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *WritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *WritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *WritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *WritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *WritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *WritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *WritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *WritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *WritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *WritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *WritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *WritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *WritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *WritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *WritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *WritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *WritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *WritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *WritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *WritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *WritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *WritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *WritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *WritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *WritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *WritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### GetMountingDepth + +`func (o *WritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *WritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *WritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *WritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *WritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *WritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableRackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableRackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md index 5e366e7c53..10050601f7 100644 --- a/docs/WritableRearPortRequest.md +++ b/docs/WritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableRearPortRequest -`func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` +`func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` NewWritableRearPortRequest instantiates a new WritableRearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableRearPortRequest) GetModule() ModuleRequest` +`func (o *WritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 075a046aaa..4e3c43248d 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md index f4617ee50a..2a2d4015e6 100644 --- a/docs/WritableServiceRequest.md +++ b/docs/WritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableServiceRequest) GetDevice() DeviceRequest` +`func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md index d5fe57fa63..fbb616a48d 100644 --- a/docs/WritableSiteRequest.md +++ b/docs/WritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ SetSlug sets Slug field to given value. ### GetStatus -`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -108,20 +108,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *WritableSiteRequest) GetRegion() RegionRequest` +`func (o *WritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *WritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -143,20 +143,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -178,20 +178,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *WritableSiteRequest) GetTenant() TenantRequest` +`func (o *WritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md index 074647508e..68b5e21ad9 100644 --- a/docs/WritableTunnelRequest.md +++ b/docs/WritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -82,20 +82,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value. ### GetIpsecProfile -`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -172,20 +172,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *WritableTunnelRequest) GetTenant() TenantRequest` +`func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md index 99cb6a025d..fc0483773d 100644 --- a/docs/WritableTunnelTerminationRequest.md +++ b/docs/WritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableTunnelTerminationRequest -`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` +`func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -128,20 +128,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/WritableVLANRequest.md b/docs/WritableVLANRequest.md index e9b7620130..cfe381a060 100644 --- a/docs/WritableVLANRequest.md +++ b/docs/WritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *WritableVLANRequest) GetSite() SiteRequest` +`func (o *WritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVLANRequest) SetSite(v SiteRequest)` +`func (o *WritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *WritableVLANRequest) GetTenant() TenantRequest` +`func (o *WritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -207,20 +207,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableVLANRequest) GetRole() RoleRequest` +`func (o *WritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVLANRequest) SetRole(v RoleRequest)` +`func (o *WritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md index 9177b40ec8..a617cbe512 100644 --- a/docs/WritableVMInterfaceRequest.md +++ b/docs/WritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableVMInterfaceRequest -`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` +`func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md index 30df18d9aa..a945ebeaee 100644 --- a/docs/WritableVirtualDeviceContextRequest.md +++ b/docs/WritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableVirtualDeviceContextRequest -`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` +`func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md index c0ebf4e160..c69283c3ce 100644 --- a/docs/WritableVirtualMachineWithConfigContextRequest.md +++ b/docs/WritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md index 2a85bd2193..4da60fd335 100644 --- a/docs/WritableWirelessLANRequest.md +++ b/docs/WritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md index 43c0319461..0708fcc74f 100644 --- a/docs/WritableWirelessLinkRequest.md +++ b/docs/WritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLinkRequest -`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest` +`func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WritableWirelessLinkRequest` NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *WritableWirelessLinkRequest) GetDescription() string` diff --git a/model_aggregate.go b/model_aggregate.go index be5226a6e5..6a6182c06d 100644 --- a/model_aggregate.go +++ b/model_aggregate.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &Aggregate{} type Aggregate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` Prefix string `json:"prefix"` - Rir RIR `json:"rir"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir BriefRIR `json:"rir"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` DateAdded NullableString `json:"date_added,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,10 +45,11 @@ type _Aggregate Aggregate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate { +func NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime) *Aggregate { this := Aggregate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -113,6 +115,30 @@ func (o *Aggregate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Aggregate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Aggregate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Aggregate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Aggregate) GetDisplay() string { if o == nil { @@ -186,9 +212,9 @@ func (o *Aggregate) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *Aggregate) GetRir() RIR { +func (o *Aggregate) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -197,7 +223,7 @@ func (o *Aggregate) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *Aggregate) GetRirOk() (*RIR, bool) { +func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -205,14 +231,14 @@ func (o *Aggregate) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *Aggregate) SetRir(v RIR) { +func (o *Aggregate) SetRir(v BriefRIR) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Aggregate) GetTenant() Tenant { +func (o *Aggregate) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -221,7 +247,7 @@ func (o *Aggregate) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Aggregate) GetTenantOk() (*Tenant, bool) { +func (o *Aggregate) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -237,8 +263,8 @@ func (o *Aggregate) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Aggregate) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Aggregate) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -487,6 +513,7 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -526,6 +553,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "prefix", @@ -563,6 +591,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_aggregate_family.go b/model_aggregate_family.go index c022e4c41a..761f477b5a 100644 --- a/model_aggregate_family.go +++ b/model_aggregate_family.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go index 6702e6180b..0ff05d1c11 100644 --- a/model_aggregate_family_label.go +++ b/model_aggregate_family_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go index 63ca9026fe..17060e9c2e 100644 --- a/model_aggregate_family_value.go +++ b/model_aggregate_family_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_request.go b/model_aggregate_request.go index 886f759d68..47bf759f64 100644 --- a/model_aggregate_request.go +++ b/model_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _AggregateRequest AggregateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest { +func NewAggregateRequest(prefix string, rir BriefRIRRequest) *AggregateRequest { this := AggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *AggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *AggregateRequest) GetRir() RIRRequest { +func (o *AggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *AggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *AggregateRequest) SetRir(v RIRRequest) { +func (o *AggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AggregateRequest) GetTenant() TenantRequest { +func (o *AggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *AggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *AggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *AggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *AggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn.go b/model_asn.go index 971d63862a..de5917b213 100644 --- a/model_asn.go +++ b/model_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &ASN{} // ASN Adds support for custom fields and tags. type ASN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // 16- or 32-bit autonomous system number Asn int64 `json:"asn"` - Rir NullableRIR `json:"rir,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir NullableBriefRIR `json:"rir,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -45,10 +46,11 @@ type _ASN ASN // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { +func NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { this := ASN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Asn = asn this.Created = created @@ -114,6 +116,30 @@ func (o *ASN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ASN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ASN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ASN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ASN) GetDisplay() string { if o == nil { @@ -163,9 +189,9 @@ func (o *ASN) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetRir() RIR { +func (o *ASN) GetRir() BriefRIR { if o == nil || IsNil(o.Rir.Get()) { - var ret RIR + var ret BriefRIR return ret } return *o.Rir.Get() @@ -174,7 +200,7 @@ func (o *ASN) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetRirOk() (*RIR, bool) { +func (o *ASN) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -190,8 +216,8 @@ func (o *ASN) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field. -func (o *ASN) SetRir(v RIR) { +// SetRir gets a reference to the given NullableBriefRIR and assigns it to the Rir field. +func (o *ASN) SetRir(v BriefRIR) { o.Rir.Set(&v) } @@ -206,9 +232,9 @@ func (o *ASN) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetTenant() Tenant { +func (o *ASN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -217,7 +243,7 @@ func (o *ASN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetTenantOk() (*Tenant, bool) { +func (o *ASN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -233,8 +259,8 @@ func (o *ASN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +514,7 @@ func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { @@ -527,6 +554,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "asn", "created", @@ -564,6 +592,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "asn") delete(additionalProperties, "rir") diff --git a/model_asn_range.go b/model_asn_range.go index 037e760ce1..eec2c3d7c2 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &ASNRange{} type ASNRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` - Rir RIR `json:"rir"` + Rir BriefRIR `json:"rir"` Start int64 `json:"start"` End int64 `json:"end"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -45,10 +46,11 @@ type _ASNRange ASNRange // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { this := ASNRange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -117,6 +119,30 @@ func (o *ASNRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ASNRange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ASNRange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ASNRange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ASNRange) GetDisplay() string { if o == nil { @@ -190,9 +216,9 @@ func (o *ASNRange) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRange) GetRir() RIR { +func (o *ASNRange) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -201,7 +227,7 @@ func (o *ASNRange) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRange) GetRirOk() (*RIR, bool) { +func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -209,7 +235,7 @@ func (o *ASNRange) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *ASNRange) SetRir(v RIR) { +func (o *ASNRange) SetRir(v BriefRIR) { o.Rir = v } @@ -262,9 +288,9 @@ func (o *ASNRange) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRange) GetTenant() Tenant { +func (o *ASNRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +299,7 @@ func (o *ASNRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRange) GetTenantOk() (*Tenant, bool) { +func (o *ASNRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +315,8 @@ func (o *ASNRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASNRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASNRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +514,7 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -524,6 +551,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -564,6 +592,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_asn_range_request.go b/model_asn_range_request.go index 83a9d61da5..bfe6fc721a 100644 --- a/model_asn_range_request.go +++ b/model_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir RIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir BriefRIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _ASNRangeRequest ASNRangeRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest { +func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64) *ASNRangeRequest { this := ASNRangeRequest{} this.Name = name this.Slug = slug @@ -105,9 +105,9 @@ func (o *ASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRangeRequest) GetRir() RIRRequest { +func (o *ASNRangeRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -116,7 +116,7 @@ func (o *ASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -124,7 +124,7 @@ func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *ASNRangeRequest) SetRir(v RIRRequest) { +func (o *ASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = v } @@ -177,9 +177,9 @@ func (o *ASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRangeRequest) GetTenant() TenantRequest { +func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -188,7 +188,7 @@ func (o *ASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -204,8 +204,8 @@ func (o *ASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn_request.go b/model_asn_request.go index 2d8e8162f6..d6be5cc35b 100644 --- a/model_asn_request.go +++ b/model_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ASNRequest{} // ASNRequest Adds support for custom fields and tags. type ASNRequest struct { // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn int64 `json:"asn"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,9 +76,9 @@ func (o *ASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetRir() RIRRequest { +func (o *ASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -87,7 +87,7 @@ func (o *ASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -103,8 +103,8 @@ func (o *ASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *ASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *ASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetTenant() TenantRequest { +func (o *ASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -146,8 +146,8 @@ func (o *ASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_authentication.go b/model_authentication.go index 9642d196ed..b52e23501d 100644 --- a/model_authentication.go +++ b/model_authentication.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go index 1c9752516c..bf7ee4e2d6 100644 --- a/model_authentication_cipher.go +++ b/model_authentication_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type.go b/model_authentication_type.go index 87147a4874..e7d389d78b 100644 --- a/model_authentication_type.go +++ b/model_authentication_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go index 7c661a0a62..66ffadf3e4 100644 --- a/model_authentication_type_1.go +++ b/model_authentication_type_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_asn.go b/model_available_asn.go index e398bbbb2f..27d9b270fe 100644 --- a/model_available_asn.go +++ b/model_available_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_ip.go b/model_available_ip.go index b06e6140ca..dd1a13ba45 100644 --- a/model_available_ip.go +++ b/model_available_ip.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &AvailableIP{} // AvailableIP Representation of an IP address which does not exist in the database. type AvailableIP struct { - Family int32 `json:"family"` - Address string `json:"address"` - Vrf NullableVRF `json:"vrf"` - Description *string `json:"description,omitempty"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _AvailableIP AvailableIP // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP { +func NewAvailableIP(family int32, address string, vrf NullableBriefVRF) *AvailableIP { this := AvailableIP{} this.Family = family this.Address = address @@ -98,10 +98,10 @@ func (o *AvailableIP) SetAddress(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailableIP) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailableIP) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -111,7 +111,7 @@ func (o *AvailableIP) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableIP) GetVrfOk() (*VRF, bool) { +func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *AvailableIP) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailableIP) SetVrf(v VRF) { +func (o *AvailableIP) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_prefix.go b/model_available_prefix.go index 6efa0386c8..9ff51b590b 100644 --- a/model_available_prefix.go +++ b/model_available_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &AvailablePrefix{} // AvailablePrefix Representation of a prefix which does not exist in the database. type AvailablePrefix struct { - Family int32 `json:"family"` - Prefix string `json:"prefix"` - Vrf NullableVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRF `json:"vrf"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _AvailablePrefix AvailablePrefix // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix { +func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF) *AvailablePrefix { this := AvailablePrefix{} this.Family = family this.Prefix = prefix @@ -97,10 +97,10 @@ func (o *AvailablePrefix) SetPrefix(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailablePrefix) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailablePrefix) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -110,7 +110,7 @@ func (o *AvailablePrefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { +func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -118,7 +118,7 @@ func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailablePrefix) SetVrf(v VRF) { +func (o *AvailablePrefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_vlan.go b/model_available_vlan.go index 8228b8d059..7975395cb9 100644 --- a/model_available_vlan.go +++ b/model_available_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NullableVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NullableBriefVLANGroup `json:"group"` AdditionalProperties map[string]interface{} } @@ -31,7 +31,7 @@ type _AvailableVLAN AvailableVLAN // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN { +func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup) *AvailableVLAN { this := AvailableVLAN{} this.Vid = vid this.Group = group @@ -71,10 +71,10 @@ func (o *AvailableVLAN) SetVid(v int32) { } // GetGroup returns the Group field value -// If the value is explicit nil, the zero value for VLANGroup will be returned -func (o *AvailableVLAN) GetGroup() VLANGroup { +// If the value is explicit nil, the zero value for BriefVLANGroup will be returned +func (o *AvailableVLAN) GetGroup() BriefVLANGroup { if o == nil || o.Group.Get() == nil { - var ret VLANGroup + var ret BriefVLANGroup return ret } @@ -84,7 +84,7 @@ func (o *AvailableVLAN) GetGroup() VLANGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { +func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { if o == nil { return nil, false } @@ -92,7 +92,7 @@ func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { } // SetGroup sets field value -func (o *AvailableVLAN) SetGroup(v VLANGroup) { +func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) { o.Group.Set(&v) } diff --git a/model_bookmark.go b/model_bookmark.go index 6552b0da19..cf080af13c 100644 --- a/model_bookmark.go +++ b/model_bookmark.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,7 +27,7 @@ type Bookmark struct { ObjectType string `json:"object_type"` ObjectId int64 `json:"object_id"` Object interface{} `json:"object"` - User User `json:"user"` + User BriefUser `json:"user"` Created time.Time `json:"created"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _Bookmark Bookmark // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time) *Bookmark { +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Bookmark { this := Bookmark{} this.Id = id this.Url = url @@ -206,9 +206,9 @@ func (o *Bookmark) SetObject(v interface{}) { } // GetUser returns the User field value -func (o *Bookmark) GetUser() User { +func (o *Bookmark) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -217,7 +217,7 @@ func (o *Bookmark) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Bookmark) GetUserOk() (*User, bool) { +func (o *Bookmark) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -225,7 +225,7 @@ func (o *Bookmark) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Bookmark) SetUser(v User) { +func (o *Bookmark) SetUser(v BriefUser) { o.User = v } diff --git a/model_bookmark_request.go b/model_bookmark_request.go index 22932dcd2c..fbf72a1d11 100644 --- a/model_bookmark_request.go +++ b/model_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &BookmarkRequest{} // BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BookmarkRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User UserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBookmarkRequest(objectType string, objectId int64, user UserRequest) *BookmarkRequest { +func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest { this := BookmarkRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -97,9 +97,9 @@ func (o *BookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value -func (o *BookmarkRequest) GetUser() UserRequest { +func (o *BookmarkRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -108,7 +108,7 @@ func (o *BookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -116,7 +116,7 @@ func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *BookmarkRequest) SetUser(v UserRequest) { +func (o *BookmarkRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_brief_cable.go b/model_brief_cable.go new file mode 100644 index 0000000000..7a28fd7acd --- /dev/null +++ b/model_brief_cable.go @@ -0,0 +1,298 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCable{} + +// BriefCable Adds support for custom fields and tags. +type BriefCable struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCable BriefCable + +// NewBriefCable instantiates a new BriefCable object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCable(id int32, url string, display string) *BriefCable { + this := BriefCable{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefCableWithDefaults instantiates a new BriefCable object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCableWithDefaults() *BriefCable { + this := BriefCable{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCable) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCable) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCable) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCable) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCable) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCable) SetDisplay(v string) { + o.Display = v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCable) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCable) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCable) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *BriefCable) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCable) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCable) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCable) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCable) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCable) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCable) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCable := _BriefCable{} + + err = json.Unmarshal(data, &varBriefCable) + + if err != nil { + return err + } + + *o = BriefCable(varBriefCable) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCable struct { + value *BriefCable + isSet bool +} + +func (v NullableBriefCable) Get() *BriefCable { + return v.value +} + +func (v *NullableBriefCable) Set(val *BriefCable) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCable) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCable(val *BriefCable) *NullableBriefCable { + return &NullableBriefCable{value: val, isSet: true} +} + +func (v NullableBriefCable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go new file mode 100644 index 0000000000..5b7c80bbb7 --- /dev/null +++ b/model_brief_cable_request.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCableRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCableRequest{} + +// BriefCableRequest Adds support for custom fields and tags. +type BriefCableRequest struct { + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCableRequest BriefCableRequest + +// NewBriefCableRequest instantiates a new BriefCableRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCableRequest() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// NewBriefCableRequestWithDefaults instantiates a new BriefCableRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCableRequestWithDefaults() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCableRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCableRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCableRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *BriefCableRequest) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCableRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCableRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCableRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCableRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCableRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCableRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCableRequest) UnmarshalJSON(data []byte) (err error) { + varBriefCableRequest := _BriefCableRequest{} + + err = json.Unmarshal(data, &varBriefCableRequest) + + if err != nil { + return err + } + + *o = BriefCableRequest(varBriefCableRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCableRequest struct { + value *BriefCableRequest + isSet bool +} + +func (v NullableBriefCableRequest) Get() *BriefCableRequest { + return v.value +} + +func (v *NullableBriefCableRequest) Set(val *BriefCableRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCableRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCableRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCableRequest(val *BriefCableRequest) *NullableBriefCableRequest { + return &NullableBriefCableRequest{value: val, isSet: true} +} + +func (v NullableBriefCableRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCableRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit.go b/model_brief_circuit.go new file mode 100644 index 0000000000..a8c6ed93d3 --- /dev/null +++ b/model_brief_circuit.go @@ -0,0 +1,320 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuit{} + +// BriefCircuit Adds support for custom fields and tags. +type BriefCircuit struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuit BriefCircuit + +// NewBriefCircuit instantiates a new BriefCircuit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuit(id int32, url string, display string, cid string, provider BriefProvider) *BriefCircuit { + this := BriefCircuit{} + this.Id = id + this.Url = url + this.Display = display + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitWithDefaults instantiates a new BriefCircuit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitWithDefaults() *BriefCircuit { + this := BriefCircuit{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuit) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuit) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuit) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuit) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuit) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuit) SetDisplay(v string) { + o.Display = v +} + +// GetCid returns the Cid field value +func (o *BriefCircuit) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuit) SetCid(v string) { + o.Cid = v +} + +// GetProvider returns the Provider field value +func (o *BriefCircuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuit) SetProvider(v BriefProvider) { + o.Provider = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuit) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuit) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuit) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "cid", + "provider", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuit := _BriefCircuit{} + + err = json.Unmarshal(data, &varBriefCircuit) + + if err != nil { + return err + } + + *o = BriefCircuit(varBriefCircuit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuit struct { + value *BriefCircuit + isSet bool +} + +func (v NullableBriefCircuit) Get() *BriefCircuit { + return v.value +} + +func (v *NullableBriefCircuit) Set(val *BriefCircuit) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuit) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuit(val *BriefCircuit) *NullableBriefCircuit { + return &NullableBriefCircuit{value: val, isSet: true} +} + +func (v NullableBriefCircuit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go new file mode 100644 index 0000000000..d1b0a1ab0b --- /dev/null +++ b/model_brief_circuit_group.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroup{} + +// BriefCircuitGroup Adds support for custom fields and tags. +type BriefCircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroup BriefCircuitGroup + +// NewBriefCircuitGroup instantiates a new BriefCircuitGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroup(id int32, url string, display string, name string) *BriefCircuitGroup { + this := BriefCircuitGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefCircuitGroupWithDefaults instantiates a new BriefCircuitGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupWithDefaults() *BriefCircuitGroup { + this := BriefCircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCircuitGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroup) SetName(v string) { + o.Name = v +} + +func (o BriefCircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroup := _BriefCircuitGroup{} + + err = json.Unmarshal(data, &varBriefCircuitGroup) + + if err != nil { + return err + } + + *o = BriefCircuitGroup(varBriefCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroup struct { + value *BriefCircuitGroup + isSet bool +} + +func (v NullableBriefCircuitGroup) Get() *BriefCircuitGroup { + return v.value +} + +func (v *NullableBriefCircuitGroup) Set(val *BriefCircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroup(val *BriefCircuitGroup) *NullableBriefCircuitGroup { + return &NullableBriefCircuitGroup{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go new file mode 100644 index 0000000000..d3be5f3d18 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializer{} + +// BriefCircuitGroupAssignmentSerializer Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializer BriefCircuitGroupAssignmentSerializer + +// NewBriefCircuitGroupAssignmentSerializer instantiates a new BriefCircuitGroupAssignmentSerializer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializer(id int32, url string, display string, group BriefCircuitGroup) *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + this.Id = id + this.Url = url + this.Display = display + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerWithDefaults() *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroupAssignmentSerializer) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitGroupAssignmentSerializer) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroupAssignmentSerializer) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string) { + o.Display = v +} + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializer) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "group", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupAssignmentSerializer := _BriefCircuitGroupAssignmentSerializer{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializer) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializer(varBriefCircuitGroupAssignmentSerializer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializer struct { + value *BriefCircuitGroupAssignmentSerializer + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) Get() *BriefCircuitGroupAssignmentSerializer { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Set(val *BriefCircuitGroupAssignmentSerializer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializer(val *BriefCircuitGroupAssignmentSerializer) *NullableBriefCircuitGroupAssignmentSerializer { + return &NullableBriefCircuitGroupAssignmentSerializer{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go new file mode 100644 index 0000000000..f42c396c92 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCircuitGroupAssignmentSerializerPriority type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerPriority{} + +// BriefCircuitGroupAssignmentSerializerPriority struct for BriefCircuitGroupAssignmentSerializerPriority +type BriefCircuitGroupAssignmentSerializerPriority struct { + Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"` + Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerPriority BriefCircuitGroupAssignmentSerializerPriority + +// NewBriefCircuitGroupAssignmentSerializerPriority instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializerPriority() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValue() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Value) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValueOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Value field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetValue(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabel() BriefCircuitGroupAssignmentSerializerPriorityLabel { + if o == nil || IsNil(o.Label) { + var ret BriefCircuitGroupAssignmentSerializerPriorityLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabelOk() (*BriefCircuitGroupAssignmentSerializerPriorityLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityLabel and assigns it to the Label field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitGroupAssignmentSerializerPriorityLabel) { + o.Label = &v +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(data []byte) (err error) { + varBriefCircuitGroupAssignmentSerializerPriority := _BriefCircuitGroupAssignmentSerializerPriority{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerPriority) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerPriority(varBriefCircuitGroupAssignmentSerializerPriority) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerPriority struct { + value *BriefCircuitGroupAssignmentSerializerPriority + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) Get() *BriefCircuitGroupAssignmentSerializerPriority { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Set(val *BriefCircuitGroupAssignmentSerializerPriority) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriority(val *BriefCircuitGroupAssignmentSerializerPriority) *NullableBriefCircuitGroupAssignmentSerializerPriority { + return &NullableBriefCircuitGroupAssignmentSerializerPriority{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go new file mode 100644 index 0000000000..0a5024f8ad --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityLabel the model 'BriefCircuitGroupAssignmentSerializerPriorityLabel' +type BriefCircuitGroupAssignmentSerializerPriorityLabel string + +// List of BriefCircuitGroupAssignmentSerializer__priority_label +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityLabel enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityLabel{ + "Primary", + "Secondary", + "Tertiary", + "Inactive", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityLabel(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityLabel", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityLabel, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityLabel: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_label value +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityLabel struct { + value *BriefCircuitGroupAssignmentSerializerPriorityLabel + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Get() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Set(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityLabel(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityLabel{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go new file mode 100644 index 0000000000..d4ae85a091 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityValue * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +type BriefCircuitGroupAssignmentSerializerPriorityValue string + +// List of BriefCircuitGroupAssignmentSerializer__priority_value +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityValue = "secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = "" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityValue enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityValue{ + "primary", + "secondary", + "tertiary", + "inactive", + "", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityValue(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityValue", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityValue, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityValue: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_value value +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityValue struct { + value *BriefCircuitGroupAssignmentSerializerPriorityValue + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Get() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Set(val *BriefCircuitGroupAssignmentSerializerPriorityValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityValue(val *BriefCircuitGroupAssignmentSerializerPriorityValue) *NullableBriefCircuitGroupAssignmentSerializerPriorityValue { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityValue{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go new file mode 100644 index 0000000000..ec7ad6d36b --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerRequest{} + +// BriefCircuitGroupAssignmentSerializerRequest Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializerRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerRequest BriefCircuitGroupAssignmentSerializerRequest + +// NewBriefCircuitGroupAssignmentSerializerRequest instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest) *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupAssignmentSerializerRequest := _BriefCircuitGroupAssignmentSerializerRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerRequest(varBriefCircuitGroupAssignmentSerializerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerRequest struct { + value *BriefCircuitGroupAssignmentSerializerRequest + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) Get() *BriefCircuitGroupAssignmentSerializerRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Set(val *BriefCircuitGroupAssignmentSerializerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerRequest(val *BriefCircuitGroupAssignmentSerializerRequest) *NullableBriefCircuitGroupAssignmentSerializerRequest { + return &NullableBriefCircuitGroupAssignmentSerializerRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go new file mode 100644 index 0000000000..e3ffa0b946 --- /dev/null +++ b/model_brief_circuit_group_request.go @@ -0,0 +1,166 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupRequest{} + +// BriefCircuitGroupRequest Adds support for custom fields and tags. +type BriefCircuitGroupRequest struct { + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupRequest BriefCircuitGroupRequest + +// NewBriefCircuitGroupRequest instantiates a new BriefCircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupRequest(name string) *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + this.Name = name + return &this +} + +// NewBriefCircuitGroupRequestWithDefaults instantiates a new BriefCircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupRequestWithDefaults() *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroupRequest) SetName(v string) { + o.Name = v +} + +func (o BriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupRequest := _BriefCircuitGroupRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupRequest(varBriefCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupRequest struct { + value *BriefCircuitGroupRequest + isSet bool +} + +func (v NullableBriefCircuitGroupRequest) Get() *BriefCircuitGroupRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupRequest) Set(val *BriefCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupRequest(val *BriefCircuitGroupRequest) *NullableBriefCircuitGroupRequest { + return &NullableBriefCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go new file mode 100644 index 0000000000..bd236fc476 --- /dev/null +++ b/model_brief_circuit_request.go @@ -0,0 +1,233 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitRequest{} + +// BriefCircuitRequest Adds support for custom fields and tags. +type BriefCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitRequest BriefCircuitRequest + +// NewBriefCircuitRequest instantiates a new BriefCircuitRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitRequest(cid string, provider BriefProviderRequest) *BriefCircuitRequest { + this := BriefCircuitRequest{} + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitRequestWithDefaults instantiates a new BriefCircuitRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitRequestWithDefaults() *BriefCircuitRequest { + this := BriefCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *BriefCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuitRequest) SetCid(v string) { + o.Cid = v +} + +// GetProvider returns the Provider field value +func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitRequest := _BriefCircuitRequest{} + + err = json.Unmarshal(data, &varBriefCircuitRequest) + + if err != nil { + return err + } + + *o = BriefCircuitRequest(varBriefCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitRequest struct { + value *BriefCircuitRequest + isSet bool +} + +func (v NullableBriefCircuitRequest) Get() *BriefCircuitRequest { + return v.value +} + +func (v *NullableBriefCircuitRequest) Set(val *BriefCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitRequest(val *BriefCircuitRequest) *NullableBriefCircuitRequest { + return &NullableBriefCircuitRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go new file mode 100644 index 0000000000..5240c922ff --- /dev/null +++ b/model_brief_circuit_type.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitType{} + +// BriefCircuitType Adds support for custom fields and tags. +type BriefCircuitType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitType BriefCircuitType + +// NewBriefCircuitType instantiates a new BriefCircuitType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefCircuitType { + this := BriefCircuitType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefCircuitTypeWithDefaults instantiates a new BriefCircuitType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitTypeWithDefaults() *BriefCircuitType { + this := BriefCircuitType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitType) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCircuitType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitType) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefCircuitType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitType) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefCircuitType) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefCircuitType) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o BriefCircuitType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitType := _BriefCircuitType{} + + err = json.Unmarshal(data, &varBriefCircuitType) + + if err != nil { + return err + } + + *o = BriefCircuitType(varBriefCircuitType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitType struct { + value *BriefCircuitType + isSet bool +} + +func (v NullableBriefCircuitType) Get() *BriefCircuitType { + return v.value +} + +func (v *NullableBriefCircuitType) Set(val *BriefCircuitType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitType(val *BriefCircuitType) *NullableBriefCircuitType { + return &NullableBriefCircuitType{value: val, isSet: true} +} + +func (v NullableBriefCircuitType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go new file mode 100644 index 0000000000..7225e8e9fe --- /dev/null +++ b/model_brief_circuit_type_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitTypeRequest{} + +// BriefCircuitTypeRequest Adds support for custom fields and tags. +type BriefCircuitTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitTypeRequest BriefCircuitTypeRequest + +// NewBriefCircuitTypeRequest instantiates a new BriefCircuitTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitTypeRequest(name string, slug string) *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefCircuitTypeRequestWithDefaults instantiates a new BriefCircuitTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitTypeRequestWithDefaults() *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitTypeRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitTypeRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefCircuitTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitTypeRequest := _BriefCircuitTypeRequest{} + + err = json.Unmarshal(data, &varBriefCircuitTypeRequest) + + if err != nil { + return err + } + + *o = BriefCircuitTypeRequest(varBriefCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitTypeRequest struct { + value *BriefCircuitTypeRequest + isSet bool +} + +func (v NullableBriefCircuitTypeRequest) Get() *BriefCircuitTypeRequest { + return v.value +} + +func (v *NullableBriefCircuitTypeRequest) Set(val *BriefCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitTypeRequest(val *BriefCircuitTypeRequest) *NullableBriefCircuitTypeRequest { + return &NullableBriefCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster.go b/model_brief_cluster.go new file mode 100644 index 0000000000..c581e65a43 --- /dev/null +++ b/model_brief_cluster.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCluster type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCluster{} + +// BriefCluster Adds support for custom fields and tags. +type BriefCluster struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + VirtualmachineCount int64 `json:"virtualmachine_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCluster BriefCluster + +// NewBriefCluster instantiates a new BriefCluster object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCluster(id int32, url string, display string, name string, virtualmachineCount int64) *BriefCluster { + this := BriefCluster{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.VirtualmachineCount = virtualmachineCount + return &this +} + +// NewBriefClusterWithDefaults instantiates a new BriefCluster object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterWithDefaults() *BriefCluster { + this := BriefCluster{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCluster) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCluster) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCluster) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCluster) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCluster) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCluster) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCluster) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCluster) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCluster) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCluster) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCluster) SetDescription(v string) { + o.Description = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value +func (o *BriefCluster) GetVirtualmachineCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualmachineCount, true +} + +// SetVirtualmachineCount sets field value +func (o *BriefCluster) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = v +} + +func (o BriefCluster) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCluster) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "virtualmachine_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCluster := _BriefCluster{} + + err = json.Unmarshal(data, &varBriefCluster) + + if err != nil { + return err + } + + *o = BriefCluster(varBriefCluster) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCluster struct { + value *BriefCluster + isSet bool +} + +func (v NullableBriefCluster) Get() *BriefCluster { + return v.value +} + +func (v *NullableBriefCluster) Set(val *BriefCluster) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCluster(val *BriefCluster) *NullableBriefCluster { + return &NullableBriefCluster{value: val, isSet: true} +} + +func (v NullableBriefCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go new file mode 100644 index 0000000000..d747246f12 --- /dev/null +++ b/model_brief_cluster_group.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroup{} + +// BriefClusterGroup Adds support for custom fields and tags. +type BriefClusterGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroup BriefClusterGroup + +// NewBriefClusterGroup instantiates a new BriefClusterGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterGroup(id int32, url string, display string, name string, slug string, clusterCount int64) *BriefClusterGroup { + this := BriefClusterGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ClusterCount = clusterCount + return &this +} + +// NewBriefClusterGroupWithDefaults instantiates a new BriefClusterGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterGroupWithDefaults() *BriefClusterGroup { + this := BriefClusterGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefClusterGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefClusterGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefClusterGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterGroup) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value +func (o *BriefClusterGroup) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *BriefClusterGroup) SetClusterCount(v int64) { + o.ClusterCount = v +} + +func (o BriefClusterGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cluster_count"] = o.ClusterCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "cluster_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterGroup := _BriefClusterGroup{} + + err = json.Unmarshal(data, &varBriefClusterGroup) + + if err != nil { + return err + } + + *o = BriefClusterGroup(varBriefClusterGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroup struct { + value *BriefClusterGroup + isSet bool +} + +func (v NullableBriefClusterGroup) Get() *BriefClusterGroup { + return v.value +} + +func (v *NullableBriefClusterGroup) Set(val *BriefClusterGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroup(val *BriefClusterGroup) *NullableBriefClusterGroup { + return &NullableBriefClusterGroup{value: val, isSet: true} +} + +func (v NullableBriefClusterGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go new file mode 100644 index 0000000000..f1f6ca58b4 --- /dev/null +++ b/model_brief_cluster_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroupRequest{} + +// BriefClusterGroupRequest Adds support for custom fields and tags. +type BriefClusterGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroupRequest BriefClusterGroupRequest + +// NewBriefClusterGroupRequest instantiates a new BriefClusterGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterGroupRequest(name string, slug string) *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterGroupRequestWithDefaults instantiates a new BriefClusterGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterGroupRequestWithDefaults() *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterGroupRequest := _BriefClusterGroupRequest{} + + err = json.Unmarshal(data, &varBriefClusterGroupRequest) + + if err != nil { + return err + } + + *o = BriefClusterGroupRequest(varBriefClusterGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroupRequest struct { + value *BriefClusterGroupRequest + isSet bool +} + +func (v NullableBriefClusterGroupRequest) Get() *BriefClusterGroupRequest { + return v.value +} + +func (v *NullableBriefClusterGroupRequest) Set(val *BriefClusterGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroupRequest(val *BriefClusterGroupRequest) *NullableBriefClusterGroupRequest { + return &NullableBriefClusterGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go new file mode 100644 index 0000000000..79535ab10f --- /dev/null +++ b/model_brief_cluster_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterRequest{} + +// BriefClusterRequest Adds support for custom fields and tags. +type BriefClusterRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterRequest BriefClusterRequest + +// NewBriefClusterRequest instantiates a new BriefClusterRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterRequest(name string) *BriefClusterRequest { + this := BriefClusterRequest{} + this.Name = name + return &this +} + +// NewBriefClusterRequestWithDefaults instantiates a new BriefClusterRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterRequestWithDefaults() *BriefClusterRequest { + this := BriefClusterRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterRequest := _BriefClusterRequest{} + + err = json.Unmarshal(data, &varBriefClusterRequest) + + if err != nil { + return err + } + + *o = BriefClusterRequest(varBriefClusterRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterRequest struct { + value *BriefClusterRequest + isSet bool +} + +func (v NullableBriefClusterRequest) Get() *BriefClusterRequest { + return v.value +} + +func (v *NullableBriefClusterRequest) Set(val *BriefClusterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterRequest(val *BriefClusterRequest) *NullableBriefClusterRequest { + return &NullableBriefClusterRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go new file mode 100644 index 0000000000..369f920b5d --- /dev/null +++ b/model_brief_cluster_type.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterType{} + +// BriefClusterType Adds support for custom fields and tags. +type BriefClusterType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterType BriefClusterType + +// NewBriefClusterType instantiates a new BriefClusterType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterType(id int32, url string, display string, name string, slug string, clusterCount int64) *BriefClusterType { + this := BriefClusterType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ClusterCount = clusterCount + return &this +} + +// NewBriefClusterTypeWithDefaults instantiates a new BriefClusterType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterTypeWithDefaults() *BriefClusterType { + this := BriefClusterType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefClusterType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefClusterType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterType) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefClusterType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterType) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterType) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value +func (o *BriefClusterType) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *BriefClusterType) SetClusterCount(v int64) { + o.ClusterCount = v +} + +func (o BriefClusterType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cluster_count"] = o.ClusterCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "cluster_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterType := _BriefClusterType{} + + err = json.Unmarshal(data, &varBriefClusterType) + + if err != nil { + return err + } + + *o = BriefClusterType(varBriefClusterType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterType struct { + value *BriefClusterType + isSet bool +} + +func (v NullableBriefClusterType) Get() *BriefClusterType { + return v.value +} + +func (v *NullableBriefClusterType) Set(val *BriefClusterType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterType(val *BriefClusterType) *NullableBriefClusterType { + return &NullableBriefClusterType{value: val, isSet: true} +} + +func (v NullableBriefClusterType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go new file mode 100644 index 0000000000..a01bf48ce5 --- /dev/null +++ b/model_brief_cluster_type_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterTypeRequest{} + +// BriefClusterTypeRequest Adds support for custom fields and tags. +type BriefClusterTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterTypeRequest BriefClusterTypeRequest + +// NewBriefClusterTypeRequest instantiates a new BriefClusterTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterTypeRequest(name string, slug string) *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterTypeRequestWithDefaults instantiates a new BriefClusterTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterTypeRequestWithDefaults() *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterTypeRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterTypeRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterTypeRequest := _BriefClusterTypeRequest{} + + err = json.Unmarshal(data, &varBriefClusterTypeRequest) + + if err != nil { + return err + } + + *o = BriefClusterTypeRequest(varBriefClusterTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterTypeRequest struct { + value *BriefClusterTypeRequest + isSet bool +} + +func (v NullableBriefClusterTypeRequest) Get() *BriefClusterTypeRequest { + return v.value +} + +func (v *NullableBriefClusterTypeRequest) Set(val *BriefClusterTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterTypeRequest(val *BriefClusterTypeRequest) *NullableBriefClusterTypeRequest { + return &NullableBriefClusterTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_config_template.go b/model_brief_config_template.go new file mode 100644 index 0000000000..acb30df29f --- /dev/null +++ b/model_brief_config_template.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplate{} + +// BriefConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplate BriefConfigTemplate + +// NewBriefConfigTemplate instantiates a new BriefConfigTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefConfigTemplate(id int32, url string, display string, name string) *BriefConfigTemplate { + this := BriefConfigTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefConfigTemplateWithDefaults instantiates a new BriefConfigTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefConfigTemplateWithDefaults() *BriefConfigTemplate { + this := BriefConfigTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefConfigTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefConfigTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefConfigTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefConfigTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefConfigTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefConfigTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefConfigTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefConfigTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefConfigTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefConfigTemplate := _BriefConfigTemplate{} + + err = json.Unmarshal(data, &varBriefConfigTemplate) + + if err != nil { + return err + } + + *o = BriefConfigTemplate(varBriefConfigTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplate struct { + value *BriefConfigTemplate + isSet bool +} + +func (v NullableBriefConfigTemplate) Get() *BriefConfigTemplate { + return v.value +} + +func (v *NullableBriefConfigTemplate) Set(val *BriefConfigTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplate(val *BriefConfigTemplate) *NullableBriefConfigTemplate { + return &NullableBriefConfigTemplate{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go new file mode 100644 index 0000000000..a5c8c174c5 --- /dev/null +++ b/model_brief_config_template_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplateRequest{} + +// BriefConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplateRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplateRequest BriefConfigTemplateRequest + +// NewBriefConfigTemplateRequest instantiates a new BriefConfigTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefConfigTemplateRequest(name string) *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefConfigTemplateRequestWithDefaults instantiates a new BriefConfigTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefConfigTemplateRequestWithDefaults() *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefConfigTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefConfigTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefConfigTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefConfigTemplateRequest := _BriefConfigTemplateRequest{} + + err = json.Unmarshal(data, &varBriefConfigTemplateRequest) + + if err != nil { + return err + } + + *o = BriefConfigTemplateRequest(varBriefConfigTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplateRequest struct { + value *BriefConfigTemplateRequest + isSet bool +} + +func (v NullableBriefConfigTemplateRequest) Get() *BriefConfigTemplateRequest { + return v.value +} + +func (v *NullableBriefConfigTemplateRequest) Set(val *BriefConfigTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplateRequest(val *BriefConfigTemplateRequest) *NullableBriefConfigTemplateRequest { + return &NullableBriefConfigTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact.go b/model_brief_contact.go new file mode 100644 index 0000000000..a19efe0efa --- /dev/null +++ b/model_brief_contact.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContact{} + +// BriefContact Adds support for custom fields and tags. +type BriefContact struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContact BriefContact + +// NewBriefContact instantiates a new BriefContact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContact(id int32, url string, display string, name string) *BriefContact { + this := BriefContact{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefContactWithDefaults instantiates a new BriefContact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactWithDefaults() *BriefContact { + this := BriefContact{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContact) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContact) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContact) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContact) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContact) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContact) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContact) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContact) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContact) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContact) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContact) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContact) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContact) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContact) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContact := _BriefContact{} + + err = json.Unmarshal(data, &varBriefContact) + + if err != nil { + return err + } + + *o = BriefContact(varBriefContact) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContact struct { + value *BriefContact + isSet bool +} + +func (v NullableBriefContact) Get() *BriefContact { + return v.value +} + +func (v *NullableBriefContact) Set(val *BriefContact) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContact) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContact(val *BriefContact) *NullableBriefContact { + return &NullableBriefContact{value: val, isSet: true} +} + +func (v NullableBriefContact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go new file mode 100644 index 0000000000..53ec773fda --- /dev/null +++ b/model_brief_contact_group.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroup{} + +// BriefContactGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroup BriefContactGroup + +// NewBriefContactGroup instantiates a new BriefContactGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *BriefContactGroup { + this := BriefContactGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ContactCount = contactCount + this.Depth = depth + return &this +} + +// NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactGroupWithDefaults() *BriefContactGroup { + this := BriefContactGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContactGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContactGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContactGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactGroup) SetDescription(v string) { + o.Description = &v +} + +// GetContactCount returns the ContactCount field value +func (o *BriefContactGroup) GetContactCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ContactCount +} + +// GetContactCountOk returns a tuple with the ContactCount field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetContactCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ContactCount, true +} + +// SetContactCount sets field value +func (o *BriefContactGroup) SetContactCount(v int32) { + o.ContactCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefContactGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefContactGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefContactGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["contact_count"] = o.ContactCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "contact_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactGroup := _BriefContactGroup{} + + err = json.Unmarshal(data, &varBriefContactGroup) + + if err != nil { + return err + } + + *o = BriefContactGroup(varBriefContactGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "contact_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroup struct { + value *BriefContactGroup + isSet bool +} + +func (v NullableBriefContactGroup) Get() *BriefContactGroup { + return v.value +} + +func (v *NullableBriefContactGroup) Set(val *BriefContactGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroup(val *BriefContactGroup) *NullableBriefContactGroup { + return &NullableBriefContactGroup{value: val, isSet: true} +} + +func (v NullableBriefContactGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact_group_request.go b/model_brief_contact_group_request.go new file mode 100644 index 0000000000..cb9fa8477e --- /dev/null +++ b/model_brief_contact_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroupRequest{} + +// BriefContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroupRequest BriefContactGroupRequest + +// NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactGroupRequest(name string, slug string) *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactGroupRequest := _BriefContactGroupRequest{} + + err = json.Unmarshal(data, &varBriefContactGroupRequest) + + if err != nil { + return err + } + + *o = BriefContactGroupRequest(varBriefContactGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroupRequest struct { + value *BriefContactGroupRequest + isSet bool +} + +func (v NullableBriefContactGroupRequest) Get() *BriefContactGroupRequest { + return v.value +} + +func (v *NullableBriefContactGroupRequest) Set(val *BriefContactGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroupRequest(val *BriefContactGroupRequest) *NullableBriefContactGroupRequest { + return &NullableBriefContactGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefContactGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go new file mode 100644 index 0000000000..5b4879b7c0 --- /dev/null +++ b/model_brief_contact_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRequest{} + +// BriefContactRequest Adds support for custom fields and tags. +type BriefContactRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRequest BriefContactRequest + +// NewBriefContactRequest instantiates a new BriefContactRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRequest(name string) *BriefContactRequest { + this := BriefContactRequest{} + this.Name = name + return &this +} + +// NewBriefContactRequestWithDefaults instantiates a new BriefContactRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRequestWithDefaults() *BriefContactRequest { + this := BriefContactRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRequest := _BriefContactRequest{} + + err = json.Unmarshal(data, &varBriefContactRequest) + + if err != nil { + return err + } + + *o = BriefContactRequest(varBriefContactRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRequest struct { + value *BriefContactRequest + isSet bool +} + +func (v NullableBriefContactRequest) Get() *BriefContactRequest { + return v.value +} + +func (v *NullableBriefContactRequest) Set(val *BriefContactRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRequest(val *BriefContactRequest) *NullableBriefContactRequest { + return &NullableBriefContactRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go new file mode 100644 index 0000000000..69c46b628a --- /dev/null +++ b/model_brief_contact_role.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRole{} + +// BriefContactRole Adds support for custom fields and tags. +type BriefContactRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRole BriefContactRole + +// NewBriefContactRole instantiates a new BriefContactRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRole(id int32, url string, display string, name string, slug string) *BriefContactRole { + this := BriefContactRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleWithDefaults instantiates a new BriefContactRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRoleWithDefaults() *BriefContactRole { + this := BriefContactRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContactRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContactRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContactRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRole) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRole := _BriefContactRole{} + + err = json.Unmarshal(data, &varBriefContactRole) + + if err != nil { + return err + } + + *o = BriefContactRole(varBriefContactRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRole struct { + value *BriefContactRole + isSet bool +} + +func (v NullableBriefContactRole) Get() *BriefContactRole { + return v.value +} + +func (v *NullableBriefContactRole) Set(val *BriefContactRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRole(val *BriefContactRole) *NullableBriefContactRole { + return &NullableBriefContactRole{value: val, isSet: true} +} + +func (v NullableBriefContactRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go new file mode 100644 index 0000000000..40611faa09 --- /dev/null +++ b/model_brief_contact_role_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRoleRequest{} + +// BriefContactRoleRequest Adds support for custom fields and tags. +type BriefContactRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRoleRequest BriefContactRoleRequest + +// NewBriefContactRoleRequest instantiates a new BriefContactRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRoleRequest(name string, slug string) *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleRequestWithDefaults instantiates a new BriefContactRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRoleRequestWithDefaults() *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRoleRequest := _BriefContactRoleRequest{} + + err = json.Unmarshal(data, &varBriefContactRoleRequest) + + if err != nil { + return err + } + + *o = BriefContactRoleRequest(varBriefContactRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRoleRequest struct { + value *BriefContactRoleRequest + isSet bool +} + +func (v NullableBriefContactRoleRequest) Get() *BriefContactRoleRequest { + return v.value +} + +func (v *NullableBriefContactRoleRequest) Set(val *BriefContactRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRoleRequest(val *BriefContactRoleRequest) *NullableBriefContactRoleRequest { + return &NullableBriefContactRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go new file mode 100644 index 0000000000..d7e0896cba --- /dev/null +++ b/model_brief_custom_field_choice_set.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSet{} + +// BriefCustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefCustomFieldChoiceSet struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + ChoicesCount string `json:"choices_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSet BriefCustomFieldChoiceSet + +// NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.ChoicesCount = choicesCount + return &this +} + +// NewBriefCustomFieldChoiceSetWithDefaults instantiates a new BriefCustomFieldChoiceSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCustomFieldChoiceSetWithDefaults() *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCustomFieldChoiceSet) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCustomFieldChoiceSet) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCustomFieldChoiceSet) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCustomFieldChoiceSet) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCustomFieldChoiceSet) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCustomFieldChoiceSet) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSet) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSet) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCustomFieldChoiceSet) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCustomFieldChoiceSet) SetDescription(v string) { + o.Description = &v +} + +// GetChoicesCount returns the ChoicesCount field value +func (o *BriefCustomFieldChoiceSet) GetChoicesCount() string { + if o == nil { + var ret string + return ret + } + + return o.ChoicesCount +} + +// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChoicesCount, true +} + +// SetChoicesCount sets field value +func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = v +} + +func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["choices_count"] = o.ChoicesCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "choices_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCustomFieldChoiceSet := _BriefCustomFieldChoiceSet{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSet) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSet(varBriefCustomFieldChoiceSet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "choices_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSet struct { + value *BriefCustomFieldChoiceSet + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSet) Get() *BriefCustomFieldChoiceSet { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSet) Set(val *BriefCustomFieldChoiceSet) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSet) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSet(val *BriefCustomFieldChoiceSet) *NullableBriefCustomFieldChoiceSet { + return &NullableBriefCustomFieldChoiceSet{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go new file mode 100644 index 0000000000..440e4a2afe --- /dev/null +++ b/model_brief_custom_field_choice_set_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSetRequest{} + +// BriefCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefCustomFieldChoiceSetRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSetRequest BriefCustomFieldChoiceSetRequest + +// NewBriefCustomFieldChoiceSetRequest instantiates a new BriefCustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCustomFieldChoiceSetRequest(name string) *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewBriefCustomFieldChoiceSetRequestWithDefaults instantiates a new BriefCustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCustomFieldChoiceSetRequestWithDefaults() *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSetRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSetRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCustomFieldChoiceSetRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCustomFieldChoiceSetRequest := _BriefCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSetRequest(varBriefCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSetRequest struct { + value *BriefCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSetRequest) Get() *BriefCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Set(val *BriefCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSetRequest(val *BriefCustomFieldChoiceSetRequest) *NullableBriefCustomFieldChoiceSetRequest { + return &NullableBriefCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_data_file.go b/model_brief_data_file.go new file mode 100644 index 0000000000..5ec4604809 --- /dev/null +++ b/model_brief_data_file.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataFile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataFile{} + +// BriefDataFile Adds support for custom fields and tags. +type BriefDataFile struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // File path relative to the data source's root + Path string `json:"path"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataFile BriefDataFile + +// NewBriefDataFile instantiates a new BriefDataFile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataFile(id int32, url string, display string, path string) *BriefDataFile { + this := BriefDataFile{} + this.Id = id + this.Url = url + this.Display = display + this.Path = path + return &this +} + +// NewBriefDataFileWithDefaults instantiates a new BriefDataFile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataFileWithDefaults() *BriefDataFile { + this := BriefDataFile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataFile) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataFile) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDataFile) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataFile) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDataFile) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataFile) SetDisplay(v string) { + o.Display = v +} + +// GetPath returns the Path field value +func (o *BriefDataFile) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *BriefDataFile) SetPath(v string) { + o.Path = v +} + +func (o BriefDataFile) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataFile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["path"] = o.Path + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataFile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "path", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataFile := _BriefDataFile{} + + err = json.Unmarshal(data, &varBriefDataFile) + + if err != nil { + return err + } + + *o = BriefDataFile(varBriefDataFile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "path") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataFile struct { + value *BriefDataFile + isSet bool +} + +func (v NullableBriefDataFile) Get() *BriefDataFile { + return v.value +} + +func (v *NullableBriefDataFile) Set(val *BriefDataFile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataFile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataFile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataFile(val *BriefDataFile) *NullableBriefDataFile { + return &NullableBriefDataFile{value: val, isSet: true} +} + +func (v NullableBriefDataFile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataFile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_data_source.go b/model_brief_data_source.go new file mode 100644 index 0000000000..554ac6acaf --- /dev/null +++ b/model_brief_data_source.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSource{} + +// BriefDataSource Adds support for custom fields and tags. +type BriefDataSource struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSource BriefDataSource + +// NewBriefDataSource instantiates a new BriefDataSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataSource(id int32, url string, display string, name string) *BriefDataSource { + this := BriefDataSource{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefDataSourceWithDefaults instantiates a new BriefDataSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataSourceWithDefaults() *BriefDataSource { + this := BriefDataSource{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataSource) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataSource) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDataSource) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataSource) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDataSource) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataSource) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefDataSource) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSource) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSource) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDataSource) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDataSource) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSource) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSource) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataSource := _BriefDataSource{} + + err = json.Unmarshal(data, &varBriefDataSource) + + if err != nil { + return err + } + + *o = BriefDataSource(varBriefDataSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSource struct { + value *BriefDataSource + isSet bool +} + +func (v NullableBriefDataSource) Get() *BriefDataSource { + return v.value +} + +func (v *NullableBriefDataSource) Set(val *BriefDataSource) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSource) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSource(val *BriefDataSource) *NullableBriefDataSource { + return &NullableBriefDataSource{value: val, isSet: true} +} + +func (v NullableBriefDataSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go new file mode 100644 index 0000000000..3c6aa53b9d --- /dev/null +++ b/model_brief_data_source_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSourceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSourceRequest{} + +// BriefDataSourceRequest Adds support for custom fields and tags. +type BriefDataSourceRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSourceRequest BriefDataSourceRequest + +// NewBriefDataSourceRequest instantiates a new BriefDataSourceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataSourceRequest(name string) *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + this.Name = name + return &this +} + +// NewBriefDataSourceRequestWithDefaults instantiates a new BriefDataSourceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataSourceRequestWithDefaults() *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDataSourceRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDataSourceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSourceRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSourceRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDataSourceRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDataSourceRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDataSourceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSourceRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSourceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSourceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataSourceRequest := _BriefDataSourceRequest{} + + err = json.Unmarshal(data, &varBriefDataSourceRequest) + + if err != nil { + return err + } + + *o = BriefDataSourceRequest(varBriefDataSourceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSourceRequest struct { + value *BriefDataSourceRequest + isSet bool +} + +func (v NullableBriefDataSourceRequest) Get() *BriefDataSourceRequest { + return v.value +} + +func (v *NullableBriefDataSourceRequest) Set(val *BriefDataSourceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSourceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSourceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSourceRequest(val *BriefDataSourceRequest) *NullableBriefDataSourceRequest { + return &NullableBriefDataSourceRequest{value: val, isSet: true} +} + +func (v NullableBriefDataSourceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSourceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device.go b/model_brief_device.go new file mode 100644 index 0000000000..09635c1508 --- /dev/null +++ b/model_brief_device.go @@ -0,0 +1,309 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDevice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDevice{} + +// BriefDevice Adds support for custom fields and tags. +type BriefDevice struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDevice BriefDevice + +// NewBriefDevice instantiates a new BriefDevice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDevice(id int32, url string, display string) *BriefDevice { + this := BriefDevice{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefDeviceWithDefaults instantiates a new BriefDevice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceWithDefaults() *BriefDevice { + this := BriefDevice{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDevice) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDevice) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDevice) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDevice) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDevice) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDevice) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefDevice) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefDevice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *BriefDevice) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *BriefDevice) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *BriefDevice) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *BriefDevice) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDevice) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDevice) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDevice) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDevice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDevice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDevice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDevice := _BriefDevice{} + + err = json.Unmarshal(data, &varBriefDevice) + + if err != nil { + return err + } + + *o = BriefDevice(varBriefDevice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDevice struct { + value *BriefDevice + isSet bool +} + +func (v NullableBriefDevice) Get() *BriefDevice { + return v.value +} + +func (v *NullableBriefDevice) Set(val *BriefDevice) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDevice) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDevice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDevice(val *BriefDevice) *NullableBriefDevice { + return &NullableBriefDevice{value: val, isSet: true} +} + +func (v NullableBriefDevice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDevice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device_request.go b/model_brief_device_request.go new file mode 100644 index 0000000000..c5731c0655 --- /dev/null +++ b/model_brief_device_request.go @@ -0,0 +1,201 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefDeviceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRequest{} + +// BriefDeviceRequest Adds support for custom fields and tags. +type BriefDeviceRequest struct { + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRequest BriefDeviceRequest + +// NewBriefDeviceRequest instantiates a new BriefDeviceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRequest() *BriefDeviceRequest { + this := BriefDeviceRequest{} + return &this +} + +// NewBriefDeviceRequestWithDefaults instantiates a new BriefDeviceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRequestWithDefaults() *BriefDeviceRequest { + this := BriefDeviceRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefDeviceRequest) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefDeviceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *BriefDeviceRequest) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *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) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *BriefDeviceRequest) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRequest) 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 *BriefDeviceRequest) 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 *BriefDeviceRequest) 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 *BriefDeviceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRequest) UnmarshalJSON(data []byte) (err error) { + varBriefDeviceRequest := _BriefDeviceRequest{} + + err = json.Unmarshal(data, &varBriefDeviceRequest) + + if err != nil { + return err + } + + *o = BriefDeviceRequest(varBriefDeviceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRequest struct { + value *BriefDeviceRequest + isSet bool +} + +func (v NullableBriefDeviceRequest) Get() *BriefDeviceRequest { + return v.value +} + +func (v *NullableBriefDeviceRequest) Set(val *BriefDeviceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRequest(val *BriefDeviceRequest) *NullableBriefDeviceRequest { + return &NullableBriefDeviceRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device_role.go b/model_brief_device_role.go new file mode 100644 index 0000000000..ee629f8d67 --- /dev/null +++ b/model_brief_device_role.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRole{} + +// BriefDeviceRole Adds support for custom fields and tags. +type BriefDeviceRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount int64 `json:"device_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRole BriefDeviceRole + +// NewBriefDeviceRole instantiates a new BriefDeviceRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *BriefDeviceRole { + this := BriefDeviceRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.DeviceCount = deviceCount + this.VirtualmachineCount = virtualmachineCount + return &this +} + +// NewBriefDeviceRoleWithDefaults instantiates a new BriefDeviceRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRoleWithDefaults() *BriefDeviceRole { + this := BriefDeviceRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDeviceRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDeviceRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefDeviceRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceRole) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *BriefDeviceRole) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *BriefDeviceRole) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value +func (o *BriefDeviceRole) GetVirtualmachineCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualmachineCount, true +} + +// SetVirtualmachineCount sets field value +func (o *BriefDeviceRole) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = v +} + +func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["device_count"] = o.DeviceCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "device_count", + "virtualmachine_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceRole := _BriefDeviceRole{} + + err = json.Unmarshal(data, &varBriefDeviceRole) + + if err != nil { + return err + } + + *o = BriefDeviceRole(varBriefDeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRole struct { + value *BriefDeviceRole + isSet bool +} + +func (v NullableBriefDeviceRole) Get() *BriefDeviceRole { + return v.value +} + +func (v *NullableBriefDeviceRole) Set(val *BriefDeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRole(val *BriefDeviceRole) *NullableBriefDeviceRole { + return &NullableBriefDeviceRole{value: val, isSet: true} +} + +func (v NullableBriefDeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go new file mode 100644 index 0000000000..f1755f5311 --- /dev/null +++ b/model_brief_device_role_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRoleRequest{} + +// BriefDeviceRoleRequest Adds support for custom fields and tags. +type BriefDeviceRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRoleRequest BriefDeviceRoleRequest + +// NewBriefDeviceRoleRequest instantiates a new BriefDeviceRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRoleRequest(name string, slug string) *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefDeviceRoleRequestWithDefaults instantiates a new BriefDeviceRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRoleRequestWithDefaults() *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDeviceRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceRoleRequest := _BriefDeviceRoleRequest{} + + err = json.Unmarshal(data, &varBriefDeviceRoleRequest) + + if err != nil { + return err + } + + *o = BriefDeviceRoleRequest(varBriefDeviceRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRoleRequest struct { + value *BriefDeviceRoleRequest + isSet bool +} + +func (v NullableBriefDeviceRoleRequest) Get() *BriefDeviceRoleRequest { + return v.value +} + +func (v *NullableBriefDeviceRoleRequest) Set(val *BriefDeviceRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRoleRequest(val *BriefDeviceRoleRequest) *NullableBriefDeviceRoleRequest { + return &NullableBriefDeviceRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device_type.go b/model_brief_device_type.go new file mode 100644 index 0000000000..177a2c2126 --- /dev/null +++ b/model_brief_device_type.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceType{} + +// BriefDeviceType Adds support for custom fields and tags. +type BriefDeviceType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount int64 `json:"device_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceType BriefDeviceType + +// NewBriefDeviceType instantiates a new BriefDeviceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, deviceCount int64) *BriefDeviceType { + this := BriefDeviceType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.DeviceCount = deviceCount + return &this +} + +// NewBriefDeviceTypeWithDefaults instantiates a new BriefDeviceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceTypeWithDefaults() *BriefDeviceType { + this := BriefDeviceType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDeviceType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDeviceType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefDeviceType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceType) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *BriefDeviceType) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *BriefDeviceType) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +func (o BriefDeviceType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["device_count"] = o.DeviceCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + "device_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceType := _BriefDeviceType{} + + err = json.Unmarshal(data, &varBriefDeviceType) + + if err != nil { + return err + } + + *o = BriefDeviceType(varBriefDeviceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceType struct { + value *BriefDeviceType + isSet bool +} + +func (v NullableBriefDeviceType) Get() *BriefDeviceType { + return v.value +} + +func (v *NullableBriefDeviceType) Set(val *BriefDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceType(val *BriefDeviceType) *NullableBriefDeviceType { + return &NullableBriefDeviceType{value: val, isSet: true} +} + +func (v NullableBriefDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go new file mode 100644 index 0000000000..8414c35bb4 --- /dev/null +++ b/model_brief_device_type_request.go @@ -0,0 +1,261 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceTypeRequest{} + +// BriefDeviceTypeRequest Adds support for custom fields and tags. +type BriefDeviceTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceTypeRequest BriefDeviceTypeRequest + +// NewBriefDeviceTypeRequest instantiates a new BriefDeviceTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefDeviceTypeRequestWithDefaults instantiates a new BriefDeviceTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefDeviceTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceTypeRequest := _BriefDeviceTypeRequest{} + + err = json.Unmarshal(data, &varBriefDeviceTypeRequest) + + if err != nil { + return err + } + + *o = BriefDeviceTypeRequest(varBriefDeviceTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceTypeRequest struct { + value *BriefDeviceTypeRequest + isSet bool +} + +func (v NullableBriefDeviceTypeRequest) Get() *BriefDeviceTypeRequest { + return v.value +} + +func (v *NullableBriefDeviceTypeRequest) Set(val *BriefDeviceTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceTypeRequest(val *BriefDeviceTypeRequest) *NullableBriefDeviceTypeRequest { + return &NullableBriefDeviceTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go new file mode 100644 index 0000000000..f298b6356a --- /dev/null +++ b/model_brief_fhrp_group.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroup{} + +// BriefFHRPGroup Adds support for custom fields and tags. +type BriefFHRPGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroup BriefFHRPGroup + +// NewBriefFHRPGroup instantiates a new BriefFHRPGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroup { + this := BriefFHRPGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupWithDefaults instantiates a new BriefFHRPGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefFHRPGroupWithDefaults() *BriefFHRPGroup { + this := BriefFHRPGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefFHRPGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefFHRPGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefFHRPGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefFHRPGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefFHRPGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefFHRPGroup) SetDisplay(v string) { + o.Display = v +} + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroup) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroup) SetGroupId(v int32) { + o.GroupId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefFHRPGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefFHRPGroup) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "protocol", + "group_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefFHRPGroup := _BriefFHRPGroup{} + + err = json.Unmarshal(data, &varBriefFHRPGroup) + + if err != nil { + return err + } + + *o = BriefFHRPGroup(varBriefFHRPGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroup struct { + value *BriefFHRPGroup + isSet bool +} + +func (v NullableBriefFHRPGroup) Get() *BriefFHRPGroup { + return v.value +} + +func (v *NullableBriefFHRPGroup) Set(val *BriefFHRPGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroup(val *BriefFHRPGroup) *NullableBriefFHRPGroup { + return &NullableBriefFHRPGroup{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go new file mode 100644 index 0000000000..258baea614 --- /dev/null +++ b/model_brief_fhrp_group_protocol.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefFHRPGroupProtocol * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +type BriefFHRPGroupProtocol string + +// List of BriefFHRPGroup_protocol +const ( + BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2" + BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3" + BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp" + BRIEFFHRPGROUPPROTOCOL_CLUSTERXL BriefFHRPGroupProtocol = "clusterxl" + BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp" + BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp" + BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other" +) + +// All allowed values of BriefFHRPGroupProtocol enum +var AllowedBriefFHRPGroupProtocolEnumValues = []BriefFHRPGroupProtocol{ + "vrrp2", + "vrrp3", + "carp", + "clusterxl", + "hsrp", + "glbp", + "other", +} + +func (v *BriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefFHRPGroupProtocol(value) + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefFHRPGroupProtocol", value) +} + +// NewBriefFHRPGroupProtocolFromValue returns a pointer to a valid BriefFHRPGroupProtocol +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefFHRPGroupProtocolFromValue(v string) (*BriefFHRPGroupProtocol, error) { + ev := BriefFHRPGroupProtocol(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefFHRPGroupProtocol: valid values are %v", v, AllowedBriefFHRPGroupProtocolEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefFHRPGroupProtocol) IsValid() bool { + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefFHRPGroup_protocol value +func (v BriefFHRPGroupProtocol) Ptr() *BriefFHRPGroupProtocol { + return &v +} + +type NullableBriefFHRPGroupProtocol struct { + value *BriefFHRPGroupProtocol + isSet bool +} + +func (v NullableBriefFHRPGroupProtocol) Get() *BriefFHRPGroupProtocol { + return v.value +} + +func (v *NullableBriefFHRPGroupProtocol) Set(val *BriefFHRPGroupProtocol) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupProtocol(val *BriefFHRPGroupProtocol) *NullableBriefFHRPGroupProtocol { + return &NullableBriefFHRPGroupProtocol{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go new file mode 100644 index 0000000000..1e0446aba5 --- /dev/null +++ b/model_brief_fhrp_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroupRequest{} + +// BriefFHRPGroupRequest Adds support for custom fields and tags. +type BriefFHRPGroupRequest struct { + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroupRequest BriefFHRPGroupRequest + +// NewBriefFHRPGroupRequest instantiates a new BriefFHRPGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupRequestWithDefaults instantiates a new BriefFHRPGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefFHRPGroupRequestWithDefaults() *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + return &this +} + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroupRequest) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroupRequest) SetGroupId(v int32) { + o.GroupId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefFHRPGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefFHRPGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "protocol", + "group_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefFHRPGroupRequest := _BriefFHRPGroupRequest{} + + err = json.Unmarshal(data, &varBriefFHRPGroupRequest) + + if err != nil { + return err + } + + *o = BriefFHRPGroupRequest(varBriefFHRPGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroupRequest struct { + value *BriefFHRPGroupRequest + isSet bool +} + +func (v NullableBriefFHRPGroupRequest) Get() *BriefFHRPGroupRequest { + return v.value +} + +func (v *NullableBriefFHRPGroupRequest) Set(val *BriefFHRPGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupRequest(val *BriefFHRPGroupRequest) *NullableBriefFHRPGroupRequest { + return &NullableBriefFHRPGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go new file mode 100644 index 0000000000..8da1faca94 --- /dev/null +++ b/model_brief_ike_policy.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicy{} + +// BriefIKEPolicy Adds support for custom fields and tags. +type BriefIKEPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicy BriefIKEPolicy + +// NewBriefIKEPolicy instantiates a new BriefIKEPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIKEPolicy(id int32, url string, display string, name string) *BriefIKEPolicy { + this := BriefIKEPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIKEPolicyWithDefaults instantiates a new BriefIKEPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIKEPolicyWithDefaults() *BriefIKEPolicy { + this := BriefIKEPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIKEPolicy) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIKEPolicy) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIKEPolicy) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIKEPolicy) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIKEPolicy) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIKEPolicy) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIKEPolicy) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicy) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicy) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIKEPolicy) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIKEPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIKEPolicy := _BriefIKEPolicy{} + + err = json.Unmarshal(data, &varBriefIKEPolicy) + + if err != nil { + return err + } + + *o = BriefIKEPolicy(varBriefIKEPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicy struct { + value *BriefIKEPolicy + isSet bool +} + +func (v NullableBriefIKEPolicy) Get() *BriefIKEPolicy { + return v.value +} + +func (v *NullableBriefIKEPolicy) Set(val *BriefIKEPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicy(val *BriefIKEPolicy) *NullableBriefIKEPolicy { + return &NullableBriefIKEPolicy{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go new file mode 100644 index 0000000000..d6eb3cb574 --- /dev/null +++ b/model_brief_ike_policy_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicyRequest{} + +// BriefIKEPolicyRequest Adds support for custom fields and tags. +type BriefIKEPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicyRequest BriefIKEPolicyRequest + +// NewBriefIKEPolicyRequest instantiates a new BriefIKEPolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIKEPolicyRequest(name string) *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIKEPolicyRequestWithDefaults instantiates a new BriefIKEPolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIKEPolicyRequestWithDefaults() *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIKEPolicyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIKEPolicyRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIKEPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIKEPolicyRequest := _BriefIKEPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIKEPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIKEPolicyRequest(varBriefIKEPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicyRequest struct { + value *BriefIKEPolicyRequest + isSet bool +} + +func (v NullableBriefIKEPolicyRequest) Get() *BriefIKEPolicyRequest { + return v.value +} + +func (v *NullableBriefIKEPolicyRequest) Set(val *BriefIKEPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicyRequest(val *BriefIKEPolicyRequest) *NullableBriefIKEPolicyRequest { + return &NullableBriefIKEPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_interface.go b/model_brief_interface.go new file mode 100644 index 0000000000..b0af0fb136 --- /dev/null +++ b/model_brief_interface.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterface type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterface{} + +// BriefInterface Adds support for custom fields and tags. +type BriefInterface struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterface BriefInterface + +// NewBriefInterface instantiates a new BriefInterface object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInterface(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool) *BriefInterface { + this := BriefInterface{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Cable = cable + this.Occupied = occupied + return &this +} + +// NewBriefInterfaceWithDefaults instantiates a new BriefInterface object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInterfaceWithDefaults() *BriefInterface { + this := BriefInterface{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInterface) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInterface) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefInterface) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInterface) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefInterface) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInterface) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefInterface) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterface) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefInterface) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterface) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterface) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInterface) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInterface) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *BriefInterface) GetCable() BriefCable { + if o == nil || o.Cable.Get() == nil { + var ret BriefCable + return ret + } + + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefInterface) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// SetCable sets field value +func (o *BriefInterface) SetCable(v BriefCable) { + o.Cable.Set(&v) +} + +// GetOccupied returns the Occupied field value +func (o *BriefInterface) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefInterface) SetOccupied(v bool) { + o.Occupied = v +} + +func (o BriefInterface) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterface) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cable"] = o.Cable.Get() + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterface) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "cable", + "_occupied", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInterface := _BriefInterface{} + + err = json.Unmarshal(data, &varBriefInterface) + + if err != nil { + return err + } + + *o = BriefInterface(varBriefInterface) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterface struct { + value *BriefInterface + isSet bool +} + +func (v NullableBriefInterface) Get() *BriefInterface { + return v.value +} + +func (v *NullableBriefInterface) Set(val *BriefInterface) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterface) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterface) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterface(val *BriefInterface) *NullableBriefInterface { + return &NullableBriefInterface{value: val, isSet: true} +} + +func (v NullableBriefInterface) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterface) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go new file mode 100644 index 0000000000..75534f2874 --- /dev/null +++ b/model_brief_interface_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterfaceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterfaceRequest{} + +// BriefInterfaceRequest Adds support for custom fields and tags. +type BriefInterfaceRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterfaceRequest BriefInterfaceRequest + +// NewBriefInterfaceRequest instantiates a new BriefInterfaceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInterfaceRequest(device BriefDeviceRequest, name string) *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefInterfaceRequestWithDefaults instantiates a new BriefInterfaceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefInterfaceRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterfaceRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterfaceRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInterfaceRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInterfaceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInterfaceRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterfaceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterfaceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInterfaceRequest := _BriefInterfaceRequest{} + + err = json.Unmarshal(data, &varBriefInterfaceRequest) + + if err != nil { + return err + } + + *o = BriefInterfaceRequest(varBriefInterfaceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterfaceRequest struct { + value *BriefInterfaceRequest + isSet bool +} + +func (v NullableBriefInterfaceRequest) Get() *BriefInterfaceRequest { + return v.value +} + +func (v *NullableBriefInterfaceRequest) Set(val *BriefInterfaceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterfaceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterfaceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterfaceRequest(val *BriefInterfaceRequest) *NullableBriefInterfaceRequest { + return &NullableBriefInterfaceRequest{value: val, isSet: true} +} + +func (v NullableBriefInterfaceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterfaceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go new file mode 100644 index 0000000000..5b3959b479 --- /dev/null +++ b/model_brief_inventory_item_role.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRole{} + +// BriefInventoryItemRole Adds support for custom fields and tags. +type BriefInventoryItemRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRole BriefInventoryItemRole + +// NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.InventoryitemCount = inventoryitemCount + return &this +} + +// NewBriefInventoryItemRoleWithDefaults instantiates a new BriefInventoryItemRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInventoryItemRoleWithDefaults() *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInventoryItemRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInventoryItemRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefInventoryItemRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInventoryItemRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefInventoryItemRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInventoryItemRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefInventoryItemRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInventoryItemRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInventoryItemRole) SetDescription(v string) { + o.Description = &v +} + +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *BriefInventoryItemRole) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.InventoryitemCount +} + +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + +func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "inventoryitem_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInventoryItemRole := _BriefInventoryItemRole{} + + err = json.Unmarshal(data, &varBriefInventoryItemRole) + + if err != nil { + return err + } + + *o = BriefInventoryItemRole(varBriefInventoryItemRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "inventoryitem_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRole struct { + value *BriefInventoryItemRole + isSet bool +} + +func (v NullableBriefInventoryItemRole) Get() *BriefInventoryItemRole { + return v.value +} + +func (v *NullableBriefInventoryItemRole) Set(val *BriefInventoryItemRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRole(val *BriefInventoryItemRole) *NullableBriefInventoryItemRole { + return &NullableBriefInventoryItemRole{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go new file mode 100644 index 0000000000..bc67d73a03 --- /dev/null +++ b/model_brief_inventory_item_role_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRoleRequest{} + +// BriefInventoryItemRoleRequest Adds support for custom fields and tags. +type BriefInventoryItemRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRoleRequest BriefInventoryItemRoleRequest + +// NewBriefInventoryItemRoleRequest instantiates a new BriefInventoryItemRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInventoryItemRoleRequest(name string, slug string) *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefInventoryItemRoleRequestWithDefaults instantiates a new BriefInventoryItemRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInventoryItemRoleRequestWithDefaults() *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefInventoryItemRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInventoryItemRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInventoryItemRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInventoryItemRoleRequest := _BriefInventoryItemRoleRequest{} + + err = json.Unmarshal(data, &varBriefInventoryItemRoleRequest) + + if err != nil { + return err + } + + *o = BriefInventoryItemRoleRequest(varBriefInventoryItemRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRoleRequest struct { + value *BriefInventoryItemRoleRequest + isSet bool +} + +func (v NullableBriefInventoryItemRoleRequest) Get() *BriefInventoryItemRoleRequest { + return v.value +} + +func (v *NullableBriefInventoryItemRoleRequest) Set(val *BriefInventoryItemRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRoleRequest(val *BriefInventoryItemRoleRequest) *NullableBriefInventoryItemRoleRequest { + return &NullableBriefInventoryItemRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go new file mode 100644 index 0000000000..ddcf5fdffa --- /dev/null +++ b/model_brief_ip_address.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddress{} + +// BriefIPAddress Adds support for custom fields and tags. +type BriefIPAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddress BriefIPAddress + +// NewBriefIPAddress instantiates a new BriefIPAddress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPAddress(id int32, url string, display string, family AggregateFamily, address string) *BriefIPAddress { + this := BriefIPAddress{} + this.Id = id + this.Url = url + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewBriefIPAddressWithDefaults instantiates a new BriefIPAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPAddressWithDefaults() *BriefIPAddress { + this := BriefIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPAddress) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPAddress) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPAddress) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPAddress) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPAddress) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPAddress) SetDisplay(v string) { + o.Display = v +} + +// GetFamily returns the Family field value +func (o *BriefIPAddress) GetFamily() AggregateFamily { + if o == nil { + var ret AggregateFamily + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetFamilyOk() (*AggregateFamily, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *BriefIPAddress) SetFamily(v AggregateFamily) { + o.Family = v +} + +// GetAddress returns the Address field value +func (o *BriefIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddress) SetAddress(v string) { + o.Address = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddress) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPAddress) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPAddress) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddress) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "family", + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPAddress := _BriefIPAddress{} + + err = json.Unmarshal(data, &varBriefIPAddress) + + if err != nil { + return err + } + + *o = BriefIPAddress(varBriefIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddress struct { + value *BriefIPAddress + isSet bool +} + +func (v NullableBriefIPAddress) Get() *BriefIPAddress { + return v.value +} + +func (v *NullableBriefIPAddress) Set(val *BriefIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddress(val *BriefIPAddress) *NullableBriefIPAddress { + return &NullableBriefIPAddress{value: val, isSet: true} +} + +func (v NullableBriefIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go new file mode 100644 index 0000000000..5e56f7c6fd --- /dev/null +++ b/model_brief_ip_address_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddressRequest{} + +// BriefIPAddressRequest Adds support for custom fields and tags. +type BriefIPAddressRequest struct { + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddressRequest BriefIPAddressRequest + +// NewBriefIPAddressRequest instantiates a new BriefIPAddressRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPAddressRequest(address string) *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + this.Address = address + return &this +} + +// NewBriefIPAddressRequestWithDefaults instantiates a new BriefIPAddressRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPAddressRequestWithDefaults() *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *BriefIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddressRequest) SetAddress(v string) { + o.Address = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddressRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPAddressRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPAddressRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPAddressRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPAddressRequest := _BriefIPAddressRequest{} + + err = json.Unmarshal(data, &varBriefIPAddressRequest) + + if err != nil { + return err + } + + *o = BriefIPAddressRequest(varBriefIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddressRequest struct { + value *BriefIPAddressRequest + isSet bool +} + +func (v NullableBriefIPAddressRequest) Get() *BriefIPAddressRequest { + return v.value +} + +func (v *NullableBriefIPAddressRequest) Set(val *BriefIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddressRequest(val *BriefIPAddressRequest) *NullableBriefIPAddressRequest { + return &NullableBriefIPAddressRequest{value: val, isSet: true} +} + +func (v NullableBriefIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go new file mode 100644 index 0000000000..1b6fffc332 --- /dev/null +++ b/model_brief_ip_sec_policy.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicy{} + +// BriefIPSecPolicy Adds support for custom fields and tags. +type BriefIPSecPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicy BriefIPSecPolicy + +// NewBriefIPSecPolicy instantiates a new BriefIPSecPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecPolicy(id int32, url string, display string, name string) *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecPolicyWithDefaults instantiates a new BriefIPSecPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecPolicyWithDefaults() *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecPolicy) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecPolicy) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPSecPolicy) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecPolicy) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPSecPolicy) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecPolicy) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIPSecPolicy) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicy) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicy) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecPolicy) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecPolicy := _BriefIPSecPolicy{} + + err = json.Unmarshal(data, &varBriefIPSecPolicy) + + if err != nil { + return err + } + + *o = BriefIPSecPolicy(varBriefIPSecPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicy struct { + value *BriefIPSecPolicy + isSet bool +} + +func (v NullableBriefIPSecPolicy) Get() *BriefIPSecPolicy { + return v.value +} + +func (v *NullableBriefIPSecPolicy) Set(val *BriefIPSecPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicy(val *BriefIPSecPolicy) *NullableBriefIPSecPolicy { + return &NullableBriefIPSecPolicy{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go new file mode 100644 index 0000000000..1548cb7792 --- /dev/null +++ b/model_brief_ip_sec_policy_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicyRequest{} + +// BriefIPSecPolicyRequest Adds support for custom fields and tags. +type BriefIPSecPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicyRequest BriefIPSecPolicyRequest + +// NewBriefIPSecPolicyRequest instantiates a new BriefIPSecPolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecPolicyRequest(name string) *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecPolicyRequestWithDefaults instantiates a new BriefIPSecPolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecPolicyRequestWithDefaults() *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecPolicyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecPolicyRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecPolicyRequest := _BriefIPSecPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIPSecPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIPSecPolicyRequest(varBriefIPSecPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicyRequest struct { + value *BriefIPSecPolicyRequest + isSet bool +} + +func (v NullableBriefIPSecPolicyRequest) Get() *BriefIPSecPolicyRequest { + return v.value +} + +func (v *NullableBriefIPSecPolicyRequest) Set(val *BriefIPSecPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicyRequest(val *BriefIPSecPolicyRequest) *NullableBriefIPSecPolicyRequest { + return &NullableBriefIPSecPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go new file mode 100644 index 0000000000..1b4fc35927 --- /dev/null +++ b/model_brief_ip_sec_profile.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfile{} + +// BriefIPSecProfile Adds support for custom fields and tags. +type BriefIPSecProfile struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfile BriefIPSecProfile + +// NewBriefIPSecProfile instantiates a new BriefIPSecProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecProfile(id int32, url string, display string, name string) *BriefIPSecProfile { + this := BriefIPSecProfile{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecProfileWithDefaults instantiates a new BriefIPSecProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecProfileWithDefaults() *BriefIPSecProfile { + this := BriefIPSecProfile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecProfile) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecProfile) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPSecProfile) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecProfile) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPSecProfile) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecProfile) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIPSecProfile) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfile) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfile) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecProfile) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecProfile) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfile) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecProfile := _BriefIPSecProfile{} + + err = json.Unmarshal(data, &varBriefIPSecProfile) + + if err != nil { + return err + } + + *o = BriefIPSecProfile(varBriefIPSecProfile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfile struct { + value *BriefIPSecProfile + isSet bool +} + +func (v NullableBriefIPSecProfile) Get() *BriefIPSecProfile { + return v.value +} + +func (v *NullableBriefIPSecProfile) Set(val *BriefIPSecProfile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfile(val *BriefIPSecProfile) *NullableBriefIPSecProfile { + return &NullableBriefIPSecProfile{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go new file mode 100644 index 0000000000..7321e231eb --- /dev/null +++ b/model_brief_ip_sec_profile_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfileRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfileRequest{} + +// BriefIPSecProfileRequest Adds support for custom fields and tags. +type BriefIPSecProfileRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfileRequest BriefIPSecProfileRequest + +// NewBriefIPSecProfileRequest instantiates a new BriefIPSecProfileRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecProfileRequest(name string) *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecProfileRequestWithDefaults instantiates a new BriefIPSecProfileRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecProfileRequestWithDefaults() *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecProfileRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfileRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfileRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecProfileRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfileRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecProfileRequest := _BriefIPSecProfileRequest{} + + err = json.Unmarshal(data, &varBriefIPSecProfileRequest) + + if err != nil { + return err + } + + *o = BriefIPSecProfileRequest(varBriefIPSecProfileRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfileRequest struct { + value *BriefIPSecProfileRequest + isSet bool +} + +func (v NullableBriefIPSecProfileRequest) Get() *BriefIPSecProfileRequest { + return v.value +} + +func (v *NullableBriefIPSecProfileRequest) Set(val *BriefIPSecProfileRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfileRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfileRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfileRequest(val *BriefIPSecProfileRequest) *NullableBriefIPSecProfileRequest { + return &NullableBriefIPSecProfileRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfileRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_job.go b/model_brief_job.go new file mode 100644 index 0000000000..37912f6a28 --- /dev/null +++ b/model_brief_job.go @@ -0,0 +1,302 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the BriefJob type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJob{} + +// BriefJob struct for BriefJob +type BriefJob struct { + Url string `json:"url"` + Status BriefJobStatus `json:"status"` + Created time.Time `json:"created"` + Completed NullableTime `json:"completed,omitempty"` + User BriefUser `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _BriefJob BriefJob + +// NewBriefJob instantiates a new BriefJob object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJob(url string, status BriefJobStatus, created time.Time, user BriefUser) *BriefJob { + this := BriefJob{} + this.Url = url + this.Status = status + this.Created = created + this.User = user + return &this +} + +// NewBriefJobWithDefaults instantiates a new BriefJob object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobWithDefaults() *BriefJob { + this := BriefJob{} + return &this +} + +// GetUrl returns the Url field value +func (o *BriefJob) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefJob) SetUrl(v string) { + o.Url = v +} + +// GetStatus returns the Status field value +func (o *BriefJob) GetStatus() BriefJobStatus { + if o == nil { + var ret BriefJobStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetStatusOk() (*BriefJobStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BriefJob) SetStatus(v BriefJobStatus) { + o.Status = v +} + +// GetCreated returns the Created field value +func (o *BriefJob) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *BriefJob) SetCreated(v time.Time) { + o.Created = v +} + +// GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefJob) GetCompleted() time.Time { + if o == nil || IsNil(o.Completed.Get()) { + var ret time.Time + return ret + } + return *o.Completed.Get() +} + +// GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefJob) GetCompletedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Completed.Get(), o.Completed.IsSet() +} + +// HasCompleted returns a boolean if a field has been set. +func (o *BriefJob) HasCompleted() bool { + if o != nil && o.Completed.IsSet() { + return true + } + + return false +} + +// SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. +func (o *BriefJob) SetCompleted(v time.Time) { + o.Completed.Set(&v) +} + +// SetCompletedNil sets the value for Completed to be an explicit nil +func (o *BriefJob) SetCompletedNil() { + o.Completed.Set(nil) +} + +// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +func (o *BriefJob) UnsetCompleted() { + o.Completed.Unset() +} + +// GetUser returns the User field value +func (o *BriefJob) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *BriefJob) SetUser(v BriefUser) { + o.User = v +} + +func (o BriefJob) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJob) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["status"] = o.Status + toSerialize["created"] = o.Created + if o.Completed.IsSet() { + toSerialize["completed"] = o.Completed.Get() + } + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJob) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "status", + "created", + "user", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefJob := _BriefJob{} + + err = json.Unmarshal(data, &varBriefJob) + + if err != nil { + return err + } + + *o = BriefJob(varBriefJob) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + delete(additionalProperties, "status") + delete(additionalProperties, "created") + delete(additionalProperties, "completed") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJob struct { + value *BriefJob + isSet bool +} + +func (v NullableBriefJob) Get() *BriefJob { + return v.value +} + +func (v *NullableBriefJob) Set(val *BriefJob) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJob) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJob(val *BriefJob) *NullableBriefJob { + return &NullableBriefJob{value: val, isSet: true} +} + +func (v NullableBriefJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_job_request.go b/model_brief_job_request.go new file mode 100644 index 0000000000..d6fbad5080 --- /dev/null +++ b/model_brief_job_request.go @@ -0,0 +1,165 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the BriefJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobRequest{} + +// BriefJobRequest struct for BriefJobRequest +type BriefJobRequest struct { + Completed NullableTime `json:"completed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefJobRequest BriefJobRequest + +// NewBriefJobRequest instantiates a new BriefJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJobRequest() *BriefJobRequest { + this := BriefJobRequest{} + return &this +} + +// NewBriefJobRequestWithDefaults instantiates a new BriefJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobRequestWithDefaults() *BriefJobRequest { + this := BriefJobRequest{} + return &this +} + +// GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefJobRequest) GetCompleted() time.Time { + if o == nil || IsNil(o.Completed.Get()) { + var ret time.Time + return ret + } + return *o.Completed.Get() +} + +// GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefJobRequest) GetCompletedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Completed.Get(), o.Completed.IsSet() +} + +// HasCompleted returns a boolean if a field has been set. +func (o *BriefJobRequest) HasCompleted() bool { + if o != nil && o.Completed.IsSet() { + return true + } + + return false +} + +// SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. +func (o *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) +} + +// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +func (o *BriefJobRequest) UnsetCompleted() { + o.Completed.Unset() +} + +func (o BriefJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Completed.IsSet() { + toSerialize["completed"] = o.Completed.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJobRequest) UnmarshalJSON(data []byte) (err error) { + varBriefJobRequest := _BriefJobRequest{} + + err = json.Unmarshal(data, &varBriefJobRequest) + + if err != nil { + return err + } + + *o = BriefJobRequest(varBriefJobRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "completed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJobRequest struct { + value *BriefJobRequest + isSet bool +} + +func (v NullableBriefJobRequest) Get() *BriefJobRequest { + return v.value +} + +func (v *NullableBriefJobRequest) Set(val *BriefJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobRequest(val *BriefJobRequest) *NullableBriefJobRequest { + return &NullableBriefJobRequest{value: val, isSet: true} +} + +func (v NullableBriefJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_job_status.go b/model_brief_job_status.go new file mode 100644 index 0000000000..c74c3169e6 --- /dev/null +++ b/model_brief_job_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefJobStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobStatus{} + +// BriefJobStatus struct for BriefJobStatus +type BriefJobStatus struct { + Value *BriefJobStatusValue `json:"value,omitempty"` + Label *BriefJobStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefJobStatus BriefJobStatus + +// NewBriefJobStatus instantiates a new BriefJobStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJobStatus() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// NewBriefJobStatusWithDefaults instantiates a new BriefJobStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobStatusWithDefaults() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefJobStatus) GetValue() BriefJobStatusValue { + if o == nil || IsNil(o.Value) { + var ret BriefJobStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefJobStatus) GetValueOk() (*BriefJobStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefJobStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefJobStatusValue and assigns it to the Value field. +func (o *BriefJobStatus) SetValue(v BriefJobStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefJobStatus) GetLabel() BriefJobStatusLabel { + if o == nil || IsNil(o.Label) { + var ret BriefJobStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefJobStatus) GetLabelOk() (*BriefJobStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefJobStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefJobStatusLabel and assigns it to the Label field. +func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel) { + o.Label = &v +} + +func (o BriefJobStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJobStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJobStatus) UnmarshalJSON(data []byte) (err error) { + varBriefJobStatus := _BriefJobStatus{} + + err = json.Unmarshal(data, &varBriefJobStatus) + + if err != nil { + return err + } + + *o = BriefJobStatus(varBriefJobStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJobStatus struct { + value *BriefJobStatus + isSet bool +} + +func (v NullableBriefJobStatus) Get() *BriefJobStatus { + return v.value +} + +func (v *NullableBriefJobStatus) Set(val *BriefJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatus(val *BriefJobStatus) *NullableBriefJobStatus { + return &NullableBriefJobStatus{value: val, isSet: true} +} + +func (v NullableBriefJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go new file mode 100644 index 0000000000..2cda8ab28d --- /dev/null +++ b/model_brief_job_status_label.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusLabel the model 'BriefJobStatusLabel' +type BriefJobStatusLabel string + +// List of BriefJob_status_label +const ( + BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending" + BRIEFJOBSTATUSLABEL_SCHEDULED BriefJobStatusLabel = "Scheduled" + BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running" + BRIEFJOBSTATUSLABEL_COMPLETED BriefJobStatusLabel = "Completed" + BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored" + BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed" +) + +// All allowed values of BriefJobStatusLabel enum +var AllowedBriefJobStatusLabelEnumValues = []BriefJobStatusLabel{ + "Pending", + "Scheduled", + "Running", + "Completed", + "Errored", + "Failed", +} + +func (v *BriefJobStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusLabel(value) + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusLabel", value) +} + +// NewBriefJobStatusLabelFromValue returns a pointer to a valid BriefJobStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusLabelFromValue(v string) (*BriefJobStatusLabel, error) { + ev := BriefJobStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusLabel: valid values are %v", v, AllowedBriefJobStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusLabel) IsValid() bool { + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_label value +func (v BriefJobStatusLabel) Ptr() *BriefJobStatusLabel { + return &v +} + +type NullableBriefJobStatusLabel struct { + value *BriefJobStatusLabel + isSet bool +} + +func (v NullableBriefJobStatusLabel) Get() *BriefJobStatusLabel { + return v.value +} + +func (v *NullableBriefJobStatusLabel) Set(val *BriefJobStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusLabel(val *BriefJobStatusLabel) *NullableBriefJobStatusLabel { + return &NullableBriefJobStatusLabel{value: val, isSet: true} +} + +func (v NullableBriefJobStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go new file mode 100644 index 0000000000..b4c937c601 --- /dev/null +++ b/model_brief_job_status_value.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusValue * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +type BriefJobStatusValue string + +// List of BriefJob_status_value +const ( + BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending" + BRIEFJOBSTATUSVALUE_SCHEDULED BriefJobStatusValue = "scheduled" + BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running" + BRIEFJOBSTATUSVALUE_COMPLETED BriefJobStatusValue = "completed" + BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored" + BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed" +) + +// All allowed values of BriefJobStatusValue enum +var AllowedBriefJobStatusValueEnumValues = []BriefJobStatusValue{ + "pending", + "scheduled", + "running", + "completed", + "errored", + "failed", +} + +func (v *BriefJobStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusValue(value) + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusValue", value) +} + +// NewBriefJobStatusValueFromValue returns a pointer to a valid BriefJobStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusValueFromValue(v string) (*BriefJobStatusValue, error) { + ev := BriefJobStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusValue: valid values are %v", v, AllowedBriefJobStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusValue) IsValid() bool { + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_value value +func (v BriefJobStatusValue) Ptr() *BriefJobStatusValue { + return &v +} + +type NullableBriefJobStatusValue struct { + value *BriefJobStatusValue + isSet bool +} + +func (v NullableBriefJobStatusValue) Get() *BriefJobStatusValue { + return v.value +} + +func (v *NullableBriefJobStatusValue) Set(val *BriefJobStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusValue(val *BriefJobStatusValue) *NullableBriefJobStatusValue { + return &NullableBriefJobStatusValue{value: val, isSet: true} +} + +func (v NullableBriefJobStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go new file mode 100644 index 0000000000..7fbb577729 --- /dev/null +++ b/model_brief_l2_vpn.go @@ -0,0 +1,404 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPN{} + +// BriefL2VPN Adds support for custom fields and tags. +type BriefL2VPN struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPN BriefL2VPN + +// NewBriefL2VPN instantiates a new BriefL2VPN object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPN(id int32, url string, display string, name string, slug string) *BriefL2VPN { + this := BriefL2VPN{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNWithDefaults instantiates a new BriefL2VPN object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNWithDefaults() *BriefL2VPN { + this := BriefL2VPN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPN) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPN) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefL2VPN) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPN) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefL2VPN) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPN) SetDisplay(v string) { + o.Display = v +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPN) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefL2VPN) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPN) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPN) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} + +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPN) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPN) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPN) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPN) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefL2VPN) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPN) SetSlug(v string) { + o.Slug = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPN) GetType() BriefL2VPNType { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetTypeOk() (*BriefL2VPNType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPN) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *BriefL2VPN) SetType(v BriefL2VPNType) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPN) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefL2VPN) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefL2VPN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPN) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPN := _BriefL2VPN{} + + err = json.Unmarshal(data, &varBriefL2VPN) + + if err != nil { + return err + } + + *o = BriefL2VPN(varBriefL2VPN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPN struct { + value *BriefL2VPN + isSet bool +} + +func (v NullableBriefL2VPN) Get() *BriefL2VPN { + return v.value +} + +func (v *NullableBriefL2VPN) Set(val *BriefL2VPN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPN(val *BriefL2VPN) *NullableBriefL2VPN { + return &NullableBriefL2VPN{value: val, isSet: true} +} + +func (v NullableBriefL2VPN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go new file mode 100644 index 0000000000..3c9ac88b02 --- /dev/null +++ b/model_brief_l2_vpn_request.go @@ -0,0 +1,317 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNRequest{} + +// BriefL2VPNRequest Adds support for custom fields and tags. +type BriefL2VPNRequest struct { + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNRequest BriefL2VPNRequest + +// NewBriefL2VPNRequest instantiates a new BriefL2VPNRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNRequest(name string, slug string) *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNRequestWithDefaults instantiates a new BriefL2VPNRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNRequestWithDefaults() *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + return &this +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPNRequest) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefL2VPNRequest) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPNRequest) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} + +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPNRequest) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPNRequest) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPNRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPNRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefL2VPNRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPNRequest) SetSlug(v string) { + o.Slug = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNTypeValue + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *BriefL2VPNRequest) SetType(v BriefL2VPNTypeValue) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefL2VPNRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPNRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNRequest := _BriefL2VPNRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNRequest(varBriefL2VPNRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNRequest struct { + value *BriefL2VPNRequest + isSet bool +} + +func (v NullableBriefL2VPNRequest) Get() *BriefL2VPNRequest { + return v.value +} + +func (v *NullableBriefL2VPNRequest) Set(val *BriefL2VPNRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNRequest(val *BriefL2VPNRequest) *NullableBriefL2VPNRequest { + return &NullableBriefL2VPNRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go new file mode 100644 index 0000000000..54b3202306 --- /dev/null +++ b/model_brief_l2_vpn_termination.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTermination{} + +// BriefL2VPNTermination Adds support for custom fields and tags. +type BriefL2VPNTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTermination BriefL2VPNTermination + +// NewBriefL2VPNTermination instantiates a new BriefL2VPNTermination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN) *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + this.Id = id + this.Url = url + this.Display = display + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationWithDefaults instantiates a new BriefL2VPNTermination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTerminationWithDefaults() *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPNTermination) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPNTermination) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefL2VPNTermination) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPNTermination) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefL2VPNTermination) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPNTermination) SetDisplay(v string) { + o.Display = v +} + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN { + if o == nil { + var ret BriefL2VPN + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN) { + o.L2vpn = v +} + +func (o BriefL2VPNTermination) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "l2vpn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNTermination := _BriefL2VPNTermination{} + + err = json.Unmarshal(data, &varBriefL2VPNTermination) + + if err != nil { + return err + } + + *o = BriefL2VPNTermination(varBriefL2VPNTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTermination struct { + value *BriefL2VPNTermination + isSet bool +} + +func (v NullableBriefL2VPNTermination) Get() *BriefL2VPNTermination { + return v.value +} + +func (v *NullableBriefL2VPNTermination) Set(val *BriefL2VPNTermination) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTermination(val *BriefL2VPNTermination) *NullableBriefL2VPNTermination { + return &NullableBriefL2VPNTermination{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go new file mode 100644 index 0000000000..4afb8d0d95 --- /dev/null +++ b/model_brief_l2_vpn_termination_request.go @@ -0,0 +1,166 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTerminationRequest{} + +// BriefL2VPNTerminationRequest Adds support for custom fields and tags. +type BriefL2VPNTerminationRequest struct { + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTerminationRequest BriefL2VPNTerminationRequest + +// NewBriefL2VPNTerminationRequest instantiates a new BriefL2VPNTerminationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest) *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationRequestWithDefaults instantiates a new BriefL2VPNTerminationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + return &this +} + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { + if o == nil { + var ret BriefL2VPNRequest + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { + o.L2vpn = v +} + +func (o BriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "l2vpn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNTerminationRequest := _BriefL2VPNTerminationRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNTerminationRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNTerminationRequest(varBriefL2VPNTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTerminationRequest struct { + value *BriefL2VPNTerminationRequest + isSet bool +} + +func (v NullableBriefL2VPNTerminationRequest) Get() *BriefL2VPNTerminationRequest { + return v.value +} + +func (v *NullableBriefL2VPNTerminationRequest) Set(val *BriefL2VPNTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTerminationRequest(val *BriefL2VPNTerminationRequest) *NullableBriefL2VPNTerminationRequest { + return &NullableBriefL2VPNTerminationRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go new file mode 100644 index 0000000000..20dd337b49 --- /dev/null +++ b/model_brief_l2_vpn_type.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefL2VPNType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNType{} + +// BriefL2VPNType struct for BriefL2VPNType +type BriefL2VPNType struct { + Value *BriefL2VPNTypeValue `json:"value,omitempty"` + Label *BriefL2VPNTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNType BriefL2VPNType + +// NewBriefL2VPNType instantiates a new BriefL2VPNType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNType() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// NewBriefL2VPNTypeWithDefaults instantiates a new BriefL2VPNType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTypeWithDefaults() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetValue() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Value) { + var ret BriefL2VPNTypeValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNType) GetValueOk() (*BriefL2VPNTypeValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefL2VPNType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefL2VPNTypeValue and assigns it to the Value field. +func (o *BriefL2VPNType) SetValue(v BriefL2VPNTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetLabel() BriefL2VPNTypeLabel { + if o == nil || IsNil(o.Label) { + var ret BriefL2VPNTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNType) GetLabelOk() (*BriefL2VPNTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefL2VPNType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefL2VPNTypeLabel and assigns it to the Label field. +func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel) { + o.Label = &v +} + +func (o BriefL2VPNType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNType) UnmarshalJSON(data []byte) (err error) { + varBriefL2VPNType := _BriefL2VPNType{} + + err = json.Unmarshal(data, &varBriefL2VPNType) + + if err != nil { + return err + } + + *o = BriefL2VPNType(varBriefL2VPNType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNType struct { + value *BriefL2VPNType + isSet bool +} + +func (v NullableBriefL2VPNType) Get() *BriefL2VPNType { + return v.value +} + +func (v *NullableBriefL2VPNType) Set(val *BriefL2VPNType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNType(val *BriefL2VPNType) *NullableBriefL2VPNType { + return &NullableBriefL2VPNType{value: val, isSet: true} +} + +func (v NullableBriefL2VPNType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go new file mode 100644 index 0000000000..dcb9b299a7 --- /dev/null +++ b/model_brief_l2_vpn_type_label.go @@ -0,0 +1,130 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeLabel the model 'BriefL2VPNTypeLabel' +type BriefL2VPNTypeLabel string + +// List of BriefL2VPN_type_label +const ( + BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS" + BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS" + BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN" + BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN" + BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN" + BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN" + BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL" + BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Virtual Private Tree" +) + +// All allowed values of BriefL2VPNTypeLabel enum +var AllowedBriefL2VPNTypeLabelEnumValues = []BriefL2VPNTypeLabel{ + "VPWS", + "VPLS", + "VXLAN", + "VXLAN-EVPN", + "MPLS EVPN", + "PBB EVPN", + "EPL", + "EVPL", + "Ethernet Private LAN", + "Ethernet Virtual Private LAN", + "Ethernet Private Tree", + "Ethernet Virtual Private Tree", +} + +func (v *BriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeLabel(value) + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeLabel", value) +} + +// NewBriefL2VPNTypeLabelFromValue returns a pointer to a valid BriefL2VPNTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeLabelFromValue(v string) (*BriefL2VPNTypeLabel, error) { + ev := BriefL2VPNTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeLabel: valid values are %v", v, AllowedBriefL2VPNTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeLabel) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_label value +func (v BriefL2VPNTypeLabel) Ptr() *BriefL2VPNTypeLabel { + return &v +} + +type NullableBriefL2VPNTypeLabel struct { + value *BriefL2VPNTypeLabel + isSet bool +} + +func (v NullableBriefL2VPNTypeLabel) Get() *BriefL2VPNTypeLabel { + return v.value +} + +func (v *NullableBriefL2VPNTypeLabel) Set(val *BriefL2VPNTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeLabel(val *BriefL2VPNTypeLabel) *NullableBriefL2VPNTypeLabel { + return &NullableBriefL2VPNTypeLabel{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go new file mode 100644 index 0000000000..dc5065a517 --- /dev/null +++ b/model_brief_l2_vpn_type_value.go @@ -0,0 +1,130 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +type BriefL2VPNTypeValue string + +// List of BriefL2VPN_type_value +const ( + BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws" + BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls" + BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan" + BRIEFL2VPNTYPEVALUE_VXLAN_EVPN BriefL2VPNTypeValue = "vxlan-evpn" + BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn" + BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn" + BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl" + BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl" + BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan" + BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan" + BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree" + BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree" +) + +// All allowed values of BriefL2VPNTypeValue enum +var AllowedBriefL2VPNTypeValueEnumValues = []BriefL2VPNTypeValue{ + "vpws", + "vpls", + "vxlan", + "vxlan-evpn", + "mpls-evpn", + "pbb-evpn", + "epl", + "evpl", + "ep-lan", + "evp-lan", + "ep-tree", + "evp-tree", +} + +func (v *BriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeValue(value) + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeValue", value) +} + +// NewBriefL2VPNTypeValueFromValue returns a pointer to a valid BriefL2VPNTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeValueFromValue(v string) (*BriefL2VPNTypeValue, error) { + ev := BriefL2VPNTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeValue: valid values are %v", v, AllowedBriefL2VPNTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeValue) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_value value +func (v BriefL2VPNTypeValue) Ptr() *BriefL2VPNTypeValue { + return &v +} + +type NullableBriefL2VPNTypeValue struct { + value *BriefL2VPNTypeValue + isSet bool +} + +func (v NullableBriefL2VPNTypeValue) Get() *BriefL2VPNTypeValue { + return v.value +} + +func (v *NullableBriefL2VPNTypeValue) Set(val *BriefL2VPNTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeValue(val *BriefL2VPNTypeValue) *NullableBriefL2VPNTypeValue { + return &NullableBriefL2VPNTypeValue{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_location.go b/model_brief_location.go new file mode 100644 index 0000000000..6fa073cfd8 --- /dev/null +++ b/model_brief_location.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocation{} + +// BriefLocation Extends PrimaryModelSerializer to include MPTT support. +type BriefLocation struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int32 `json:"rack_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocation BriefLocation + +// NewBriefLocation instantiates a new BriefLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *BriefLocation { + this := BriefLocation{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.RackCount = rackCount + this.Depth = depth + return &this +} + +// NewBriefLocationWithDefaults instantiates a new BriefLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefLocationWithDefaults() *BriefLocation { + this := BriefLocation{} + return &this +} + +// GetId returns the Id field value +func (o *BriefLocation) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefLocation) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefLocation) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefLocation) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefLocation) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefLocation) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefLocation) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocation) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefLocation) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocation) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefLocation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefLocation) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value +func (o *BriefLocation) GetRackCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetRackCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *BriefLocation) SetRackCount(v int32) { + o.RackCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefLocation) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefLocation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["rack_count"] = o.RackCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "rack_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefLocation := _BriefLocation{} + + err = json.Unmarshal(data, &varBriefLocation) + + if err != nil { + return err + } + + *o = BriefLocation(varBriefLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocation struct { + value *BriefLocation + isSet bool +} + +func (v NullableBriefLocation) Get() *BriefLocation { + return v.value +} + +func (v *NullableBriefLocation) Set(val *BriefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocation(val *BriefLocation) *NullableBriefLocation { + return &NullableBriefLocation{value: val, isSet: true} +} + +func (v NullableBriefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_location_request.go b/model_brief_location_request.go new file mode 100644 index 0000000000..03194e1c62 --- /dev/null +++ b/model_brief_location_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocationRequest{} + +// BriefLocationRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefLocationRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocationRequest BriefLocationRequest + +// NewBriefLocationRequest instantiates a new BriefLocationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefLocationRequest(name string, slug string) *BriefLocationRequest { + this := BriefLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefLocationRequestWithDefaults instantiates a new BriefLocationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefLocationRequestWithDefaults() *BriefLocationRequest { + this := BriefLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefLocationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocationRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefLocationRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocationRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocationRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefLocationRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefLocationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefLocationRequest := _BriefLocationRequest{} + + err = json.Unmarshal(data, &varBriefLocationRequest) + + if err != nil { + return err + } + + *o = BriefLocationRequest(varBriefLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocationRequest struct { + value *BriefLocationRequest + isSet bool +} + +func (v NullableBriefLocationRequest) Get() *BriefLocationRequest { + return v.value +} + +func (v *NullableBriefLocationRequest) Set(val *BriefLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocationRequest(val *BriefLocationRequest) *NullableBriefLocationRequest { + return &NullableBriefLocationRequest{value: val, isSet: true} +} + +func (v NullableBriefLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go new file mode 100644 index 0000000000..4eaa45da07 --- /dev/null +++ b/model_brief_manufacturer.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturer{} + +// BriefManufacturer Adds support for custom fields and tags. +type BriefManufacturer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DevicetypeCount int64 `json:"devicetype_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturer BriefManufacturer + +// NewBriefManufacturer instantiates a new BriefManufacturer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64) *BriefManufacturer { + this := BriefManufacturer{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.DevicetypeCount = devicetypeCount + return &this +} + +// NewBriefManufacturerWithDefaults instantiates a new BriefManufacturer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefManufacturerWithDefaults() *BriefManufacturer { + this := BriefManufacturer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefManufacturer) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefManufacturer) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefManufacturer) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefManufacturer) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefManufacturer) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefManufacturer) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefManufacturer) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturer) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefManufacturer) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturer) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturer) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefManufacturer) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefManufacturer) SetDescription(v string) { + o.Description = &v +} + +// GetDevicetypeCount returns the DevicetypeCount field value +func (o *BriefManufacturer) GetDevicetypeCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DevicetypeCount +} + +// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDevicetypeCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DevicetypeCount, true +} + +// SetDevicetypeCount sets field value +func (o *BriefManufacturer) SetDevicetypeCount(v int64) { + o.DevicetypeCount = v +} + +func (o BriefManufacturer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["devicetype_count"] = o.DevicetypeCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "devicetype_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefManufacturer := _BriefManufacturer{} + + err = json.Unmarshal(data, &varBriefManufacturer) + + if err != nil { + return err + } + + *o = BriefManufacturer(varBriefManufacturer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "devicetype_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturer struct { + value *BriefManufacturer + isSet bool +} + +func (v NullableBriefManufacturer) Get() *BriefManufacturer { + return v.value +} + +func (v *NullableBriefManufacturer) Set(val *BriefManufacturer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturer(val *BriefManufacturer) *NullableBriefManufacturer { + return &NullableBriefManufacturer{value: val, isSet: true} +} + +func (v NullableBriefManufacturer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go new file mode 100644 index 0000000000..ca9af173ea --- /dev/null +++ b/model_brief_manufacturer_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturerRequest{} + +// BriefManufacturerRequest Adds support for custom fields and tags. +type BriefManufacturerRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturerRequest BriefManufacturerRequest + +// NewBriefManufacturerRequest instantiates a new BriefManufacturerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefManufacturerRequest(name string, slug string) *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefManufacturerRequestWithDefaults instantiates a new BriefManufacturerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefManufacturerRequestWithDefaults() *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefManufacturerRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturerRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefManufacturerRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturerRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturerRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefManufacturerRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefManufacturerRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefManufacturerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefManufacturerRequest := _BriefManufacturerRequest{} + + err = json.Unmarshal(data, &varBriefManufacturerRequest) + + if err != nil { + return err + } + + *o = BriefManufacturerRequest(varBriefManufacturerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturerRequest struct { + value *BriefManufacturerRequest + isSet bool +} + +func (v NullableBriefManufacturerRequest) Get() *BriefManufacturerRequest { + return v.value +} + +func (v *NullableBriefManufacturerRequest) Set(val *BriefManufacturerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturerRequest(val *BriefManufacturerRequest) *NullableBriefManufacturerRequest { + return &NullableBriefManufacturerRequest{value: val, isSet: true} +} + +func (v NullableBriefManufacturerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_module.go b/model_brief_module.go new file mode 100644 index 0000000000..bea103e2aa --- /dev/null +++ b/model_brief_module.go @@ -0,0 +1,282 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModule{} + +// BriefModule Adds support for custom fields and tags. +type BriefModule struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModule BriefModule + +// NewBriefModule instantiates a new BriefModule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay) *BriefModule { + this := BriefModule{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleWithDefaults instantiates a new BriefModule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleWithDefaults() *BriefModule { + this := BriefModule{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModule) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModule) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefModule) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModule) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefModule) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModule) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefModule) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModule) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModule) GetModuleBay() NestedModuleBay { + if o == nil { + var ret NestedModuleBay + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetModuleBayOk() (*NestedModuleBay, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModule) SetModuleBay(v NestedModuleBay) { + o.ModuleBay = v +} + +func (o BriefModule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "module_bay", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModule := _BriefModule{} + + err = json.Unmarshal(data, &varBriefModule) + + if err != nil { + return err + } + + *o = BriefModule(varBriefModule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModule struct { + value *BriefModule + isSet bool +} + +func (v NullableBriefModule) Get() *BriefModule { + return v.value +} + +func (v *NullableBriefModule) Set(val *BriefModule) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModule) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModule(val *BriefModule) *NullableBriefModule { + return &NullableBriefModule{value: val, isSet: true} +} + +func (v NullableBriefModule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_module_request.go b/model_brief_module_request.go new file mode 100644 index 0000000000..34049d03d5 --- /dev/null +++ b/model_brief_module_request.go @@ -0,0 +1,195 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleRequest{} + +// BriefModuleRequest Adds support for custom fields and tags. +type BriefModuleRequest struct { + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleRequest BriefModuleRequest + +// NewBriefModuleRequest instantiates a new BriefModuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest) *BriefModuleRequest { + this := BriefModuleRequest{} + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleRequestWithDefaults instantiates a new BriefModuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleRequestWithDefaults() *BriefModuleRequest { + this := BriefModuleRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest { + if o == nil { + var ret NestedModuleBayRequest + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetModuleBayOk() (*NestedModuleBayRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest) { + o.ModuleBay = v +} + +func (o BriefModuleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "module_bay", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleRequest := _BriefModuleRequest{} + + err = json.Unmarshal(data, &varBriefModuleRequest) + + if err != nil { + return err + } + + *o = BriefModuleRequest(varBriefModuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleRequest struct { + value *BriefModuleRequest + isSet bool +} + +func (v NullableBriefModuleRequest) Get() *BriefModuleRequest { + return v.value +} + +func (v *NullableBriefModuleRequest) Set(val *BriefModuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleRequest(val *BriefModuleRequest) *NullableBriefModuleRequest { + return &NullableBriefModuleRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_module_type.go b/model_brief_module_type.go new file mode 100644 index 0000000000..8e1667bdf5 --- /dev/null +++ b/model_brief_module_type.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleType{} + +// BriefModuleType Adds support for custom fields and tags. +type BriefModuleType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleType BriefModuleType + +// NewBriefModuleType instantiates a new BriefModuleType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string) *BriefModuleType { + this := BriefModuleType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeWithDefaults instantiates a new BriefModuleType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleTypeWithDefaults() *BriefModuleType { + this := BriefModuleType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModuleType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModuleType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefModuleType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModuleType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefModuleType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModuleType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefModuleType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleType) SetModel(v string) { + o.Model = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefModuleType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefModuleType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleType := _BriefModuleType{} + + err = json.Unmarshal(data, &varBriefModuleType) + + if err != nil { + return err + } + + *o = BriefModuleType(varBriefModuleType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleType struct { + value *BriefModuleType + isSet bool +} + +func (v NullableBriefModuleType) Get() *BriefModuleType { + return v.value +} + +func (v *NullableBriefModuleType) Set(val *BriefModuleType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleType(val *BriefModuleType) *NullableBriefModuleType { + return &NullableBriefModuleType{value: val, isSet: true} +} + +func (v NullableBriefModuleType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go new file mode 100644 index 0000000000..aee60c62c1 --- /dev/null +++ b/model_brief_module_type_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleTypeRequest{} + +// BriefModuleTypeRequest Adds support for custom fields and tags. +type BriefModuleTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleTypeRequest BriefModuleTypeRequest + +// NewBriefModuleTypeRequest instantiates a new BriefModuleTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeRequestWithDefaults instantiates a new BriefModuleTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefModuleTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefModuleTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefModuleTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleTypeRequest := _BriefModuleTypeRequest{} + + err = json.Unmarshal(data, &varBriefModuleTypeRequest) + + if err != nil { + return err + } + + *o = BriefModuleTypeRequest(varBriefModuleTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleTypeRequest struct { + value *BriefModuleTypeRequest + isSet bool +} + +func (v NullableBriefModuleTypeRequest) Get() *BriefModuleTypeRequest { + return v.value +} + +func (v *NullableBriefModuleTypeRequest) Set(val *BriefModuleTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleTypeRequest(val *BriefModuleTypeRequest) *NullableBriefModuleTypeRequest { + return &NullableBriefModuleTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_platform.go b/model_brief_platform.go new file mode 100644 index 0000000000..4c47461358 --- /dev/null +++ b/model_brief_platform.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatform type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatform{} + +// BriefPlatform Adds support for custom fields and tags. +type BriefPlatform struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount int64 `json:"device_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatform BriefPlatform + +// NewBriefPlatform instantiates a new BriefPlatform object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *BriefPlatform { + this := BriefPlatform{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.DeviceCount = deviceCount + this.VirtualmachineCount = virtualmachineCount + return &this +} + +// NewBriefPlatformWithDefaults instantiates a new BriefPlatform object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPlatformWithDefaults() *BriefPlatform { + this := BriefPlatform{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPlatform) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPlatform) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPlatform) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPlatform) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPlatform) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPlatform) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPlatform) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatform) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefPlatform) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatform) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatform) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPlatform) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPlatform) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *BriefPlatform) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *BriefPlatform) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value +func (o *BriefPlatform) GetVirtualmachineCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualmachineCount, true +} + +// SetVirtualmachineCount sets field value +func (o *BriefPlatform) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = v +} + +func (o BriefPlatform) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatform) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["device_count"] = o.DeviceCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "device_count", + "virtualmachine_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPlatform := _BriefPlatform{} + + err = json.Unmarshal(data, &varBriefPlatform) + + if err != nil { + return err + } + + *o = BriefPlatform(varBriefPlatform) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatform struct { + value *BriefPlatform + isSet bool +} + +func (v NullableBriefPlatform) Get() *BriefPlatform { + return v.value +} + +func (v *NullableBriefPlatform) Set(val *BriefPlatform) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatform) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatform) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatform(val *BriefPlatform) *NullableBriefPlatform { + return &NullableBriefPlatform{value: val, isSet: true} +} + +func (v NullableBriefPlatform) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatform) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go new file mode 100644 index 0000000000..718d9e407c --- /dev/null +++ b/model_brief_platform_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatformRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatformRequest{} + +// BriefPlatformRequest Adds support for custom fields and tags. +type BriefPlatformRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatformRequest BriefPlatformRequest + +// NewBriefPlatformRequest instantiates a new BriefPlatformRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPlatformRequest(name string, slug string) *BriefPlatformRequest { + this := BriefPlatformRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefPlatformRequestWithDefaults instantiates a new BriefPlatformRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPlatformRequestWithDefaults() *BriefPlatformRequest { + this := BriefPlatformRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPlatformRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatformRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefPlatformRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatformRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatformRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPlatformRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPlatformRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPlatformRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatformRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatformRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPlatformRequest := _BriefPlatformRequest{} + + err = json.Unmarshal(data, &varBriefPlatformRequest) + + if err != nil { + return err + } + + *o = BriefPlatformRequest(varBriefPlatformRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatformRequest struct { + value *BriefPlatformRequest + isSet bool +} + +func (v NullableBriefPlatformRequest) Get() *BriefPlatformRequest { + return v.value +} + +func (v *NullableBriefPlatformRequest) Set(val *BriefPlatformRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatformRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatformRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatformRequest(val *BriefPlatformRequest) *NullableBriefPlatformRequest { + return &NullableBriefPlatformRequest{value: val, isSet: true} +} + +func (v NullableBriefPlatformRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatformRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go new file mode 100644 index 0000000000..7b416ab30d --- /dev/null +++ b/model_brief_power_panel.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanel{} + +// BriefPowerPanel Adds support for custom fields and tags. +type BriefPowerPanel struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanel BriefPowerPanel + +// NewBriefPowerPanel instantiates a new BriefPowerPanel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *BriefPowerPanel { + this := BriefPowerPanel{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.PowerfeedCount = powerfeedCount + return &this +} + +// NewBriefPowerPanelWithDefaults instantiates a new BriefPowerPanel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPanelWithDefaults() *BriefPowerPanel { + this := BriefPowerPanel{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPanel) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPanel) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPanel) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPanel) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPanel) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPanel) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPowerPanel) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanel) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanel) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPanel) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPanel) SetDescription(v string) { + o.Description = &v +} + +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *BriefPowerPanel) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + +func (o BriefPowerPanel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["powerfeed_count"] = o.PowerfeedCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "powerfeed_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPanel := _BriefPowerPanel{} + + err = json.Unmarshal(data, &varBriefPowerPanel) + + if err != nil { + return err + } + + *o = BriefPowerPanel(varBriefPowerPanel) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "powerfeed_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanel struct { + value *BriefPowerPanel + isSet bool +} + +func (v NullableBriefPowerPanel) Get() *BriefPowerPanel { + return v.value +} + +func (v *NullableBriefPowerPanel) Set(val *BriefPowerPanel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanel(val *BriefPowerPanel) *NullableBriefPowerPanel { + return &NullableBriefPowerPanel{value: val, isSet: true} +} + +func (v NullableBriefPowerPanel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go new file mode 100644 index 0000000000..698765eb56 --- /dev/null +++ b/model_brief_power_panel_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanelRequest{} + +// BriefPowerPanelRequest Adds support for custom fields and tags. +type BriefPowerPanelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanelRequest BriefPowerPanelRequest + +// NewBriefPowerPanelRequest instantiates a new BriefPowerPanelRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPanelRequest(name string) *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPanelRequestWithDefaults instantiates a new BriefPowerPanelRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPanelRequestWithDefaults() *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPanelRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanelRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanelRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPanelRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPanelRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPanelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPanelRequest := _BriefPowerPanelRequest{} + + err = json.Unmarshal(data, &varBriefPowerPanelRequest) + + if err != nil { + return err + } + + *o = BriefPowerPanelRequest(varBriefPowerPanelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanelRequest struct { + value *BriefPowerPanelRequest + isSet bool +} + +func (v NullableBriefPowerPanelRequest) Get() *BriefPowerPanelRequest { + return v.value +} + +func (v *NullableBriefPowerPanelRequest) Set(val *BriefPowerPanelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanelRequest(val *BriefPowerPanelRequest) *NullableBriefPowerPanelRequest { + return &NullableBriefPowerPanelRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_port.go b/model_brief_power_port.go new file mode 100644 index 0000000000..f82033d29e --- /dev/null +++ b/model_brief_power_port.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPort type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPort{} + +// BriefPowerPort Adds support for custom fields and tags. +type BriefPowerPort struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPort BriefPowerPort + +// NewBriefPowerPort instantiates a new BriefPowerPort object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool) *BriefPowerPort { + this := BriefPowerPort{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Cable = cable + this.Occupied = occupied + return &this +} + +// NewBriefPowerPortWithDefaults instantiates a new BriefPowerPort object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortWithDefaults() *BriefPowerPort { + this := BriefPowerPort{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPort) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPort) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPort) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPort) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPort) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPort) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefPowerPort) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPort) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefPowerPort) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPort) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPort) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPort) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPort) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *BriefPowerPort) GetCable() BriefCable { + if o == nil || o.Cable.Get() == nil { + var ret BriefCable + return ret + } + + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefPowerPort) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// SetCable sets field value +func (o *BriefPowerPort) SetCable(v BriefCable) { + o.Cable.Set(&v) +} + +// GetOccupied returns the Occupied field value +func (o *BriefPowerPort) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefPowerPort) SetOccupied(v bool) { + o.Occupied = v +} + +func (o BriefPowerPort) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPort) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cable"] = o.Cable.Get() + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPort) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "cable", + "_occupied", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPort := _BriefPowerPort{} + + err = json.Unmarshal(data, &varBriefPowerPort) + + if err != nil { + return err + } + + *o = BriefPowerPort(varBriefPowerPort) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPort struct { + value *BriefPowerPort + isSet bool +} + +func (v NullableBriefPowerPort) Get() *BriefPowerPort { + return v.value +} + +func (v *NullableBriefPowerPort) Set(val *BriefPowerPort) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPort) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPort) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPort(val *BriefPowerPort) *NullableBriefPowerPort { + return &NullableBriefPowerPort{value: val, isSet: true} +} + +func (v NullableBriefPowerPort) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPort) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go new file mode 100644 index 0000000000..4740eda83a --- /dev/null +++ b/model_brief_power_port_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortRequest{} + +// BriefPowerPortRequest Adds support for custom fields and tags. +type BriefPowerPortRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortRequest BriefPowerPortRequest + +// NewBriefPowerPortRequest instantiates a new BriefPowerPortRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortRequest(device BriefDeviceRequest, name string) *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefPowerPortRequestWithDefaults instantiates a new BriefPowerPortRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefPowerPortRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortRequest := _BriefPowerPortRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortRequest(varBriefPowerPortRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortRequest struct { + value *BriefPowerPortRequest + isSet bool +} + +func (v NullableBriefPowerPortRequest) Get() *BriefPowerPortRequest { + return v.value +} + +func (v *NullableBriefPowerPortRequest) Set(val *BriefPowerPortRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortRequest(val *BriefPowerPortRequest) *NullableBriefPowerPortRequest { + return &NullableBriefPowerPortRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go new file mode 100644 index 0000000000..92bcc79809 --- /dev/null +++ b/model_brief_power_port_template.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplate{} + +// BriefPowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefPowerPortTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplate BriefPowerPortTemplate + +// NewBriefPowerPortTemplate instantiates a new BriefPowerPortTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortTemplate(id int32, url string, display string, name string) *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateWithDefaults instantiates a new BriefPowerPortTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortTemplateWithDefaults() *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPortTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPortTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPortTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPortTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPortTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPortTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPowerPortTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortTemplate := _BriefPowerPortTemplate{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplate) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplate(varBriefPowerPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplate struct { + value *BriefPowerPortTemplate + isSet bool +} + +func (v NullableBriefPowerPortTemplate) Get() *BriefPowerPortTemplate { + return v.value +} + +func (v *NullableBriefPowerPortTemplate) Set(val *BriefPowerPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplate(val *BriefPowerPortTemplate) *NullableBriefPowerPortTemplate { + return &NullableBriefPowerPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go new file mode 100644 index 0000000000..313c1462f4 --- /dev/null +++ b/model_brief_power_port_template_request.go @@ -0,0 +1,204 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplateRequest{} + +// BriefPowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefPowerPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplateRequest BriefPowerPortTemplateRequest + +// NewBriefPowerPortTemplateRequest instantiates a new BriefPowerPortTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortTemplateRequest(name string) *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateRequestWithDefaults instantiates a new BriefPowerPortTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortTemplateRequestWithDefaults() *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPortTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortTemplateRequest := _BriefPowerPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplateRequest(varBriefPowerPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplateRequest struct { + value *BriefPowerPortTemplateRequest + isSet bool +} + +func (v NullableBriefPowerPortTemplateRequest) Get() *BriefPowerPortTemplateRequest { + return v.value +} + +func (v *NullableBriefPowerPortTemplateRequest) Set(val *BriefPowerPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplateRequest(val *BriefPowerPortTemplateRequest) *NullableBriefPowerPortTemplateRequest { + return &NullableBriefPowerPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider.go b/model_brief_provider.go new file mode 100644 index 0000000000..165838d3e5 --- /dev/null +++ b/model_brief_provider.go @@ -0,0 +1,349 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProvider{} + +// BriefProvider Adds support for custom fields and tags. +type BriefProvider struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Full name of the provider + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefProvider BriefProvider + +// NewBriefProvider instantiates a new BriefProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefProvider { + this := BriefProvider{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefProviderWithDefaults instantiates a new BriefProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderWithDefaults() *BriefProvider { + this := BriefProvider{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProvider) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProvider) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProvider) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProvider) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProvider) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProvider) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefProvider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProvider) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefProvider) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProvider) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProvider) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProvider) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProvider) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefProvider) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefProvider) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o BriefProvider) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProvider := _BriefProvider{} + + err = json.Unmarshal(data, &varBriefProvider) + + if err != nil { + return err + } + + *o = BriefProvider(varBriefProvider) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProvider struct { + value *BriefProvider + isSet bool +} + +func (v NullableBriefProvider) Get() *BriefProvider { + return v.value +} + +func (v *NullableBriefProvider) Set(val *BriefProvider) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProvider(val *BriefProvider) *NullableBriefProvider { + return &NullableBriefProvider{value: val, isSet: true} +} + +func (v NullableBriefProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go new file mode 100644 index 0000000000..24af5c4814 --- /dev/null +++ b/model_brief_provider_account.go @@ -0,0 +1,331 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccount{} + +// BriefProviderAccount Adds support for custom fields and tags. +type BriefProviderAccount struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccount BriefProviderAccount + +// NewBriefProviderAccount instantiates a new BriefProviderAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderAccount(id int32, url string, display string, account string) *BriefProviderAccount { + this := BriefProviderAccount{} + this.Id = id + this.Url = url + this.Display = display + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountWithDefaults instantiates a new BriefProviderAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderAccountWithDefaults() *BriefProviderAccount { + this := BriefProviderAccount{} + var name string = "" + this.Name = &name + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderAccount) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderAccount) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProviderAccount) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderAccount) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProviderAccount) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderAccount) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccount) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BriefProviderAccount) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BriefProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccount) SetAccount(v string) { + o.Account = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccount) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderAccount) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderAccount) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderAccount := _BriefProviderAccount{} + + err = json.Unmarshal(data, &varBriefProviderAccount) + + if err != nil { + return err + } + + *o = BriefProviderAccount(varBriefProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccount struct { + value *BriefProviderAccount + isSet bool +} + +func (v NullableBriefProviderAccount) Get() *BriefProviderAccount { + return v.value +} + +func (v *NullableBriefProviderAccount) Set(val *BriefProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccount(val *BriefProviderAccount) *NullableBriefProviderAccount { + return &NullableBriefProviderAccount{value: val, isSet: true} +} + +func (v NullableBriefProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go new file mode 100644 index 0000000000..b415deb760 --- /dev/null +++ b/model_brief_provider_account_request.go @@ -0,0 +1,244 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccountRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccountRequest{} + +// BriefProviderAccountRequest Adds support for custom fields and tags. +type BriefProviderAccountRequest struct { + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccountRequest BriefProviderAccountRequest + +// NewBriefProviderAccountRequest instantiates a new BriefProviderAccountRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderAccountRequest(account string) *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountRequestWithDefaults instantiates a new BriefProviderAccountRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderAccountRequestWithDefaults() *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BriefProviderAccountRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BriefProviderAccountRequest) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccountRequest) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccountRequest) SetAccount(v string) { + o.Account = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderAccountRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderAccountRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccountRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderAccountRequest := _BriefProviderAccountRequest{} + + err = json.Unmarshal(data, &varBriefProviderAccountRequest) + + if err != nil { + return err + } + + *o = BriefProviderAccountRequest(varBriefProviderAccountRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccountRequest struct { + value *BriefProviderAccountRequest + isSet bool +} + +func (v NullableBriefProviderAccountRequest) Get() *BriefProviderAccountRequest { + return v.value +} + +func (v *NullableBriefProviderAccountRequest) Set(val *BriefProviderAccountRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccountRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccountRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccountRequest(val *BriefProviderAccountRequest) *NullableBriefProviderAccountRequest { + return &NullableBriefProviderAccountRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccountRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go new file mode 100644 index 0000000000..06c4e626bb --- /dev/null +++ b/model_brief_provider_network.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetwork{} + +// BriefProviderNetwork Adds support for custom fields and tags. +type BriefProviderNetwork struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetwork BriefProviderNetwork + +// NewBriefProviderNetwork instantiates a new BriefProviderNetwork object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderNetwork(id int32, url string, display string, name string) *BriefProviderNetwork { + this := BriefProviderNetwork{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefProviderNetworkWithDefaults instantiates a new BriefProviderNetwork object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderNetworkWithDefaults() *BriefProviderNetwork { + this := BriefProviderNetwork{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderNetwork) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderNetwork) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProviderNetwork) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderNetwork) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProviderNetwork) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderNetwork) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefProviderNetwork) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetwork) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetwork) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderNetwork) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderNetwork) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetwork) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetwork) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetwork) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderNetwork := _BriefProviderNetwork{} + + err = json.Unmarshal(data, &varBriefProviderNetwork) + + if err != nil { + return err + } + + *o = BriefProviderNetwork(varBriefProviderNetwork) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetwork struct { + value *BriefProviderNetwork + isSet bool +} + +func (v NullableBriefProviderNetwork) Get() *BriefProviderNetwork { + return v.value +} + +func (v *NullableBriefProviderNetwork) Set(val *BriefProviderNetwork) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetwork) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetwork) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetwork(val *BriefProviderNetwork) *NullableBriefProviderNetwork { + return &NullableBriefProviderNetwork{value: val, isSet: true} +} + +func (v NullableBriefProviderNetwork) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetwork) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go new file mode 100644 index 0000000000..d7c3c60870 --- /dev/null +++ b/model_brief_provider_network_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetworkRequest{} + +// BriefProviderNetworkRequest Adds support for custom fields and tags. +type BriefProviderNetworkRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetworkRequest BriefProviderNetworkRequest + +// NewBriefProviderNetworkRequest instantiates a new BriefProviderNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderNetworkRequest(name string) *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + this.Name = name + return &this +} + +// NewBriefProviderNetworkRequestWithDefaults instantiates a new BriefProviderNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderNetworkRequestWithDefaults() *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetworkRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderNetworkRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderNetworkRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderNetworkRequest := _BriefProviderNetworkRequest{} + + err = json.Unmarshal(data, &varBriefProviderNetworkRequest) + + if err != nil { + return err + } + + *o = BriefProviderNetworkRequest(varBriefProviderNetworkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetworkRequest struct { + value *BriefProviderNetworkRequest + isSet bool +} + +func (v NullableBriefProviderNetworkRequest) Get() *BriefProviderNetworkRequest { + return v.value +} + +func (v *NullableBriefProviderNetworkRequest) Set(val *BriefProviderNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetworkRequest(val *BriefProviderNetworkRequest) *NullableBriefProviderNetworkRequest { + return &NullableBriefProviderNetworkRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go new file mode 100644 index 0000000000..a91662dd5e --- /dev/null +++ b/model_brief_provider_request.go @@ -0,0 +1,233 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderRequest{} + +// BriefProviderRequest Adds support for custom fields and tags. +type BriefProviderRequest struct { + // Full name of the provider + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderRequest BriefProviderRequest + +// NewBriefProviderRequest instantiates a new BriefProviderRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderRequest(name string, slug string) *BriefProviderRequest { + this := BriefProviderRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefProviderRequestWithDefaults instantiates a new BriefProviderRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderRequestWithDefaults() *BriefProviderRequest { + this := BriefProviderRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefProviderRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProviderRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderRequest := _BriefProviderRequest{} + + err = json.Unmarshal(data, &varBriefProviderRequest) + + if err != nil { + return err + } + + *o = BriefProviderRequest(varBriefProviderRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderRequest struct { + value *BriefProviderRequest + isSet bool +} + +func (v NullableBriefProviderRequest) Get() *BriefProviderRequest { + return v.value +} + +func (v *NullableBriefProviderRequest) Set(val *BriefProviderRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderRequest(val *BriefProviderRequest) *NullableBriefProviderRequest { + return &NullableBriefProviderRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack.go b/model_brief_rack.go new file mode 100644 index 0000000000..27af322ca8 --- /dev/null +++ b/model_brief_rack.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRack{} + +// BriefRack Adds support for custom fields and tags. +type BriefRack struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + DeviceCount int64 `json:"device_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRack BriefRack + +// NewBriefRack instantiates a new BriefRack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRack(id int32, url string, display string, name string, deviceCount int64) *BriefRack { + this := BriefRack{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.DeviceCount = deviceCount + return &this +} + +// NewBriefRackWithDefaults instantiates a new BriefRack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackWithDefaults() *BriefRack { + this := BriefRack{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRack) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRack) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRack) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRack) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRack) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRack) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRack) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRack) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRack) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRack) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *BriefRack) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *BriefRack) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +func (o BriefRack) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["device_count"] = o.DeviceCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRack) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "device_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRack := _BriefRack{} + + err = json.Unmarshal(data, &varBriefRack) + + if err != nil { + return err + } + + *o = BriefRack(varBriefRack) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRack struct { + value *BriefRack + isSet bool +} + +func (v NullableBriefRack) Get() *BriefRack { + return v.value +} + +func (v *NullableBriefRack) Set(val *BriefRack) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRack) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRack(val *BriefRack) *NullableBriefRack { + return &NullableBriefRack{value: val, isSet: true} +} + +func (v NullableBriefRack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack_request.go b/model_brief_rack_request.go new file mode 100644 index 0000000000..8b9d1ce272 --- /dev/null +++ b/model_brief_rack_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRequest{} + +// BriefRackRequest Adds support for custom fields and tags. +type BriefRackRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRequest BriefRackRequest + +// NewBriefRackRequest instantiates a new BriefRackRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRequest(name string) *BriefRackRequest { + this := BriefRackRequest{} + this.Name = name + return &this +} + +// NewBriefRackRequestWithDefaults instantiates a new BriefRackRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRequestWithDefaults() *BriefRackRequest { + this := BriefRackRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRackRequest) 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 *BriefRackRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +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) { + 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 *BriefRackRequest) 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 *BriefRackRequest) 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 *BriefRackRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRequest := _BriefRackRequest{} + + err = json.Unmarshal(data, &varBriefRackRequest) + + if err != nil { + return err + } + + *o = BriefRackRequest(varBriefRackRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRequest struct { + value *BriefRackRequest + isSet bool +} + +func (v NullableBriefRackRequest) Get() *BriefRackRequest { + return v.value +} + +func (v *NullableBriefRackRequest) Set(val *BriefRackRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRequest(val *BriefRackRequest) *NullableBriefRackRequest { + return &NullableBriefRackRequest{value: val, isSet: true} +} + +func (v NullableBriefRackRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go new file mode 100644 index 0000000000..a8143304c1 --- /dev/null +++ b/model_brief_rack_role.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRole{} + +// BriefRackRole Adds support for custom fields and tags. +type BriefRackRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int64 `json:"rack_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRole BriefRackRole + +// NewBriefRackRole instantiates a new BriefRackRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRole(id int32, url string, display string, name string, slug string, rackCount int64) *BriefRackRole { + this := BriefRackRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.RackCount = rackCount + return &this +} + +// NewBriefRackRoleWithDefaults instantiates a new BriefRackRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRoleWithDefaults() *BriefRackRole { + this := BriefRackRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRackRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRackRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRackRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackRole) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value +func (o *BriefRackRole) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *BriefRackRole) SetRackCount(v int64) { + o.RackCount = v +} + +func (o BriefRackRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["rack_count"] = o.RackCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "rack_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRole := _BriefRackRole{} + + err = json.Unmarshal(data, &varBriefRackRole) + + if err != nil { + return err + } + + *o = BriefRackRole(varBriefRackRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRole struct { + value *BriefRackRole + isSet bool +} + +func (v NullableBriefRackRole) Get() *BriefRackRole { + return v.value +} + +func (v *NullableBriefRackRole) Set(val *BriefRackRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRole(val *BriefRackRole) *NullableBriefRackRole { + return &NullableBriefRackRole{value: val, isSet: true} +} + +func (v NullableBriefRackRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go new file mode 100644 index 0000000000..629e5d282e --- /dev/null +++ b/model_brief_rack_role_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRoleRequest{} + +// BriefRackRoleRequest Adds support for custom fields and tags. +type BriefRackRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRoleRequest BriefRackRoleRequest + +// NewBriefRackRoleRequest instantiates a new BriefRackRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRoleRequest(name string, slug string) *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRackRoleRequestWithDefaults instantiates a new BriefRackRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRoleRequestWithDefaults() *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRackRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRoleRequest := _BriefRackRoleRequest{} + + err = json.Unmarshal(data, &varBriefRackRoleRequest) + + if err != nil { + return err + } + + *o = BriefRackRoleRequest(varBriefRackRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRoleRequest struct { + value *BriefRackRoleRequest + isSet bool +} + +func (v NullableBriefRackRoleRequest) Get() *BriefRackRoleRequest { + return v.value +} + +func (v *NullableBriefRackRoleRequest) Set(val *BriefRackRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRoleRequest(val *BriefRackRoleRequest) *NullableBriefRackRoleRequest { + return &NullableBriefRackRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRackRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go new file mode 100644 index 0000000000..3ad571835f --- /dev/null +++ b/model_brief_rack_type.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackType{} + +// BriefRackType Adds support for custom fields and tags. +type BriefRackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackType BriefRackType + +// NewBriefRackType instantiates a new BriefRackType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *BriefRackType { + this := BriefRackType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeWithDefaults instantiates a new BriefRackType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackTypeWithDefaults() *BriefRackType { + this := BriefRackType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRackType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRackType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefRackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackType := _BriefRackType{} + + err = json.Unmarshal(data, &varBriefRackType) + + if err != nil { + return err + } + + *o = BriefRackType(varBriefRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackType struct { + value *BriefRackType + isSet bool +} + +func (v NullableBriefRackType) Get() *BriefRackType { + return v.value +} + +func (v *NullableBriefRackType) Set(val *BriefRackType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackType(val *BriefRackType) *NullableBriefRackType { + return &NullableBriefRackType{value: val, isSet: true} +} + +func (v NullableBriefRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go new file mode 100644 index 0000000000..90913dbba8 --- /dev/null +++ b/model_brief_rack_type_request.go @@ -0,0 +1,261 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackTypeRequest{} + +// BriefRackTypeRequest Adds support for custom fields and tags. +type BriefRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackTypeRequest BriefRackTypeRequest + +// NewBriefRackTypeRequest instantiates a new BriefRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeRequestWithDefaults instantiates a new BriefRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackTypeRequest := _BriefRackTypeRequest{} + + err = json.Unmarshal(data, &varBriefRackTypeRequest) + + if err != nil { + return err + } + + *o = BriefRackTypeRequest(varBriefRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackTypeRequest struct { + value *BriefRackTypeRequest + isSet bool +} + +func (v NullableBriefRackTypeRequest) Get() *BriefRackTypeRequest { + return v.value +} + +func (v *NullableBriefRackTypeRequest) Set(val *BriefRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackTypeRequest(val *BriefRackTypeRequest) *NullableBriefRackTypeRequest { + return &NullableBriefRackTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go new file mode 100644 index 0000000000..718cb0432f --- /dev/null +++ b/model_brief_rear_port_template.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplate{} + +// BriefRearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefRearPortTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplate BriefRearPortTemplate + +// NewBriefRearPortTemplate instantiates a new BriefRearPortTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRearPortTemplate(id int32, url string, display string, name string) *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefRearPortTemplateWithDefaults instantiates a new BriefRearPortTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRearPortTemplateWithDefaults() *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRearPortTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRearPortTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRearPortTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRearPortTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRearPortTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRearPortTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRearPortTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRearPortTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRearPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRearPortTemplate := _BriefRearPortTemplate{} + + err = json.Unmarshal(data, &varBriefRearPortTemplate) + + if err != nil { + return err + } + + *o = BriefRearPortTemplate(varBriefRearPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplate struct { + value *BriefRearPortTemplate + isSet bool +} + +func (v NullableBriefRearPortTemplate) Get() *BriefRearPortTemplate { + return v.value +} + +func (v *NullableBriefRearPortTemplate) Set(val *BriefRearPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplate(val *BriefRearPortTemplate) *NullableBriefRearPortTemplate { + return &NullableBriefRearPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go new file mode 100644 index 0000000000..aa3e0549a4 --- /dev/null +++ b/model_brief_rear_port_template_request.go @@ -0,0 +1,204 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplateRequest{} + +// BriefRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefRearPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplateRequest BriefRearPortTemplateRequest + +// NewBriefRearPortTemplateRequest instantiates a new BriefRearPortTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRearPortTemplateRequest(name string) *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefRearPortTemplateRequestWithDefaults instantiates a new BriefRearPortTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRearPortTemplateRequestWithDefaults() *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRearPortTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRearPortTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRearPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRearPortTemplateRequest := _BriefRearPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefRearPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefRearPortTemplateRequest(varBriefRearPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplateRequest struct { + value *BriefRearPortTemplateRequest + isSet bool +} + +func (v NullableBriefRearPortTemplateRequest) Get() *BriefRearPortTemplateRequest { + return v.value +} + +func (v *NullableBriefRearPortTemplateRequest) Set(val *BriefRearPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplateRequest(val *BriefRearPortTemplateRequest) *NullableBriefRearPortTemplateRequest { + return &NullableBriefRearPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_region.go b/model_brief_region.go new file mode 100644 index 0000000000..5154b613ea --- /dev/null +++ b/model_brief_region.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegion{} + +// BriefRegion Extends PrimaryModelSerializer to include MPTT support. +type BriefRegion struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegion BriefRegion + +// NewBriefRegion instantiates a new BriefRegion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRegion(id int32, url string, display string, name string, slug string, siteCount int32, depth int32) *BriefRegion { + this := BriefRegion{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.SiteCount = siteCount + this.Depth = depth + return &this +} + +// NewBriefRegionWithDefaults instantiates a new BriefRegion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRegionWithDefaults() *BriefRegion { + this := BriefRegion{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRegion) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRegion) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRegion) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRegion) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRegion) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRegion) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRegion) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegion) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRegion) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegion) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegion) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRegion) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRegion) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value +func (o *BriefRegion) GetSiteCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetSiteCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *BriefRegion) SetSiteCount(v int32) { + o.SiteCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefRegion) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefRegion) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefRegion) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "site_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRegion := _BriefRegion{} + + err = json.Unmarshal(data, &varBriefRegion) + + if err != nil { + return err + } + + *o = BriefRegion(varBriefRegion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegion struct { + value *BriefRegion + isSet bool +} + +func (v NullableBriefRegion) Get() *BriefRegion { + return v.value +} + +func (v *NullableBriefRegion) Set(val *BriefRegion) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegion) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegion(val *BriefRegion) *NullableBriefRegion { + return &NullableBriefRegion{value: val, isSet: true} +} + +func (v NullableBriefRegion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_region_request.go b/model_brief_region_request.go new file mode 100644 index 0000000000..a465c8c9a3 --- /dev/null +++ b/model_brief_region_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegionRequest{} + +// BriefRegionRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefRegionRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegionRequest BriefRegionRequest + +// NewBriefRegionRequest instantiates a new BriefRegionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRegionRequest(name string, slug string) *BriefRegionRequest { + this := BriefRegionRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRegionRequestWithDefaults instantiates a new BriefRegionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRegionRequestWithDefaults() *BriefRegionRequest { + this := BriefRegionRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRegionRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegionRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRegionRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegionRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegionRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRegionRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRegionRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRegionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRegionRequest := _BriefRegionRequest{} + + err = json.Unmarshal(data, &varBriefRegionRequest) + + if err != nil { + return err + } + + *o = BriefRegionRequest(varBriefRegionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegionRequest struct { + value *BriefRegionRequest + isSet bool +} + +func (v NullableBriefRegionRequest) Get() *BriefRegionRequest { + return v.value +} + +func (v *NullableBriefRegionRequest) Set(val *BriefRegionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegionRequest(val *BriefRegionRequest) *NullableBriefRegionRequest { + return &NullableBriefRegionRequest{value: val, isSet: true} +} + +func (v NullableBriefRegionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rir.go b/model_brief_rir.go new file mode 100644 index 0000000000..04885a05a0 --- /dev/null +++ b/model_brief_rir.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIR type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIR{} + +// BriefRIR Adds support for custom fields and tags. +type BriefRIR struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AggregateCount int64 `json:"aggregate_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIR BriefRIR + +// NewBriefRIR instantiates a new BriefRIR object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *BriefRIR { + this := BriefRIR{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.AggregateCount = aggregateCount + return &this +} + +// NewBriefRIRWithDefaults instantiates a new BriefRIR object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRIRWithDefaults() *BriefRIR { + this := BriefRIR{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRIR) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRIR) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRIR) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRIR) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRIR) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRIR) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRIR) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIR) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRIR) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIR) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIR) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRIR) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRIR) SetDescription(v string) { + o.Description = &v +} + +// GetAggregateCount returns the AggregateCount field value +func (o *BriefRIR) GetAggregateCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AggregateCount +} + +// GetAggregateCountOk returns a tuple with the AggregateCount field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetAggregateCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AggregateCount, true +} + +// SetAggregateCount sets field value +func (o *BriefRIR) SetAggregateCount(v int64) { + o.AggregateCount = v +} + +func (o BriefRIR) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIR) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["aggregate_count"] = o.AggregateCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "aggregate_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRIR := _BriefRIR{} + + err = json.Unmarshal(data, &varBriefRIR) + + if err != nil { + return err + } + + *o = BriefRIR(varBriefRIR) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "aggregate_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIR struct { + value *BriefRIR + isSet bool +} + +func (v NullableBriefRIR) Get() *BriefRIR { + return v.value +} + +func (v *NullableBriefRIR) Set(val *BriefRIR) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIR) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIR) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIR(val *BriefRIR) *NullableBriefRIR { + return &NullableBriefRIR{value: val, isSet: true} +} + +func (v NullableBriefRIR) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIR) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go new file mode 100644 index 0000000000..7702acf4da --- /dev/null +++ b/model_brief_rir_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIRRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIRRequest{} + +// BriefRIRRequest Adds support for custom fields and tags. +type BriefRIRRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIRRequest BriefRIRRequest + +// NewBriefRIRRequest instantiates a new BriefRIRRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRIRRequest(name string, slug string) *BriefRIRRequest { + this := BriefRIRRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRIRRequestWithDefaults instantiates a new BriefRIRRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRIRRequestWithDefaults() *BriefRIRRequest { + this := BriefRIRRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRIRRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIRRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRIRRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIRRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIRRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRIRRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRIRRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRIRRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIRRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIRRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRIRRequest := _BriefRIRRequest{} + + err = json.Unmarshal(data, &varBriefRIRRequest) + + if err != nil { + return err + } + + *o = BriefRIRRequest(varBriefRIRRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIRRequest struct { + value *BriefRIRRequest + isSet bool +} + +func (v NullableBriefRIRRequest) Get() *BriefRIRRequest { + return v.value +} + +func (v *NullableBriefRIRRequest) Set(val *BriefRIRRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIRRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIRRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIRRequest(val *BriefRIRRequest) *NullableBriefRIRRequest { + return &NullableBriefRIRRequest{value: val, isSet: true} +} + +func (v NullableBriefRIRRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIRRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_role.go b/model_brief_role.go new file mode 100644 index 0000000000..14c43a164a --- /dev/null +++ b/model_brief_role.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRole{} + +// BriefRole Adds support for custom fields and tags. +type BriefRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + PrefixCount int64 `json:"prefix_count"` + VlanCount int64 `json:"vlan_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRole BriefRole + +// NewBriefRole instantiates a new BriefRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64) *BriefRole { + this := BriefRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.PrefixCount = prefixCount + this.VlanCount = vlanCount + return &this +} + +// NewBriefRoleWithDefaults instantiates a new BriefRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRoleWithDefaults() *BriefRole { + this := BriefRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRole) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value +func (o *BriefRole) GetPrefixCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetPrefixCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PrefixCount, true +} + +// SetPrefixCount sets field value +func (o *BriefRole) SetPrefixCount(v int64) { + o.PrefixCount = v +} + +// GetVlanCount returns the VlanCount field value +func (o *BriefRole) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *BriefRole) SetVlanCount(v int64) { + o.VlanCount = v +} + +func (o BriefRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["vlan_count"] = o.VlanCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "prefix_count", + "vlan_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRole := _BriefRole{} + + err = json.Unmarshal(data, &varBriefRole) + + if err != nil { + return err + } + + *o = BriefRole(varBriefRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRole struct { + value *BriefRole + isSet bool +} + +func (v NullableBriefRole) Get() *BriefRole { + return v.value +} + +func (v *NullableBriefRole) Set(val *BriefRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRole(val *BriefRole) *NullableBriefRole { + return &NullableBriefRole{value: val, isSet: true} +} + +func (v NullableBriefRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_role_request.go b/model_brief_role_request.go new file mode 100644 index 0000000000..46b746300f --- /dev/null +++ b/model_brief_role_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRoleRequest{} + +// BriefRoleRequest Adds support for custom fields and tags. +type BriefRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRoleRequest BriefRoleRequest + +// NewBriefRoleRequest instantiates a new BriefRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRoleRequest(name string, slug string) *BriefRoleRequest { + this := BriefRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRoleRequestWithDefaults instantiates a new BriefRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRoleRequestWithDefaults() *BriefRoleRequest { + this := BriefRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRoleRequest := _BriefRoleRequest{} + + err = json.Unmarshal(data, &varBriefRoleRequest) + + if err != nil { + return err + } + + *o = BriefRoleRequest(varBriefRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRoleRequest struct { + value *BriefRoleRequest + isSet bool +} + +func (v NullableBriefRoleRequest) Get() *BriefRoleRequest { + return v.value +} + +func (v *NullableBriefRoleRequest) Set(val *BriefRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRoleRequest(val *BriefRoleRequest) *NullableBriefRoleRequest { + return &NullableBriefRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_site.go b/model_brief_site.go new file mode 100644 index 0000000000..ef79d8ff16 --- /dev/null +++ b/model_brief_site.go @@ -0,0 +1,320 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSite type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSite{} + +// BriefSite Adds support for custom fields and tags. +type BriefSite struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Full name of the site + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSite BriefSite + +// NewBriefSite instantiates a new BriefSite object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSite(id int32, url string, display string, name string, slug string) *BriefSite { + this := BriefSite{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteWithDefaults instantiates a new BriefSite object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteWithDefaults() *BriefSite { + this := BriefSite{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSite) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSite) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefSite) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSite) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefSite) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSite) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefSite) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSite) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSite) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSite) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSite) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSite) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSite) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSite) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSite) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSite) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSite) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSite := _BriefSite{} + + err = json.Unmarshal(data, &varBriefSite) + + if err != nil { + return err + } + + *o = BriefSite(varBriefSite) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSite struct { + value *BriefSite + isSet bool +} + +func (v NullableBriefSite) Get() *BriefSite { + return v.value +} + +func (v *NullableBriefSite) Set(val *BriefSite) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSite) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSite) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSite(val *BriefSite) *NullableBriefSite { + return &NullableBriefSite{value: val, isSet: true} +} + +func (v NullableBriefSite) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSite) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_site_group.go b/model_brief_site_group.go new file mode 100644 index 0000000000..543e0482c6 --- /dev/null +++ b/model_brief_site_group.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroup{} + +// BriefSiteGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroup BriefSiteGroup + +// NewBriefSiteGroup instantiates a new BriefSiteGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteGroup(id int32, url string, display string, name string, slug string, siteCount int32, depth int32) *BriefSiteGroup { + this := BriefSiteGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.SiteCount = siteCount + this.Depth = depth + return &this +} + +// NewBriefSiteGroupWithDefaults instantiates a new BriefSiteGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteGroupWithDefaults() *BriefSiteGroup { + this := BriefSiteGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSiteGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSiteGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefSiteGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSiteGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefSiteGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSiteGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefSiteGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteGroup) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value +func (o *BriefSiteGroup) GetSiteCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetSiteCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *BriefSiteGroup) SetSiteCount(v int32) { + o.SiteCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefSiteGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefSiteGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "site_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteGroup := _BriefSiteGroup{} + + err = json.Unmarshal(data, &varBriefSiteGroup) + + if err != nil { + return err + } + + *o = BriefSiteGroup(varBriefSiteGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroup struct { + value *BriefSiteGroup + isSet bool +} + +func (v NullableBriefSiteGroup) Get() *BriefSiteGroup { + return v.value +} + +func (v *NullableBriefSiteGroup) Set(val *BriefSiteGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroup(val *BriefSiteGroup) *NullableBriefSiteGroup { + return &NullableBriefSiteGroup{value: val, isSet: true} +} + +func (v NullableBriefSiteGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go new file mode 100644 index 0000000000..c102e6c37b --- /dev/null +++ b/model_brief_site_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroupRequest{} + +// BriefSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroupRequest BriefSiteGroupRequest + +// NewBriefSiteGroupRequest instantiates a new BriefSiteGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteGroupRequest(name string, slug string) *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteGroupRequestWithDefaults instantiates a new BriefSiteGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteGroupRequestWithDefaults() *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteGroupRequest := _BriefSiteGroupRequest{} + + err = json.Unmarshal(data, &varBriefSiteGroupRequest) + + if err != nil { + return err + } + + *o = BriefSiteGroupRequest(varBriefSiteGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroupRequest struct { + value *BriefSiteGroupRequest + isSet bool +} + +func (v NullableBriefSiteGroupRequest) Get() *BriefSiteGroupRequest { + return v.value +} + +func (v *NullableBriefSiteGroupRequest) Set(val *BriefSiteGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroupRequest(val *BriefSiteGroupRequest) *NullableBriefSiteGroupRequest { + return &NullableBriefSiteGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_site_request.go b/model_brief_site_request.go new file mode 100644 index 0000000000..696a8caffd --- /dev/null +++ b/model_brief_site_request.go @@ -0,0 +1,233 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteRequest{} + +// BriefSiteRequest Adds support for custom fields and tags. +type BriefSiteRequest struct { + // Full name of the site + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteRequest BriefSiteRequest + +// NewBriefSiteRequest instantiates a new BriefSiteRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteRequest(name string, slug string) *BriefSiteRequest { + this := BriefSiteRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteRequestWithDefaults instantiates a new BriefSiteRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteRequestWithDefaults() *BriefSiteRequest { + this := BriefSiteRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteRequest := _BriefSiteRequest{} + + err = json.Unmarshal(data, &varBriefSiteRequest) + + if err != nil { + return err + } + + *o = BriefSiteRequest(varBriefSiteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteRequest struct { + value *BriefSiteRequest + isSet bool +} + +func (v NullableBriefSiteRequest) Get() *BriefSiteRequest { + return v.value +} + +func (v *NullableBriefSiteRequest) Set(val *BriefSiteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteRequest(val *BriefSiteRequest) *NullableBriefSiteRequest { + return &NullableBriefSiteRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tenant.go b/model_brief_tenant.go new file mode 100644 index 0000000000..851c0d954e --- /dev/null +++ b/model_brief_tenant.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenant type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenant{} + +// BriefTenant Adds support for custom fields and tags. +type BriefTenant struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenant BriefTenant + +// NewBriefTenant instantiates a new BriefTenant object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenant(id int32, url string, display string, name string, slug string) *BriefTenant { + this := BriefTenant{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantWithDefaults instantiates a new BriefTenant object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantWithDefaults() *BriefTenant { + this := BriefTenant{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenant) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenant) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTenant) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenant) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTenant) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenant) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTenant) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenant) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenant) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenant) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenant) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenant) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenant) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenant) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenant) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenant) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenant := _BriefTenant{} + + err = json.Unmarshal(data, &varBriefTenant) + + if err != nil { + return err + } + + *o = BriefTenant(varBriefTenant) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenant struct { + value *BriefTenant + isSet bool +} + +func (v NullableBriefTenant) Get() *BriefTenant { + return v.value +} + +func (v *NullableBriefTenant) Set(val *BriefTenant) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenant) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenant) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenant(val *BriefTenant) *NullableBriefTenant { + return &NullableBriefTenant{value: val, isSet: true} +} + +func (v NullableBriefTenant) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenant) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go new file mode 100644 index 0000000000..5b79f74cdf --- /dev/null +++ b/model_brief_tenant_group.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroup{} + +// BriefTenantGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroup BriefTenantGroup + +// NewBriefTenantGroup instantiates a new BriefTenantGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *BriefTenantGroup { + this := BriefTenantGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TenantCount = tenantCount + this.Depth = depth + return &this +} + +// NewBriefTenantGroupWithDefaults instantiates a new BriefTenantGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantGroupWithDefaults() *BriefTenantGroup { + this := BriefTenantGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenantGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenantGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTenantGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenantGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTenantGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenantGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTenantGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTenantCount returns the TenantCount field value +func (o *BriefTenantGroup) GetTenantCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TenantCount +} + +// GetTenantCountOk returns a tuple with the TenantCount field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TenantCount, true +} + +// SetTenantCount sets field value +func (o *BriefTenantGroup) SetTenantCount(v int32) { + o.TenantCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefTenantGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefTenantGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tenant_count"] = o.TenantCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tenant_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantGroup := _BriefTenantGroup{} + + err = json.Unmarshal(data, &varBriefTenantGroup) + + if err != nil { + return err + } + + *o = BriefTenantGroup(varBriefTenantGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroup struct { + value *BriefTenantGroup + isSet bool +} + +func (v NullableBriefTenantGroup) Get() *BriefTenantGroup { + return v.value +} + +func (v *NullableBriefTenantGroup) Set(val *BriefTenantGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroup(val *BriefTenantGroup) *NullableBriefTenantGroup { + return &NullableBriefTenantGroup{value: val, isSet: true} +} + +func (v NullableBriefTenantGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go new file mode 100644 index 0000000000..c522e318ea --- /dev/null +++ b/model_brief_tenant_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroupRequest{} + +// BriefTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroupRequest BriefTenantGroupRequest + +// NewBriefTenantGroupRequest instantiates a new BriefTenantGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantGroupRequest(name string, slug string) *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantGroupRequestWithDefaults instantiates a new BriefTenantGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantGroupRequestWithDefaults() *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantGroupRequest := _BriefTenantGroupRequest{} + + err = json.Unmarshal(data, &varBriefTenantGroupRequest) + + if err != nil { + return err + } + + *o = BriefTenantGroupRequest(varBriefTenantGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroupRequest struct { + value *BriefTenantGroupRequest + isSet bool +} + +func (v NullableBriefTenantGroupRequest) Get() *BriefTenantGroupRequest { + return v.value +} + +func (v *NullableBriefTenantGroupRequest) Set(val *BriefTenantGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroupRequest(val *BriefTenantGroupRequest) *NullableBriefTenantGroupRequest { + return &NullableBriefTenantGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go new file mode 100644 index 0000000000..a5ebf7d19a --- /dev/null +++ b/model_brief_tenant_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantRequest{} + +// BriefTenantRequest Adds support for custom fields and tags. +type BriefTenantRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantRequest BriefTenantRequest + +// NewBriefTenantRequest instantiates a new BriefTenantRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantRequest(name string, slug string) *BriefTenantRequest { + this := BriefTenantRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantRequestWithDefaults instantiates a new BriefTenantRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantRequestWithDefaults() *BriefTenantRequest { + this := BriefTenantRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantRequest := _BriefTenantRequest{} + + err = json.Unmarshal(data, &varBriefTenantRequest) + + if err != nil { + return err + } + + *o = BriefTenantRequest(varBriefTenantRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantRequest struct { + value *BriefTenantRequest + isSet bool +} + +func (v NullableBriefTenantRequest) Get() *BriefTenantRequest { + return v.value +} + +func (v *NullableBriefTenantRequest) Set(val *BriefTenantRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantRequest(val *BriefTenantRequest) *NullableBriefTenantRequest { + return &NullableBriefTenantRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tunnel.go b/model_brief_tunnel.go new file mode 100644 index 0000000000..3007657ee2 --- /dev/null +++ b/model_brief_tunnel.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnel type satisfies the MappedNullable interface at compile time +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"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnel BriefTunnel + +// NewBriefTunnel instantiates a new BriefTunnel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnel(id int32, url string, display string, name string) *BriefTunnel { + this := BriefTunnel{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefTunnelWithDefaults instantiates a new BriefTunnel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelWithDefaults() *BriefTunnel { + this := BriefTunnel{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTunnel) 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 *BriefTunnel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTunnel) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTunnel) 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 *BriefTunnel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTunnel) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTunnel) 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 *BriefTunnel) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTunnel) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTunnel) 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 *BriefTunnel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +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) { + 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 *BriefTunnel) 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 *BriefTunnel) 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 *BriefTunnel) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnel) 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 *BriefTunnel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnel := _BriefTunnel{} + + err = json.Unmarshal(data, &varBriefTunnel) + + if err != nil { + return err + } + + *o = BriefTunnel(varBriefTunnel) + + 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 NullableBriefTunnel struct { + value *BriefTunnel + isSet bool +} + +func (v NullableBriefTunnel) Get() *BriefTunnel { + return v.value +} + +func (v *NullableBriefTunnel) Set(val *BriefTunnel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnel(val *BriefTunnel) *NullableBriefTunnel { + return &NullableBriefTunnel{value: val, isSet: true} +} + +func (v NullableBriefTunnel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go new file mode 100644 index 0000000000..438f8159ff --- /dev/null +++ b/model_brief_tunnel_group.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroup{} + +// BriefTunnelGroup Adds support for custom fields and tags. +type BriefTunnelGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TunnelCount int64 `json:"tunnel_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroup BriefTunnelGroup + +// NewBriefTunnelGroup instantiates a new BriefTunnelGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *BriefTunnelGroup { + this := BriefTunnelGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TunnelCount = tunnelCount + return &this +} + +// NewBriefTunnelGroupWithDefaults instantiates a new BriefTunnelGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelGroupWithDefaults() *BriefTunnelGroup { + this := BriefTunnelGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTunnelGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTunnelGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTunnelGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTunnelGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTunnelGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTunnelGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTunnelGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTunnelCount returns the TunnelCount field value +func (o *BriefTunnelGroup) GetTunnelCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TunnelCount +} + +// GetTunnelCountOk returns a tuple with the TunnelCount field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TunnelCount, true +} + +// SetTunnelCount sets field value +func (o *BriefTunnelGroup) SetTunnelCount(v int64) { + o.TunnelCount = v +} + +func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tunnel_count"] = o.TunnelCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tunnel_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelGroup := _BriefTunnelGroup{} + + err = json.Unmarshal(data, &varBriefTunnelGroup) + + if err != nil { + return err + } + + *o = BriefTunnelGroup(varBriefTunnelGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tunnel_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroup struct { + value *BriefTunnelGroup + isSet bool +} + +func (v NullableBriefTunnelGroup) Get() *BriefTunnelGroup { + return v.value +} + +func (v *NullableBriefTunnelGroup) Set(val *BriefTunnelGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroup(val *BriefTunnelGroup) *NullableBriefTunnelGroup { + return &NullableBriefTunnelGroup{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go new file mode 100644 index 0000000000..c8ec8a4c45 --- /dev/null +++ b/model_brief_tunnel_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroupRequest{} + +// BriefTunnelGroupRequest Adds support for custom fields and tags. +type BriefTunnelGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroupRequest BriefTunnelGroupRequest + +// NewBriefTunnelGroupRequest instantiates a new BriefTunnelGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelGroupRequest(name string, slug string) *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTunnelGroupRequestWithDefaults instantiates a new BriefTunnelGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelGroupRequestWithDefaults() *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelGroupRequest := _BriefTunnelGroupRequest{} + + err = json.Unmarshal(data, &varBriefTunnelGroupRequest) + + if err != nil { + return err + } + + *o = BriefTunnelGroupRequest(varBriefTunnelGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroupRequest struct { + value *BriefTunnelGroupRequest + isSet bool +} + +func (v NullableBriefTunnelGroupRequest) Get() *BriefTunnelGroupRequest { + return v.value +} + +func (v *NullableBriefTunnelGroupRequest) Set(val *BriefTunnelGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroupRequest(val *BriefTunnelGroupRequest) *NullableBriefTunnelGroupRequest { + return &NullableBriefTunnelGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go new file mode 100644 index 0000000000..a9a19f8e75 --- /dev/null +++ b/model_brief_tunnel_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelRequest{} + +// BriefTunnelRequest Adds support for custom fields and tags. +type BriefTunnelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelRequest BriefTunnelRequest + +// NewBriefTunnelRequest instantiates a new BriefTunnelRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelRequest(name string) *BriefTunnelRequest { + this := BriefTunnelRequest{} + this.Name = name + return &this +} + +// NewBriefTunnelRequestWithDefaults instantiates a new BriefTunnelRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelRequestWithDefaults() *BriefTunnelRequest { + this := BriefTunnelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelRequest := _BriefTunnelRequest{} + + err = json.Unmarshal(data, &varBriefTunnelRequest) + + if err != nil { + return err + } + + *o = BriefTunnelRequest(varBriefTunnelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelRequest struct { + value *BriefTunnelRequest + isSet bool +} + +func (v NullableBriefTunnelRequest) Get() *BriefTunnelRequest { + return v.value +} + +func (v *NullableBriefTunnelRequest) Set(val *BriefTunnelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelRequest(val *BriefTunnelRequest) *NullableBriefTunnelRequest { + return &NullableBriefTunnelRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_user.go b/model_brief_user.go new file mode 100644 index 0000000000..efcc6491e2 --- /dev/null +++ b/model_brief_user.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUser{} + +// BriefUser Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefUser struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _BriefUser BriefUser + +// NewBriefUser instantiates a new BriefUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefUser(id int32, url string, display string, username string) *BriefUser { + this := BriefUser{} + this.Id = id + this.Url = url + this.Display = display + this.Username = username + return &this +} + +// NewBriefUserWithDefaults instantiates a new BriefUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefUserWithDefaults() *BriefUser { + this := BriefUser{} + return &this +} + +// GetId returns the Id field value +func (o *BriefUser) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefUser) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefUser) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefUser) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefUser) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefUser) SetDisplay(v string) { + o.Display = v +} + +// GetUsername returns the Username field value +func (o *BriefUser) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUser) SetUsername(v string) { + o.Username = v +} + +func (o BriefUser) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefUser := _BriefUser{} + + err = json.Unmarshal(data, &varBriefUser) + + if err != nil { + return err + } + + *o = BriefUser(varBriefUser) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUser struct { + value *BriefUser + isSet bool +} + +func (v NullableBriefUser) Get() *BriefUser { + return v.value +} + +func (v *NullableBriefUser) Set(val *BriefUser) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUser) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUser(val *BriefUser) *NullableBriefUser { + return &NullableBriefUser{value: val, isSet: true} +} + +func (v NullableBriefUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_user_request.go b/model_brief_user_request.go new file mode 100644 index 0000000000..09f6996133 --- /dev/null +++ b/model_brief_user_request.go @@ -0,0 +1,167 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUserRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUserRequest{} + +// BriefUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefUserRequest struct { + // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _BriefUserRequest BriefUserRequest + +// NewBriefUserRequest instantiates a new BriefUserRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefUserRequest(username string) *BriefUserRequest { + this := BriefUserRequest{} + this.Username = username + return &this +} + +// NewBriefUserRequestWithDefaults instantiates a new BriefUserRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefUserRequestWithDefaults() *BriefUserRequest { + this := BriefUserRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *BriefUserRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BriefUserRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUserRequest) SetUsername(v string) { + o.Username = v +} + +func (o BriefUserRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUserRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUserRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefUserRequest := _BriefUserRequest{} + + err = json.Unmarshal(data, &varBriefUserRequest) + + if err != nil { + return err + } + + *o = BriefUserRequest(varBriefUserRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUserRequest struct { + value *BriefUserRequest + isSet bool +} + +func (v NullableBriefUserRequest) Get() *BriefUserRequest { + return v.value +} + +func (v *NullableBriefUserRequest) Set(val *BriefUserRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUserRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUserRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUserRequest(val *BriefUserRequest) *NullableBriefUserRequest { + return &NullableBriefUserRequest{value: val, isSet: true} +} + +func (v NullableBriefUserRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUserRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go new file mode 100644 index 0000000000..2db268c5e1 --- /dev/null +++ b/model_brief_virtual_chassis.go @@ -0,0 +1,367 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassis type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassis{} + +// BriefVirtualChassis Adds support for custom fields and tags. +type BriefVirtualChassis struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + MemberCount int32 `json:"member_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassis BriefVirtualChassis + +// NewBriefVirtualChassis instantiates a new BriefVirtualChassis object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32) *BriefVirtualChassis { + this := BriefVirtualChassis{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.MemberCount = memberCount + return &this +} + +// NewBriefVirtualChassisWithDefaults instantiates a new BriefVirtualChassis object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualChassisWithDefaults() *BriefVirtualChassis { + this := BriefVirtualChassis{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualChassis) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualChassis) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVirtualChassis) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualChassis) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVirtualChassis) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualChassis) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVirtualChassis) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassis) SetName(v string) { + o.Name = v +} + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassis) GetMaster() NestedDevice { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDevice + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVirtualChassis) GetMasterOk() (*NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDevice and assigns it to the Master field. +func (o *BriefVirtualChassis) SetMaster(v NestedDevice) { + o.Master.Set(&v) +} + +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassis) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassis) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassis) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualChassis) SetDescription(v string) { + o.Description = &v +} + +// GetMemberCount returns the MemberCount field value +func (o *BriefVirtualChassis) GetMemberCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MemberCount +} + +// GetMemberCountOk returns a tuple with the MemberCount field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetMemberCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemberCount, true +} + +// SetMemberCount sets field value +func (o *BriefVirtualChassis) SetMemberCount(v int32) { + o.MemberCount = v +} + +func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassis) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["member_count"] = o.MemberCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "member_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualChassis := _BriefVirtualChassis{} + + err = json.Unmarshal(data, &varBriefVirtualChassis) + + if err != nil { + return err + } + + *o = BriefVirtualChassis(varBriefVirtualChassis) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + delete(additionalProperties, "member_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassis struct { + value *BriefVirtualChassis + isSet bool +} + +func (v NullableBriefVirtualChassis) Get() *BriefVirtualChassis { + return v.value +} + +func (v *NullableBriefVirtualChassis) Set(val *BriefVirtualChassis) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassis) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassis) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassis(val *BriefVirtualChassis) *NullableBriefVirtualChassis { + return &NullableBriefVirtualChassis{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassis) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassis) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go new file mode 100644 index 0000000000..d9a22957ed --- /dev/null +++ b/model_brief_virtual_chassis_request.go @@ -0,0 +1,251 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassisRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassisRequest{} + +// BriefVirtualChassisRequest Adds support for custom fields and tags. +type BriefVirtualChassisRequest struct { + Name string `json:"name"` + Master NullableNestedDeviceRequest `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassisRequest BriefVirtualChassisRequest + +// NewBriefVirtualChassisRequest instantiates a new BriefVirtualChassisRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualChassisRequest(name string) *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualChassisRequestWithDefaults instantiates a new BriefVirtualChassisRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualChassisRequestWithDefaults() *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualChassisRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassisRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassisRequest) SetName(v string) { + o.Name = v +} + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDeviceRequest + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassisRequest) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDeviceRequest and assigns it to the Master field. +func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest) { + o.Master.Set(&v) +} + +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassisRequest) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassisRequest) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassisRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassisRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualChassisRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualChassisRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassisRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualChassisRequest := _BriefVirtualChassisRequest{} + + err = json.Unmarshal(data, &varBriefVirtualChassisRequest) + + if err != nil { + return err + } + + *o = BriefVirtualChassisRequest(varBriefVirtualChassisRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassisRequest struct { + value *BriefVirtualChassisRequest + isSet bool +} + +func (v NullableBriefVirtualChassisRequest) Get() *BriefVirtualChassisRequest { + return v.value +} + +func (v *NullableBriefVirtualChassisRequest) Set(val *BriefVirtualChassisRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassisRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassisRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassisRequest(val *BriefVirtualChassisRequest) *NullableBriefVirtualChassisRequest { + return &NullableBriefVirtualChassisRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassisRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go new file mode 100644 index 0000000000..93ea275656 --- /dev/null +++ b/model_brief_virtual_machine.go @@ -0,0 +1,290 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachine type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachine{} + +// BriefVirtualMachine Adds support for custom fields and tags. +type BriefVirtualMachine struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachine BriefVirtualMachine + +// NewBriefVirtualMachine instantiates a new BriefVirtualMachine object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualMachine(id int32, url string, display string, name string) *BriefVirtualMachine { + this := BriefVirtualMachine{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVirtualMachineWithDefaults instantiates a new BriefVirtualMachine object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualMachineWithDefaults() *BriefVirtualMachine { + this := BriefVirtualMachine{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualMachine) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualMachine) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVirtualMachine) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualMachine) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVirtualMachine) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualMachine) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVirtualMachine) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachine) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachine) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualMachine) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualMachine) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachine) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachine) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachine) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualMachine := _BriefVirtualMachine{} + + err = json.Unmarshal(data, &varBriefVirtualMachine) + + if err != nil { + return err + } + + *o = BriefVirtualMachine(varBriefVirtualMachine) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachine struct { + value *BriefVirtualMachine + isSet bool +} + +func (v NullableBriefVirtualMachine) Get() *BriefVirtualMachine { + return v.value +} + +func (v *NullableBriefVirtualMachine) Set(val *BriefVirtualMachine) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachine) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachine) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachine(val *BriefVirtualMachine) *NullableBriefVirtualMachine { + return &NullableBriefVirtualMachine{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachine) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachine) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go new file mode 100644 index 0000000000..c60396fb59 --- /dev/null +++ b/model_brief_virtual_machine_request.go @@ -0,0 +1,203 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachineRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachineRequest{} + +// BriefVirtualMachineRequest Adds support for custom fields and tags. +type BriefVirtualMachineRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachineRequest BriefVirtualMachineRequest + +// NewBriefVirtualMachineRequest instantiates a new BriefVirtualMachineRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualMachineRequest(name string) *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualMachineRequestWithDefaults instantiates a new BriefVirtualMachineRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualMachineRequestWithDefaults() *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualMachineRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachineRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachineRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachineRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachineRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualMachineRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualMachineRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachineRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualMachineRequest := _BriefVirtualMachineRequest{} + + err = json.Unmarshal(data, &varBriefVirtualMachineRequest) + + if err != nil { + return err + } + + *o = BriefVirtualMachineRequest(varBriefVirtualMachineRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachineRequest struct { + value *BriefVirtualMachineRequest + isSet bool +} + +func (v NullableBriefVirtualMachineRequest) Get() *BriefVirtualMachineRequest { + return v.value +} + +func (v *NullableBriefVirtualMachineRequest) Set(val *BriefVirtualMachineRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachineRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachineRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachineRequest(val *BriefVirtualMachineRequest) *NullableBriefVirtualMachineRequest { + return &NullableBriefVirtualMachineRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachineRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vlan.go b/model_brief_vlan.go new file mode 100644 index 0000000000..86e6f80e74 --- /dev/null +++ b/model_brief_vlan.go @@ -0,0 +1,320 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLAN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLAN{} + +// BriefVLAN Adds support for custom fields and tags. +type BriefVLAN struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLAN BriefVLAN + +// NewBriefVLAN instantiates a new BriefVLAN object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLAN(id int32, url string, display string, vid int32, name string) *BriefVLAN { + this := BriefVLAN{} + this.Id = id + this.Url = url + this.Display = display + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANWithDefaults instantiates a new BriefVLAN object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANWithDefaults() *BriefVLAN { + this := BriefVLAN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLAN) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLAN) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVLAN) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLAN) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVLAN) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLAN) SetDisplay(v string) { + o.Display = v +} + +// GetVid returns the Vid field value +func (o *BriefVLAN) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLAN) SetVid(v int32) { + o.Vid = v +} + +// GetName returns the Name field value +func (o *BriefVLAN) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLAN) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLAN) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLAN) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLAN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLAN) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLAN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLAN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "vid", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLAN := _BriefVLAN{} + + err = json.Unmarshal(data, &varBriefVLAN) + + if err != nil { + return err + } + + *o = BriefVLAN(varBriefVLAN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLAN struct { + value *BriefVLAN + isSet bool +} + +func (v NullableBriefVLAN) Get() *BriefVLAN { + return v.value +} + +func (v *NullableBriefVLAN) Set(val *BriefVLAN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLAN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLAN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLAN(val *BriefVLAN) *NullableBriefVLAN { + return &NullableBriefVLAN{value: val, isSet: true} +} + +func (v NullableBriefVLAN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLAN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go new file mode 100644 index 0000000000..1d4f446e24 --- /dev/null +++ b/model_brief_vlan_group.go @@ -0,0 +1,348 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroup{} + +// BriefVLANGroup Adds support for custom fields and tags. +type BriefVLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + VlanCount int64 `json:"vlan_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroup BriefVLANGroup + +// NewBriefVLANGroup instantiates a new BriefVLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64) *BriefVLANGroup { + this := BriefVLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.VlanCount = vlanCount + return &this +} + +// NewBriefVLANGroupWithDefaults instantiates a new BriefVLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANGroupWithDefaults() *BriefVLANGroup { + this := BriefVLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefVLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetVlanCount returns the VlanCount field value +func (o *BriefVLANGroup) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *BriefVLANGroup) SetVlanCount(v int64) { + o.VlanCount = v +} + +func (o BriefVLANGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["vlan_count"] = o.VlanCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "vlan_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANGroup := _BriefVLANGroup{} + + err = json.Unmarshal(data, &varBriefVLANGroup) + + if err != nil { + return err + } + + *o = BriefVLANGroup(varBriefVLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroup struct { + value *BriefVLANGroup + isSet bool +} + +func (v NullableBriefVLANGroup) Get() *BriefVLANGroup { + return v.value +} + +func (v *NullableBriefVLANGroup) Set(val *BriefVLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroup(val *BriefVLANGroup) *NullableBriefVLANGroup { + return &NullableBriefVLANGroup{value: val, isSet: true} +} + +func (v NullableBriefVLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go new file mode 100644 index 0000000000..f282a43da9 --- /dev/null +++ b/model_brief_vlan_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroupRequest{} + +// BriefVLANGroupRequest Adds support for custom fields and tags. +type BriefVLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroupRequest BriefVLANGroupRequest + +// NewBriefVLANGroupRequest instantiates a new BriefVLANGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANGroupRequest(name string, slug string) *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefVLANGroupRequestWithDefaults instantiates a new BriefVLANGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANGroupRequestWithDefaults() *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVLANGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefVLANGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANGroupRequest := _BriefVLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefVLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefVLANGroupRequest(varBriefVLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroupRequest struct { + value *BriefVLANGroupRequest + isSet bool +} + +func (v NullableBriefVLANGroupRequest) Get() *BriefVLANGroupRequest { + return v.value +} + +func (v *NullableBriefVLANGroupRequest) Set(val *BriefVLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroupRequest(val *BriefVLANGroupRequest) *NullableBriefVLANGroupRequest { + return &NullableBriefVLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go new file mode 100644 index 0000000000..2c32c9b7e6 --- /dev/null +++ b/model_brief_vlan_request.go @@ -0,0 +1,233 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANRequest{} + +// BriefVLANRequest Adds support for custom fields and tags. +type BriefVLANRequest struct { + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANRequest BriefVLANRequest + +// NewBriefVLANRequest instantiates a new BriefVLANRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANRequest(vid int32, name string) *BriefVLANRequest { + this := BriefVLANRequest{} + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANRequestWithDefaults instantiates a new BriefVLANRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANRequestWithDefaults() *BriefVLANRequest { + this := BriefVLANRequest{} + return &this +} + +// GetVid returns the Vid field value +func (o *BriefVLANRequest) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLANRequest) SetVid(v int32) { + o.Vid = v +} + +// GetName returns the Name field value +func (o *BriefVLANRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "vid", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANRequest := _BriefVLANRequest{} + + err = json.Unmarshal(data, &varBriefVLANRequest) + + if err != nil { + return err + } + + *o = BriefVLANRequest(varBriefVLANRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANRequest struct { + value *BriefVLANRequest + isSet bool +} + +func (v NullableBriefVLANRequest) Get() *BriefVLANRequest { + return v.value +} + +func (v *NullableBriefVLANRequest) Set(val *BriefVLANRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANRequest(val *BriefVLANRequest) *NullableBriefVLANRequest { + return &NullableBriefVLANRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vrf.go b/model_brief_vrf.go new file mode 100644 index 0000000000..e5cdbaf160 --- /dev/null +++ b/model_brief_vrf.go @@ -0,0 +1,368 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRF type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRF{} + +// BriefVRF Adds support for custom fields and tags. +type BriefVRF struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + PrefixCount int64 `json:"prefix_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRF BriefVRF + +// NewBriefVRF instantiates a new BriefVRF object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVRF(id int32, url string, display string, name string, prefixCount int64) *BriefVRF { + this := BriefVRF{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.PrefixCount = prefixCount + return &this +} + +// NewBriefVRFWithDefaults instantiates a new BriefVRF object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVRFWithDefaults() *BriefVRF { + this := BriefVRF{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVRF) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVRF) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVRF) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVRF) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVRF) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVRF) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVRF) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRF) SetName(v string) { + o.Name = v +} + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRF) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVRF) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRF) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRF) SetRd(v string) { + o.Rd.Set(&v) +} + +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRF) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRF) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRF) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVRF) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVRF) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value +func (o *BriefVRF) GetPrefixCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetPrefixCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PrefixCount, true +} + +// SetPrefixCount sets field value +func (o *BriefVRF) SetPrefixCount(v int64) { + o.PrefixCount = v +} + +func (o BriefVRF) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRF) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["prefix_count"] = o.PrefixCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRF) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "prefix_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVRF := _BriefVRF{} + + err = json.Unmarshal(data, &varBriefVRF) + + if err != nil { + return err + } + + *o = BriefVRF(varBriefVRF) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRF struct { + value *BriefVRF + isSet bool +} + +func (v NullableBriefVRF) Get() *BriefVRF { + return v.value +} + +func (v *NullableBriefVRF) Set(val *BriefVRF) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRF) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRF) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRF(val *BriefVRF) *NullableBriefVRF { + return &NullableBriefVRF{value: val, isSet: true} +} + +func (v NullableBriefVRF) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRF) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go new file mode 100644 index 0000000000..0ac318a1da --- /dev/null +++ b/model_brief_vrf_request.go @@ -0,0 +1,252 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRFRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRFRequest{} + +// BriefVRFRequest Adds support for custom fields and tags. +type BriefVRFRequest struct { + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRFRequest BriefVRFRequest + +// NewBriefVRFRequest instantiates a new BriefVRFRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVRFRequest(name string) *BriefVRFRequest { + this := BriefVRFRequest{} + this.Name = name + return &this +} + +// NewBriefVRFRequestWithDefaults instantiates a new BriefVRFRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVRFRequestWithDefaults() *BriefVRFRequest { + this := BriefVRFRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVRFRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVRFRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRFRequest) SetName(v string) { + o.Name = v +} + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRFRequest) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVRFRequest) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRFRequest) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRFRequest) SetRd(v string) { + o.Rd.Set(&v) +} + +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRFRequest) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRFRequest) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRFRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRFRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVRFRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVRFRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVRFRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRFRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRFRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVRFRequest := _BriefVRFRequest{} + + err = json.Unmarshal(data, &varBriefVRFRequest) + + if err != nil { + return err + } + + *o = BriefVRFRequest(varBriefVRFRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRFRequest struct { + value *BriefVRFRequest + isSet bool +} + +func (v NullableBriefVRFRequest) Get() *BriefVRFRequest { + return v.value +} + +func (v *NullableBriefVRFRequest) Set(val *BriefVRFRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRFRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRFRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRFRequest(val *BriefVRFRequest) *NullableBriefVRFRequest { + return &NullableBriefVRFRequest{value: val, isSet: true} +} + +func (v NullableBriefVRFRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRFRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go new file mode 100644 index 0000000000..86d5efca6c --- /dev/null +++ b/model_brief_wireless_lan_group.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroup{} + +// BriefWirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroup BriefWirelessLANGroup + +// NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.WirelesslanCount = wirelesslanCount + this.Depth = depth + return &this +} + +// NewBriefWirelessLANGroupWithDefaults instantiates a new BriefWirelessLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefWirelessLANGroupWithDefaults() *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefWirelessLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefWirelessLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefWirelessLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefWirelessLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefWirelessLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefWirelessLANGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefWirelessLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetWirelesslanCount returns the WirelesslanCount field value +func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.WirelesslanCount +} + +// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.WirelesslanCount, true +} + +// SetWirelesslanCount sets field value +func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { + o.WirelesslanCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["wirelesslan_count"] = o.WirelesslanCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "wirelesslan_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefWirelessLANGroup := _BriefWirelessLANGroup{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroup) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroup(varBriefWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "wirelesslan_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroup struct { + value *BriefWirelessLANGroup + isSet bool +} + +func (v NullableBriefWirelessLANGroup) Get() *BriefWirelessLANGroup { + return v.value +} + +func (v *NullableBriefWirelessLANGroup) Set(val *BriefWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroup(val *BriefWirelessLANGroup) *NullableBriefWirelessLANGroup { + return &NullableBriefWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go new file mode 100644 index 0000000000..34443248a3 --- /dev/null +++ b/model_brief_wireless_lan_group_request.go @@ -0,0 +1,232 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroupRequest{} + +// BriefWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroupRequest BriefWirelessLANGroupRequest + +// NewBriefWirelessLANGroupRequest instantiates a new BriefWirelessLANGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefWirelessLANGroupRequest(name string, slug string) *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefWirelessLANGroupRequestWithDefaults instantiates a new BriefWirelessLANGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefWirelessLANGroupRequestWithDefaults() *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefWirelessLANGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefWirelessLANGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefWirelessLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefWirelessLANGroupRequest := _BriefWirelessLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroupRequest(varBriefWirelessLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroupRequest struct { + value *BriefWirelessLANGroupRequest + isSet bool +} + +func (v NullableBriefWirelessLANGroupRequest) Get() *BriefWirelessLANGroupRequest { + return v.value +} + +func (v *NullableBriefWirelessLANGroupRequest) Set(val *BriefWirelessLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroupRequest(val *BriefWirelessLANGroupRequest) *NullableBriefWirelessLANGroupRequest { + return &NullableBriefWirelessLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable.go b/model_cable.go index b9a89b5f0d..c80822dc03 100644 --- a/model_cable.go +++ b/model_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cable type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObject `json:"a_terminations,omitempty"` + BTerminations []GenericObject `json:"b_terminations,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,11 +49,14 @@ type _Cable Cable // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCable(id int32, url string, display string) *Cable { +func NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime) *Cable { this := Cable{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +116,30 @@ func (o *Cable) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Cable) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Cable) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Cable) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Cable) GetDisplay() string { if o == nil { @@ -122,6 +164,177 @@ func (o *Cable) SetDisplay(v string) { o.Display = v } +// GetType returns the Type field value if set, zero value otherwise. +func (o *Cable) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Cable) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *Cable) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *Cable) GetATerminations() []GenericObject { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObject + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetATerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *Cable) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObject and assigns it to the ATerminations field. +func (o *Cable) SetATerminations(v []GenericObject) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *Cable) GetBTerminations() []GenericObject { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObject + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetBTerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *Cable) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObject and assigns it to the BTerminations field. +func (o *Cable) SetBTerminations(v []GenericObject) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cable) GetStatus() CableStatus { + if o == nil || IsNil(o.Status) { + var ret CableStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetStatusOk() (*CableStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cable) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *Cable) SetStatus(v CableStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cable) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cable) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cable) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cable) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *Cable) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -154,6 +367,124 @@ func (o *Cable) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *Cable) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *Cable) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *Cable) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *Cable) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *Cable) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *Cable) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *Cable) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLengthUnit() CableLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *Cable) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableLengthUnit and assigns it to the LengthUnit field. +func (o *Cable) SetLengthUnit(v CableLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *Cable) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *Cable) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cable) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -186,6 +517,154 @@ func (o *Cable) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cable) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cable) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cable) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cable) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cable) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cable) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cable) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cable) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cable) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cable) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cable) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Cable) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -198,13 +677,49 @@ func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -220,7 +735,10 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -252,9 +770,23 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go new file mode 100644 index 0000000000..dc34aa7444 --- /dev/null +++ b/model_cable_length_unit.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CableLengthUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableLengthUnit{} + +// CableLengthUnit struct for CableLengthUnit +type CableLengthUnit struct { + Value *CableLengthUnitValue `json:"value,omitempty"` + Label *CableLengthUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CableLengthUnit CableLengthUnit + +// NewCableLengthUnit instantiates a new CableLengthUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCableLengthUnit() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// NewCableLengthUnitWithDefaults instantiates a new CableLengthUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCableLengthUnitWithDefaults() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CableLengthUnit) GetValue() CableLengthUnitValue { + if o == nil || IsNil(o.Value) { + var ret CableLengthUnitValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CableLengthUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CableLengthUnitValue and assigns it to the Value field. +func (o *CableLengthUnit) SetValue(v CableLengthUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel { + if o == nil || IsNil(o.Label) { + var ret CableLengthUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CableLengthUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CableLengthUnitLabel and assigns it to the Label field. +func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) { + o.Label = &v +} + +func (o CableLengthUnit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CableLengthUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CableLengthUnit) UnmarshalJSON(data []byte) (err error) { + varCableLengthUnit := _CableLengthUnit{} + + err = json.Unmarshal(data, &varCableLengthUnit) + + if err != nil { + return err + } + + *o = CableLengthUnit(varCableLengthUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCableLengthUnit struct { + value *CableLengthUnit + isSet bool +} + +func (v NullableCableLengthUnit) Get() *CableLengthUnit { + return v.value +} + +func (v *NullableCableLengthUnit) Set(val *CableLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnit(val *CableLengthUnit) *NullableCableLengthUnit { + return &NullableCableLengthUnit{value: val, isSet: true} +} + +func (v NullableCableLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go new file mode 100644 index 0000000000..56d9ae4176 --- /dev/null +++ b/model_cable_length_unit_label.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitLabel the model 'CableLengthUnitLabel' +type CableLengthUnitLabel string + +// List of Cable_length_unit_label +const ( + CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers" + CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters" + CABLELENGTHUNITLABEL_CENTIMETERS CableLengthUnitLabel = "Centimeters" + CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles" + CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet" + CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches" +) + +// All allowed values of CableLengthUnitLabel enum +var AllowedCableLengthUnitLabelEnumValues = []CableLengthUnitLabel{ + "Kilometers", + "Meters", + "Centimeters", + "Miles", + "Feet", + "Inches", +} + +func (v *CableLengthUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitLabel(value) + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitLabel", value) +} + +// NewCableLengthUnitLabelFromValue returns a pointer to a valid CableLengthUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitLabelFromValue(v string) (*CableLengthUnitLabel, error) { + ev := CableLengthUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitLabel: valid values are %v", v, AllowedCableLengthUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitLabel) IsValid() bool { + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_label value +func (v CableLengthUnitLabel) Ptr() *CableLengthUnitLabel { + return &v +} + +type NullableCableLengthUnitLabel struct { + value *CableLengthUnitLabel + isSet bool +} + +func (v NullableCableLengthUnitLabel) Get() *CableLengthUnitLabel { + return v.value +} + +func (v *NullableCableLengthUnitLabel) Set(val *CableLengthUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitLabel(val *CableLengthUnitLabel) *NullableCableLengthUnitLabel { + return &NullableCableLengthUnitLabel{value: val, isSet: true} +} + +func (v NullableCableLengthUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_length_unit_value.go b/model_cable_length_unit_value.go new file mode 100644 index 0000000000..840cb901c0 --- /dev/null +++ b/model_cable_length_unit_value.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitValue * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableLengthUnitValue string + +// List of Cable_length_unit_value +const ( + CABLELENGTHUNITVALUE_KM CableLengthUnitValue = "km" + CABLELENGTHUNITVALUE_M CableLengthUnitValue = "m" + CABLELENGTHUNITVALUE_CM CableLengthUnitValue = "cm" + CABLELENGTHUNITVALUE_MI CableLengthUnitValue = "mi" + CABLELENGTHUNITVALUE_FT CableLengthUnitValue = "ft" + CABLELENGTHUNITVALUE_IN CableLengthUnitValue = "in" + CABLELENGTHUNITVALUE_EMPTY CableLengthUnitValue = "" +) + +// All allowed values of CableLengthUnitValue enum +var AllowedCableLengthUnitValueEnumValues = []CableLengthUnitValue{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableLengthUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitValue(value) + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitValue", value) +} + +// NewCableLengthUnitValueFromValue returns a pointer to a valid CableLengthUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitValueFromValue(v string) (*CableLengthUnitValue, error) { + ev := CableLengthUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitValue: valid values are %v", v, AllowedCableLengthUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitValue) IsValid() bool { + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_value value +func (v CableLengthUnitValue) Ptr() *CableLengthUnitValue { + return &v +} + +type NullableCableLengthUnitValue struct { + value *CableLengthUnitValue + isSet bool +} + +func (v NullableCableLengthUnitValue) Get() *CableLengthUnitValue { + return v.value +} + +func (v *NullableCableLengthUnitValue) Set(val *CableLengthUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitValue(val *CableLengthUnitValue) *NullableCableLengthUnitValue { + return &NullableCableLengthUnitValue{value: val, isSet: true} +} + +func (v NullableCableLengthUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_request.go b/model_cable_request.go index 0b4bad8c84..680ac31575 100644 --- a/model_cable_request.go +++ b/model_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,19 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Type *CableType `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"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,6 +54,177 @@ func NewCableRequestWithDefaults() *CableRequest { return &this } +// GetType returns the Type field value if set, zero value otherwise. +func (o *CableRequest) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CableRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *CableRequest) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *CableRequest) GetATerminations() []GenericObjectRequest { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObjectRequest + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetATerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *CableRequest) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObjectRequest and assigns it to the ATerminations field. +func (o *CableRequest) SetATerminations(v []GenericObjectRequest) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *CableRequest) GetBTerminations() []GenericObjectRequest { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObjectRequest + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetBTerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *CableRequest) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObjectRequest and assigns it to the BTerminations field. +func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CableRequest) GetStatus() CableStatusValue { + if o == nil || IsNil(o.Status) { + var ret CableStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CableRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *CableRequest) SetStatus(v CableStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CableRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CableRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CableRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CableRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CableRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -75,6 +257,124 @@ func (o *CableRequest) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *CableRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *CableRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *CableRequest) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *CableRequest) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *CableRequest) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *CableRequest) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *CableRequest) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *CableRequest) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *CableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *CableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CableRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -107,6 +407,102 @@ func (o *CableRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CableRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CableRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CableRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CableRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CableRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CableRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CableRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CableRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CableRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o CableRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -117,12 +513,45 @@ func (o CableRequest) MarshalJSON() ([]byte, error) { func (o CableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -145,8 +574,19 @@ func (o *CableRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go new file mode 100644 index 0000000000..be62b6c86a --- /dev/null +++ b/model_cable_request_length_unit.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableRequestLengthUnit * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableRequestLengthUnit string + +// List of CableRequest_length_unit +const ( + CABLEREQUESTLENGTHUNIT_KM CableRequestLengthUnit = "km" + CABLEREQUESTLENGTHUNIT_M CableRequestLengthUnit = "m" + CABLEREQUESTLENGTHUNIT_CM CableRequestLengthUnit = "cm" + CABLEREQUESTLENGTHUNIT_MI CableRequestLengthUnit = "mi" + CABLEREQUESTLENGTHUNIT_FT CableRequestLengthUnit = "ft" + CABLEREQUESTLENGTHUNIT_IN CableRequestLengthUnit = "in" + CABLEREQUESTLENGTHUNIT_EMPTY CableRequestLengthUnit = "" +) + +// All allowed values of CableRequestLengthUnit enum +var AllowedCableRequestLengthUnitEnumValues = []CableRequestLengthUnit{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableRequestLengthUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableRequestLengthUnit(value) + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableRequestLengthUnit", value) +} + +// NewCableRequestLengthUnitFromValue returns a pointer to a valid CableRequestLengthUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableRequestLengthUnitFromValue(v string) (*CableRequestLengthUnit, error) { + ev := CableRequestLengthUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableRequestLengthUnit: valid values are %v", v, AllowedCableRequestLengthUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableRequestLengthUnit) IsValid() bool { + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CableRequest_length_unit value +func (v CableRequestLengthUnit) Ptr() *CableRequestLengthUnit { + return &v +} + +type NullableCableRequestLengthUnit struct { + value *CableRequestLengthUnit + isSet bool +} + +func (v NullableCableRequestLengthUnit) Get() *CableRequestLengthUnit { + return v.value +} + +func (v *NullableCableRequestLengthUnit) Set(val *CableRequestLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableRequestLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableRequestLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableRequestLengthUnit(val *CableRequestLengthUnit) *NullableCableRequestLengthUnit { + return &NullableCableRequestLengthUnit{value: val, isSet: true} +} + +func (v NullableCableRequestLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_status.go b/model_cable_status.go new file mode 100644 index 0000000000..b8a4505fe7 --- /dev/null +++ b/model_cable_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CableStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableStatus{} + +// CableStatus struct for CableStatus +type CableStatus struct { + Value *CableStatusValue `json:"value,omitempty"` + Label *CableStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CableStatus CableStatus + +// NewCableStatus instantiates a new CableStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCableStatus() *CableStatus { + this := CableStatus{} + return &this +} + +// NewCableStatusWithDefaults instantiates a new CableStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCableStatusWithDefaults() *CableStatus { + this := CableStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CableStatus) GetValue() CableStatusValue { + if o == nil || IsNil(o.Value) { + var ret CableStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableStatus) GetValueOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CableStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CableStatusValue and assigns it to the Value field. +func (o *CableStatus) SetValue(v CableStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CableStatus) GetLabel() CableStatusLabel { + if o == nil || IsNil(o.Label) { + var ret CableStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CableStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CableStatusLabel and assigns it to the Label field. +func (o *CableStatus) SetLabel(v CableStatusLabel) { + o.Label = &v +} + +func (o CableStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CableStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CableStatus) UnmarshalJSON(data []byte) (err error) { + varCableStatus := _CableStatus{} + + err = json.Unmarshal(data, &varCableStatus) + + if err != nil { + return err + } + + *o = CableStatus(varCableStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCableStatus struct { + value *CableStatus + isSet bool +} + +func (v NullableCableStatus) Get() *CableStatus { + return v.value +} + +func (v *NullableCableStatus) Set(val *CableStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatus(val *CableStatus) *NullableCableStatus { + return &NullableCableStatus{value: val, isSet: true} +} + +func (v NullableCableStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_status_label.go b/model_cable_status_label.go new file mode 100644 index 0000000000..9734a9ff12 --- /dev/null +++ b/model_cable_status_label.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusLabel the model 'CableStatusLabel' +type CableStatusLabel string + +// List of Cable_status_label +const ( + CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected" + CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned" + CABLESTATUSLABEL_DECOMMISSIONING CableStatusLabel = "Decommissioning" +) + +// All allowed values of CableStatusLabel enum +var AllowedCableStatusLabelEnumValues = []CableStatusLabel{ + "Connected", + "Planned", + "Decommissioning", +} + +func (v *CableStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusLabel(value) + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusLabel", value) +} + +// NewCableStatusLabelFromValue returns a pointer to a valid CableStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusLabelFromValue(v string) (*CableStatusLabel, error) { + ev := CableStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusLabel: valid values are %v", v, AllowedCableStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusLabel) IsValid() bool { + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_label value +func (v CableStatusLabel) Ptr() *CableStatusLabel { + return &v +} + +type NullableCableStatusLabel struct { + value *CableStatusLabel + isSet bool +} + +func (v NullableCableStatusLabel) Get() *CableStatusLabel { + return v.value +} + +func (v *NullableCableStatusLabel) Set(val *CableStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusLabel(val *CableStatusLabel) *NullableCableStatusLabel { + return &NullableCableStatusLabel{value: val, isSet: true} +} + +func (v NullableCableStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_status_value.go b/model_cable_status_value.go new file mode 100644 index 0000000000..95bfe9a1d0 --- /dev/null +++ b/model_cable_status_value.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusValue * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +type CableStatusValue string + +// List of Cable_status_value +const ( + CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected" + CABLESTATUSVALUE_PLANNED CableStatusValue = "planned" + CABLESTATUSVALUE_DECOMMISSIONING CableStatusValue = "decommissioning" +) + +// All allowed values of CableStatusValue enum +var AllowedCableStatusValueEnumValues = []CableStatusValue{ + "connected", + "planned", + "decommissioning", +} + +func (v *CableStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusValue(value) + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusValue", value) +} + +// NewCableStatusValueFromValue returns a pointer to a valid CableStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusValueFromValue(v string) (*CableStatusValue, error) { + ev := CableStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusValue: valid values are %v", v, AllowedCableStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusValue) IsValid() bool { + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_value value +func (v CableStatusValue) Ptr() *CableStatusValue { + return &v +} + +type NullableCableStatusValue struct { + value *CableStatusValue + isSet bool +} + +func (v NullableCableStatusValue) Get() *CableStatusValue { + return v.value +} + +func (v *NullableCableStatusValue) Set(val *CableStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusValue(val *CableStatusValue) *NullableCableStatusValue { + return &NullableCableStatusValue{value: val, isSet: true} +} + +func (v NullableCableStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cable_termination.go b/model_cable_termination.go index 3e2427ac6e..066bfc3a63 100644 --- a/model_cable_termination.go +++ b/model_cable_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go index fb17abb8af..ef4b6ca4ee 100644 --- a/model_cable_termination_request.go +++ b/model_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_type.go b/model_cable_type.go new file mode 100644 index 0000000000..a9abad7cf3 --- /dev/null +++ b/model_cable_type.go @@ -0,0 +1,156 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableType * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +type CableType string + +// List of Cable_type +const ( + CABLETYPE_CAT3 CableType = "cat3" + CABLETYPE_CAT5 CableType = "cat5" + CABLETYPE_CAT5E CableType = "cat5e" + CABLETYPE_CAT6 CableType = "cat6" + CABLETYPE_CAT6A CableType = "cat6a" + CABLETYPE_CAT7 CableType = "cat7" + CABLETYPE_CAT7A CableType = "cat7a" + CABLETYPE_CAT8 CableType = "cat8" + CABLETYPE_DAC_ACTIVE CableType = "dac-active" + CABLETYPE_DAC_PASSIVE CableType = "dac-passive" + CABLETYPE_MRJ21_TRUNK CableType = "mrj21-trunk" + CABLETYPE_COAXIAL CableType = "coaxial" + CABLETYPE_MMF CableType = "mmf" + CABLETYPE_MMF_OM1 CableType = "mmf-om1" + CABLETYPE_MMF_OM2 CableType = "mmf-om2" + CABLETYPE_MMF_OM3 CableType = "mmf-om3" + CABLETYPE_MMF_OM4 CableType = "mmf-om4" + CABLETYPE_MMF_OM5 CableType = "mmf-om5" + CABLETYPE_SMF CableType = "smf" + CABLETYPE_SMF_OS1 CableType = "smf-os1" + CABLETYPE_SMF_OS2 CableType = "smf-os2" + CABLETYPE_AOC CableType = "aoc" + CABLETYPE_USB CableType = "usb" + CABLETYPE_POWER CableType = "power" + CABLETYPE_EMPTY CableType = "" +) + +// All allowed values of CableType enum +var AllowedCableTypeEnumValues = []CableType{ + "cat3", + "cat5", + "cat5e", + "cat6", + "cat6a", + "cat7", + "cat7a", + "cat8", + "dac-active", + "dac-passive", + "mrj21-trunk", + "coaxial", + "mmf", + "mmf-om1", + "mmf-om2", + "mmf-om3", + "mmf-om4", + "mmf-om5", + "smf", + "smf-os1", + "smf-os2", + "aoc", + "usb", + "power", + "", +} + +func (v *CableType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableType(value) + for _, existing := range AllowedCableTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableType", value) +} + +// NewCableTypeFromValue returns a pointer to a valid CableType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableTypeFromValue(v string) (*CableType, error) { + ev := CableType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableType: valid values are %v", v, AllowedCableTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableType) IsValid() bool { + for _, existing := range AllowedCableTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_type value +func (v CableType) Ptr() *CableType { + return &v +} + +type NullableCableType struct { + value *CableType + isSet bool +} + +func (v NullableCableType) Get() *CableType { + return v.value +} + +func (v *NullableCableType) Set(val *CableType) { + v.value = val + v.isSet = true +} + +func (v NullableCableType) IsSet() bool { + return v.isSet +} + +func (v *NullableCableType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableType(val *CableType) *NullableCableType { + return &NullableCableType{value: val, isSet: true} +} + +func (v NullableCableType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit.go b/model_circuit.go index bd64655eb7..b6d3f1b152 100644 --- a/model_circuit.go +++ b/model_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Circuit type satisfies the MappedNullable interface at compile time @@ -20,12 +21,30 @@ var _ MappedNullable = &Circuit{} // Circuit Adds support for custom fields and tags. type Circuit struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` + Type BriefCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + TerminationA NullableCircuitCircuitTermination `json:"termination_a"` + TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +54,19 @@ type _Circuit Circuit // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCircuit(id int32, url string, display string, cid string) *Circuit { +func NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime) *Circuit { this := Circuit{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Cid = cid + this.Provider = provider + this.Type = type_ + this.TerminationA = terminationA + this.TerminationZ = terminationZ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +126,30 @@ func (o *Circuit) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Circuit) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Circuit) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Circuit) GetDisplay() string { if o == nil { @@ -148,6 +198,301 @@ func (o *Circuit) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *Circuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Circuit) SetProvider(v BriefProvider) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetProviderAccount() BriefProviderAccount { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccount + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *Circuit) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. +func (o *Circuit) SetProviderAccount(v BriefProviderAccount) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *Circuit) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *Circuit) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *Circuit) GetType() BriefCircuitType { + if o == nil { + var ret BriefCircuitType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Circuit) SetType(v BriefCircuitType) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Circuit) GetStatus() CircuitStatus { + if o == nil || IsNil(o.Status) { + var ret CircuitStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetStatusOk() (*CircuitStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Circuit) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. +func (o *Circuit) SetStatus(v CircuitStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Circuit) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Circuit) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Circuit) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Circuit) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *Circuit) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *Circuit) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *Circuit) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *Circuit) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *Circuit) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *Circuit) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *Circuit) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *Circuit) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *Circuit) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *Circuit) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *Circuit) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *Circuit) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Circuit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +525,238 @@ func (o *Circuit) SetDescription(v string) { o.Description = &v } +// GetTerminationA returns the TerminationA field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationA() CircuitCircuitTermination { + if o == nil || o.TerminationA.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationA.Get() +} + +// GetTerminationAOk returns a tuple with the TerminationA field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationA.Get(), o.TerminationA.IsSet() +} + +// SetTerminationA sets field value +func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) { + o.TerminationA.Set(&v) +} + +// GetTerminationZ returns the TerminationZ field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationZ() CircuitCircuitTermination { + if o == nil || o.TerminationZ.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationZ.Get() +} + +// GetTerminationZOk returns a tuple with the TerminationZ field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationZ.Get(), o.TerminationZ.IsSet() +} + +// SetTerminationZ sets field value +func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) { + o.TerminationZ.Set(&v) +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Circuit) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Circuit) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Circuit) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Circuit) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Circuit) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Circuit) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Circuit) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Circuit) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Circuit) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Circuit) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Circuit) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializer + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializer, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *Circuit) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializer and assigns it to the Assignments field. +func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) { + o.Assignments = v +} + func (o Circuit) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -192,11 +769,48 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["termination_a"] = o.TerminationA.Get() + toSerialize["termination_z"] = o.TerminationZ.Get() + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -212,8 +826,15 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "cid", + "provider", + "type", + "termination_a", + "termination_z", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -245,9 +866,26 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "termination_a") + delete(additionalProperties, "termination_z") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go new file mode 100644 index 0000000000..e2dfff0e0f --- /dev/null +++ b/model_circuit_circuit_termination.go @@ -0,0 +1,488 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitCircuitTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitCircuitTermination{} + +// CircuitCircuitTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type CircuitCircuitTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site NullableBriefSite `json:"site"` + ProviderNetwork NullableBriefProviderNetwork `json:"provider_network"` + // Physical circuit speed + PortSpeed NullableInt32 `json:"port_speed,omitempty"` + // Upstream speed, if different from port speed + UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` + // ID of the local cross-connect + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTermination CircuitCircuitTermination + +// NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork) *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Site = site + this.ProviderNetwork = providerNetwork + return &this +} + +// NewCircuitCircuitTerminationWithDefaults instantiates a new CircuitCircuitTermination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitCircuitTermination) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitCircuitTermination) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitCircuitTermination) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitCircuitTermination) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitCircuitTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitCircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitCircuitTermination) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitCircuitTermination) SetDisplay(v string) { + o.Display = v +} + +// GetSite returns the Site field value +// If the value is explicit nil, the zero value for BriefSite will be returned +func (o *CircuitCircuitTermination) GetSite() BriefSite { + if o == nil || o.Site.Get() == nil { + var ret BriefSite + return ret + } + + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// SetSite sets field value +func (o *CircuitCircuitTermination) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// GetProviderNetwork returns the ProviderNetwork field value +// If the value is explicit nil, the zero value for BriefProviderNetwork will be returned +func (o *CircuitCircuitTermination) GetProviderNetwork() BriefProviderNetwork { + if o == nil || o.ProviderNetwork.Get() == nil { + var ret BriefProviderNetwork + return ret + } + + return *o.ProviderNetwork.Get() +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { + if o == nil { + return nil, false + } + return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() +} + +// SetProviderNetwork sets field value +func (o *CircuitCircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { + o.ProviderNetwork.Set(&v) +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +func (o *CircuitCircuitTermination) SetPortSpeed(v int32) { + o.PortSpeed.Set(&v) +} + +// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil +func (o *CircuitCircuitTermination) SetPortSpeedNil() { + o.PortSpeed.Set(nil) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32) { + o.UpstreamSpeed.Set(&v) +} + +// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil +func (o *CircuitCircuitTermination) SetUpstreamSpeedNil() { + o.UpstreamSpeed.Set(nil) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTermination) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitCircuitTermination) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["site"] = o.Site.Get() + toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "site", + "provider_network", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitCircuitTermination := _CircuitCircuitTermination{} + + err = json.Unmarshal(data, &varCircuitCircuitTermination) + + if err != nil { + return err + } + + *o = CircuitCircuitTermination(varCircuitCircuitTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTermination struct { + value *CircuitCircuitTermination + isSet bool +} + +func (v NullableCircuitCircuitTermination) Get() *CircuitCircuitTermination { + return v.value +} + +func (v *NullableCircuitCircuitTermination) Set(val *CircuitCircuitTermination) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTermination(val *CircuitCircuitTermination) *NullableCircuitCircuitTermination { + return &NullableCircuitCircuitTermination{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitCircuitTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go new file mode 100644 index 0000000000..3c6665d7c8 --- /dev/null +++ b/model_circuit_circuit_termination_request.go @@ -0,0 +1,372 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitCircuitTerminationRequest{} + +// CircuitCircuitTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type CircuitCircuitTerminationRequest struct { + Site NullableBriefSiteRequest `json:"site"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network"` + // Physical circuit speed + PortSpeed NullableInt32 `json:"port_speed,omitempty"` + // Upstream speed, if different from port speed + UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` + // ID of the local cross-connect + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTerminationRequest CircuitCircuitTerminationRequest + +// NewCircuitCircuitTerminationRequest instantiates a new CircuitCircuitTerminationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitCircuitTerminationRequest(site NullableBriefSiteRequest, providerNetwork NullableBriefProviderNetworkRequest) *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + this.Site = site + this.ProviderNetwork = providerNetwork + return &this +} + +// NewCircuitCircuitTerminationRequestWithDefaults instantiates a new CircuitCircuitTerminationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + return &this +} + +// GetSite returns the Site field value +// If the value is explicit nil, the zero value for BriefSiteRequest will be returned +func (o *CircuitCircuitTerminationRequest) GetSite() BriefSiteRequest { + if o == nil || o.Site.Get() == nil { + var ret BriefSiteRequest + return ret + } + + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// SetSite sets field value +func (o *CircuitCircuitTerminationRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// GetProviderNetwork returns the ProviderNetwork field value +// If the value is explicit nil, the zero value for BriefProviderNetworkRequest will be returned +func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil || o.ProviderNetwork.Get() == nil { + var ret BriefProviderNetworkRequest + return ret + } + + return *o.ProviderNetwork.Get() +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() +} + +// SetProviderNetwork sets field value +func (o *CircuitCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork.Set(&v) +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32) { + o.PortSpeed.Set(&v) +} + +// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil() { + o.PortSpeed.Set(nil) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32) { + o.UpstreamSpeed.Set(&v) +} + +// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil() { + o.UpstreamSpeed.Set(nil) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTerminationRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site.Get() + toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "site", + "provider_network", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitCircuitTerminationRequest := _CircuitCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varCircuitCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = CircuitCircuitTerminationRequest(varCircuitCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTerminationRequest struct { + value *CircuitCircuitTerminationRequest + isSet bool +} + +func (v NullableCircuitCircuitTerminationRequest) Get() *CircuitCircuitTerminationRequest { + return v.value +} + +func (v *NullableCircuitCircuitTerminationRequest) Set(val *CircuitCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTerminationRequest(val *CircuitCircuitTerminationRequest) *NullableCircuitCircuitTerminationRequest { + return &NullableCircuitCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_group.go b/model_circuit_group.go new file mode 100644 index 0000000000..8cb8619ab5 --- /dev/null +++ b/model_circuit_group.go @@ -0,0 +1,562 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the CircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroup{} + +// CircuitGroup Adds support for custom fields and tags. +type CircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroup CircuitGroup + +// NewCircuitGroup instantiates a new CircuitGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitGroup { + this := CircuitGroup{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + return &this +} + +// NewCircuitGroupWithDefaults instantiates a new CircuitGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupWithDefaults() *CircuitGroup { + this := CircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *CircuitGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *CircuitGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroup) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitGroup) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *CircuitGroup) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroup) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroup) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *CircuitGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *CircuitGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *CircuitGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *CircuitGroup) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *CircuitGroup) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o CircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "created", + "last_updated", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroup := _CircuitGroup{} + + err = json.Unmarshal(data, &varCircuitGroup) + + if err != nil { + return err + } + + *o = CircuitGroup(varCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroup struct { + value *CircuitGroup + isSet bool +} + +func (v NullableCircuitGroup) Get() *CircuitGroup { + return v.value +} + +func (v *NullableCircuitGroup) Set(val *CircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroup(val *CircuitGroup) *NullableCircuitGroup { + return &NullableCircuitGroup{value: val, isSet: true} +} + +func (v NullableCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go new file mode 100644 index 0000000000..ac8dc7f046 --- /dev/null +++ b/model_circuit_group_assignment.go @@ -0,0 +1,448 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the CircuitGroupAssignment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignment{} + +// CircuitGroupAssignment Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignment struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Circuit BriefCircuit `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignment CircuitGroupAssignment + +// NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime) *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Group = group + this.Circuit = circuit + this.Created = created + this.LastUpdated = lastUpdated + return &this +} + +// NewCircuitGroupAssignmentWithDefaults instantiates a new CircuitGroupAssignment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupAssignmentWithDefaults() *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroupAssignment) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroupAssignment) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitGroupAssignment) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroupAssignment) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitGroupAssignment) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitGroupAssignment) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroupAssignment) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroupAssignment) SetDisplay(v string) { + o.Display = v +} + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *CircuitGroupAssignment) GetCircuit() BriefCircuit { + if o == nil { + var ret BriefCircuit + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetCircuitOk() (*BriefCircuit, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *CircuitGroupAssignment) SetCircuit(v BriefCircuit) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *CircuitGroupAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *CircuitGroupAssignment) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroupAssignment) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupAssignment) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *CircuitGroupAssignment) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroupAssignment) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupAssignment) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +func (o CircuitGroupAssignment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "group", + "circuit", + "created", + "last_updated", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupAssignment := _CircuitGroupAssignment{} + + err = json.Unmarshal(data, &varCircuitGroupAssignment) + + if err != nil { + return err + } + + *o = CircuitGroupAssignment(varCircuitGroupAssignment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignment struct { + value *CircuitGroupAssignment + isSet bool +} + +func (v NullableCircuitGroupAssignment) Get() *CircuitGroupAssignment { + return v.value +} + +func (v *NullableCircuitGroupAssignment) Set(val *CircuitGroupAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignment(val *CircuitGroupAssignment) *NullableCircuitGroupAssignment { + return &NullableCircuitGroupAssignment{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go new file mode 100644 index 0000000000..c8d040ee77 --- /dev/null +++ b/model_circuit_group_assignment_request.go @@ -0,0 +1,269 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignmentRequest{} + +// CircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignmentRequest CircuitGroupAssignmentRequest + +// NewCircuitGroupAssignmentRequest instantiates a new CircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest) *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + this.Group = group + this.Circuit = circuit + return &this +} + +// NewCircuitGroupAssignmentRequestWithDefaults instantiates a new CircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *CircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil { + var ret BriefCircuitRequest + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *CircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *CircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o CircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "circuit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupAssignmentRequest := _CircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = CircuitGroupAssignmentRequest(varCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignmentRequest struct { + value *CircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableCircuitGroupAssignmentRequest) Get() *CircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableCircuitGroupAssignmentRequest) Set(val *CircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignmentRequest(val *CircuitGroupAssignmentRequest) *NullableCircuitGroupAssignmentRequest { + return &NullableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go new file mode 100644 index 0000000000..2520e790ed --- /dev/null +++ b/model_circuit_group_request.go @@ -0,0 +1,354 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupRequest{} + +// CircuitGroupRequest Adds support for custom fields and tags. +type CircuitGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupRequest CircuitGroupRequest + +// NewCircuitGroupRequest instantiates a new CircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupRequest(name string, slug string) *CircuitGroupRequest { + this := CircuitGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewCircuitGroupRequestWithDefaults instantiates a new CircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupRequestWithDefaults() *CircuitGroupRequest { + this := CircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CircuitGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *CircuitGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o CircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupRequest := _CircuitGroupRequest{} + + err = json.Unmarshal(data, &varCircuitGroupRequest) + + if err != nil { + return err + } + + *o = CircuitGroupRequest(varCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupRequest struct { + value *CircuitGroupRequest + isSet bool +} + +func (v NullableCircuitGroupRequest) Get() *CircuitGroupRequest { + return v.value +} + +func (v *NullableCircuitGroupRequest) Set(val *CircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupRequest(val *CircuitGroupRequest) *NullableCircuitGroupRequest { + return &NullableCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_request.go b/model_circuit_request.go index f5d44906d0..c457e8c2b4 100644 --- a/model_circuit_request.go +++ b/model_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,21 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +45,11 @@ type _CircuitRequest CircuitRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCircuitRequest(cid string) *CircuitRequest { +func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest { this := CircuitRequest{} this.Cid = cid + this.Provider = provider + this.Type = type_ return &this } @@ -70,6 +85,301 @@ func (o *CircuitRequest) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *CircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *CircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *CircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *CircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *CircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *CircuitRequest) GetType() BriefCircuitTypeRequest { + if o == nil { + var ret BriefCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *CircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *CircuitRequest) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *CircuitRequest) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *CircuitRequest) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *CircuitRequest) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *CircuitRequest) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *CircuitRequest) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *CircuitRequest) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *CircuitRequest) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *CircuitRequest) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *CircuitRequest) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CircuitRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -102,6 +412,134 @@ func (o *CircuitRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *CircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o CircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -113,9 +551,41 @@ func (o CircuitRequest) MarshalJSON() ([]byte, error) { func (o CircuitRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -130,6 +600,8 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "cid", + "provider", + "type", } allProperties := make(map[string]interface{}) @@ -160,7 +632,19 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_status.go b/model_circuit_status.go new file mode 100644 index 0000000000..3ffa86a215 --- /dev/null +++ b/model_circuit_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CircuitStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitStatus{} + +// CircuitStatus struct for CircuitStatus +type CircuitStatus struct { + Value *CircuitStatusValue `json:"value,omitempty"` + Label *CircuitStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitStatus CircuitStatus + +// NewCircuitStatus instantiates a new CircuitStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitStatus() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// NewCircuitStatusWithDefaults instantiates a new CircuitStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitStatusWithDefaults() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CircuitStatus) GetValue() CircuitStatusValue { + if o == nil || IsNil(o.Value) { + var ret CircuitStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CircuitStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CircuitStatusValue and assigns it to the Value field. +func (o *CircuitStatus) SetValue(v CircuitStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CircuitStatus) GetLabel() CircuitStatusLabel { + if o == nil || IsNil(o.Label) { + var ret CircuitStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CircuitStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CircuitStatusLabel and assigns it to the Label field. +func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) { + o.Label = &v +} + +func (o CircuitStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitStatus) UnmarshalJSON(data []byte) (err error) { + varCircuitStatus := _CircuitStatus{} + + err = json.Unmarshal(data, &varCircuitStatus) + + if err != nil { + return err + } + + *o = CircuitStatus(varCircuitStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitStatus struct { + value *CircuitStatus + isSet bool +} + +func (v NullableCircuitStatus) Get() *CircuitStatus { + return v.value +} + +func (v *NullableCircuitStatus) Set(val *CircuitStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatus(val *CircuitStatus) *NullableCircuitStatus { + return &NullableCircuitStatus{value: val, isSet: true} +} + +func (v NullableCircuitStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go new file mode 100644 index 0000000000..6112909d2d --- /dev/null +++ b/model_circuit_status_label.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusLabel the model 'CircuitStatusLabel' +type CircuitStatusLabel string + +// List of Circuit_status_label +const ( + CIRCUITSTATUSLABEL_PLANNED CircuitStatusLabel = "Planned" + CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning" + CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active" + CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline" + CIRCUITSTATUSLABEL_DEPROVISIONING CircuitStatusLabel = "Deprovisioning" + CIRCUITSTATUSLABEL_DECOMMISSIONED CircuitStatusLabel = "Decommissioned" +) + +// All allowed values of CircuitStatusLabel enum +var AllowedCircuitStatusLabelEnumValues = []CircuitStatusLabel{ + "Planned", + "Provisioning", + "Active", + "Offline", + "Deprovisioning", + "Decommissioned", +} + +func (v *CircuitStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusLabel(value) + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusLabel", value) +} + +// NewCircuitStatusLabelFromValue returns a pointer to a valid CircuitStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusLabelFromValue(v string) (*CircuitStatusLabel, error) { + ev := CircuitStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusLabel: valid values are %v", v, AllowedCircuitStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusLabel) IsValid() bool { + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_label value +func (v CircuitStatusLabel) Ptr() *CircuitStatusLabel { + return &v +} + +type NullableCircuitStatusLabel struct { + value *CircuitStatusLabel + isSet bool +} + +func (v NullableCircuitStatusLabel) Get() *CircuitStatusLabel { + return v.value +} + +func (v *NullableCircuitStatusLabel) Set(val *CircuitStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusLabel(val *CircuitStatusLabel) *NullableCircuitStatusLabel { + return &NullableCircuitStatusLabel{value: val, isSet: true} +} + +func (v NullableCircuitStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_status_value.go b/model_circuit_status_value.go new file mode 100644 index 0000000000..f6f5baa286 --- /dev/null +++ b/model_circuit_status_value.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusValue * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +type CircuitStatusValue string + +// List of Circuit_status_value +const ( + CIRCUITSTATUSVALUE_PLANNED CircuitStatusValue = "planned" + CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning" + CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active" + CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline" + CIRCUITSTATUSVALUE_DEPROVISIONING CircuitStatusValue = "deprovisioning" + CIRCUITSTATUSVALUE_DECOMMISSIONED CircuitStatusValue = "decommissioned" +) + +// All allowed values of CircuitStatusValue enum +var AllowedCircuitStatusValueEnumValues = []CircuitStatusValue{ + "planned", + "provisioning", + "active", + "offline", + "deprovisioning", + "decommissioned", +} + +func (v *CircuitStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusValue(value) + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusValue", value) +} + +// NewCircuitStatusValueFromValue returns a pointer to a valid CircuitStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusValueFromValue(v string) (*CircuitStatusValue, error) { + ev := CircuitStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusValue: valid values are %v", v, AllowedCircuitStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusValue) IsValid() bool { + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_value value +func (v CircuitStatusValue) Ptr() *CircuitStatusValue { + return &v +} + +type NullableCircuitStatusValue struct { + value *CircuitStatusValue + isSet bool +} + +func (v NullableCircuitStatusValue) Get() *CircuitStatusValue { + return v.value +} + +func (v *NullableCircuitStatusValue) Set(val *CircuitStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusValue(val *CircuitStatusValue) *NullableCircuitStatusValue { + return &NullableCircuitStatusValue{value: val, isSet: true} +} + +func (v NullableCircuitStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuit_termination.go b/model_circuit_termination.go index e9304fcbea..bf87296279 100644 --- a/model_circuit_termination.go +++ b/model_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &CircuitTermination{} // CircuitTermination Adds support for custom fields and tags. type CircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Circuit Circuit `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSite `json:"site,omitempty"` - ProviderNetwork NullableProviderNetwork `json:"provider_network,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Circuit BriefCircuit `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSite `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetwork `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -38,12 +39,12 @@ type CircuitTermination struct { PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -58,10 +59,11 @@ type _CircuitTermination CircuitTermination // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { +func NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { this := CircuitTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Circuit = circuit this.TermSide = termSide @@ -131,6 +133,30 @@ func (o *CircuitTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CircuitTermination) GetDisplay() string { if o == nil { @@ -156,9 +182,9 @@ func (o *CircuitTermination) SetDisplay(v string) { } // GetCircuit returns the Circuit field value -func (o *CircuitTermination) GetCircuit() Circuit { +func (o *CircuitTermination) GetCircuit() BriefCircuit { if o == nil { - var ret Circuit + var ret BriefCircuit return ret } @@ -167,7 +193,7 @@ func (o *CircuitTermination) GetCircuit() Circuit { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { +func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { if o == nil { return nil, false } @@ -175,7 +201,7 @@ func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { } // SetCircuit sets field value -func (o *CircuitTermination) SetCircuit(v Circuit) { +func (o *CircuitTermination) SetCircuit(v BriefCircuit) { o.Circuit = v } @@ -204,9 +230,9 @@ func (o *CircuitTermination) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetSite() Site { +func (o *CircuitTermination) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -215,7 +241,7 @@ func (o *CircuitTermination) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetSiteOk() (*Site, bool) { +func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -231,8 +257,8 @@ func (o *CircuitTermination) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *CircuitTermination) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *CircuitTermination) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -247,9 +273,9 @@ func (o *CircuitTermination) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { +func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetwork + var ret BriefProviderNetwork return ret } return *o.ProviderNetwork.Get() @@ -258,7 +284,7 @@ func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) { +func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { if o == nil { return nil, false } @@ -274,8 +300,8 @@ func (o *CircuitTermination) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetwork and assigns it to the ProviderNetwork field. -func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetwork and assigns it to the ProviderNetwork field. +func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { o.ProviderNetwork.Set(&v) } @@ -504,10 +530,10 @@ func (o *CircuitTermination) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *CircuitTermination) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *CircuitTermination) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -517,7 +543,7 @@ func (o *CircuitTermination) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetCableOk() (*Cable, bool) { +func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -525,7 +551,7 @@ func (o *CircuitTermination) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *CircuitTermination) SetCable(v Cable) { +func (o *CircuitTermination) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -578,27 +604,29 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *CircuitTermination) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CircuitTermination) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *CircuitTermination) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -753,6 +781,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide @@ -783,7 +812,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -808,6 +837,7 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "circuit", "term_side", @@ -849,6 +879,7 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go index d8a1b14e41..451b75a184 100644 --- a/model_circuit_termination_request.go +++ b/model_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{} // CircuitTerminationRequest Adds support for custom fields and tags. type CircuitTerminationRequest struct { - Circuit CircuitRequest `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit BriefCircuitRequest `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *CircuitTerminationRequest { +func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1) *CircuitTerminationRequest { this := CircuitTerminationRequest{} this.Circuit = circuit this.TermSide = termSide @@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest { } // GetCircuit returns the Circuit field value -func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } @@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil { return nil, false } @@ -81,7 +81,7 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { } // SetCircuit sets field value -func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) { +func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = v } @@ -110,9 +110,9 @@ func (o *CircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetSite() SiteRequest { +func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -121,7 +121,7 @@ func (o *CircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -137,8 +137,8 @@ func (o *CircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *CircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -153,9 +153,9 @@ func (o *CircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -164,7 +164,7 @@ func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -180,8 +180,8 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_circuit_type.go b/model_circuit_type.go index 56afd1a848..28e56cb0ab 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CircuitType{} type CircuitType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _CircuitType CircuitType // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { +func NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { this := CircuitType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *CircuitType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CircuitType) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go index 48eba514f5..048fedb953 100644 --- a/model_circuit_type_request.go +++ b/model_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go new file mode 100644 index 0000000000..4d15b73b7d --- /dev/null +++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitsCircuitGroupAssignmentsListPriorityParameter the model 'CircuitsCircuitGroupAssignmentsListPriorityParameter' +type CircuitsCircuitGroupAssignmentsListPriorityParameter string + +// List of circuits_circuit_group_assignments_list_priority_parameter +const ( + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "secondary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary" +) + +// All allowed values of CircuitsCircuitGroupAssignmentsListPriorityParameter enum +var AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues = []CircuitsCircuitGroupAssignmentsListPriorityParameter{ + "inactive", + "primary", + "secondary", + "tertiary", +} + +func (v *CircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsCircuitGroupAssignmentsListPriorityParameter(value) + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsCircuitGroupAssignmentsListPriorityParameter", value) +} + +// NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue returns a pointer to a valid CircuitsCircuitGroupAssignmentsListPriorityParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue(v string) (*CircuitsCircuitGroupAssignmentsListPriorityParameter, error) { + ev := CircuitsCircuitGroupAssignmentsListPriorityParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitGroupAssignmentsListPriorityParameter: valid values are %v", v, AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) IsValid() bool { + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to circuits_circuit_group_assignments_list_priority_parameter value +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) Ptr() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return &v +} + +type NullableCircuitsCircuitGroupAssignmentsListPriorityParameter struct { + value *CircuitsCircuitGroupAssignmentsListPriorityParameter + isSet bool +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Get() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return v.value +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Set(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsCircuitGroupAssignmentsListPriorityParameter(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter { + return &NullableCircuitsCircuitGroupAssignmentsListPriorityParameter{value: val, isSet: true} +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go index b4ea69c2ce..09cdeaa0fa 100644 --- a/model_circuits_circuit_terminations_list_cable_end_parameter.go +++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster.go b/model_cluster.go index ac931d63f5..8d73580b00 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cluster type satisfies the MappedNullable interface at compile time @@ -20,12 +21,24 @@ var _ MappedNullable = &Cluster{} // Cluster Adds support for custom fields and tags. type Cluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + Site NullableBriefSite `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int64 `json:"device_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -35,12 +48,17 @@ type _Cluster Cluster // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64) *Cluster { +func NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64) *Cluster { this := Cluster{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated + this.DeviceCount = deviceCount this.VirtualmachineCount = virtualmachineCount return &this } @@ -101,6 +119,30 @@ func (o *Cluster) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Cluster) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Cluster) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Cluster) GetDisplay() string { if o == nil { @@ -149,6 +191,191 @@ func (o *Cluster) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *Cluster) GetType() BriefClusterType { + if o == nil { + var ret BriefClusterType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetTypeOk() (*BriefClusterType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Cluster) SetType(v BriefClusterType) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetGroup() BriefClusterGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Cluster) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroup and assigns it to the Group field. +func (o *Cluster) SetGroup(v BriefClusterGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Cluster) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Cluster) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cluster) GetStatus() ClusterStatus { + if o == nil || IsNil(o.Status) { + var ret ClusterStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cluster) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. +func (o *Cluster) SetStatus(v ClusterStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cluster) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cluster) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cluster) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cluster) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *Cluster) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Cluster) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *Cluster) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *Cluster) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cluster) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -181,6 +408,178 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cluster) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cluster) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cluster) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cluster) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cluster) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cluster) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cluster) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cluster) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cluster) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cluster) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cluster) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetDeviceCount returns the DeviceCount field value +func (o *Cluster) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *Cluster) SetDeviceCount(v int64) { + o.DeviceCount = v +} + // GetVirtualmachineCount returns the VirtualmachineCount field value func (o *Cluster) GetVirtualmachineCount() int64 { if o == nil { @@ -217,11 +616,37 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["device_count"] = o.DeviceCount toSerialize["virtualmachine_count"] = o.VirtualmachineCount for key, value := range o.AdditionalProperties { @@ -238,8 +663,13 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "type", + "created", + "last_updated", + "device_count", "virtualmachine_count", } @@ -272,9 +702,21 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_group.go b/model_cluster_group.go index 9544ec8500..00ac371866 100644 --- a/model_cluster_group.go +++ b/model_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterGroup{} type ClusterGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _ClusterGroup ClusterGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { +func NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { this := ClusterGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *ClusterGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ClusterGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ClusterGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ClusterGroup) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go index 1f95667486..b41e192c4f 100644 --- a/model_cluster_group_request.go +++ b/model_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_request.go b/model_cluster_request.go index a89789ff3d..96cce68a37 100644 --- a/model_cluster_request.go +++ b/model_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,16 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +39,10 @@ type _ClusterRequest ClusterRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewClusterRequest(name string) *ClusterRequest { +func NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest { this := ClusterRequest{} this.Name = name + this.Type = type_ return &this } @@ -69,6 +78,191 @@ func (o *ClusterRequest) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *ClusterRequest) GetType() BriefClusterTypeRequest { + if o == nil { + var ret BriefClusterTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ClusterRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ClusterRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ClusterRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterRequest) GetStatus() ClusterStatusValue { + if o == nil || IsNil(o.Status) { + var ret ClusterStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *ClusterRequest) SetStatus(v ClusterStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *ClusterRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ClusterRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *ClusterRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *ClusterRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *ClusterRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *ClusterRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *ClusterRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *ClusterRequest) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +295,102 @@ func (o *ClusterRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ClusterRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ClusterRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ClusterRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ClusterRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ClusterRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ClusterRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ClusterRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ClusterRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ClusterRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +402,31 @@ func (o ClusterRequest) MarshalJSON() ([]byte, error) { func (o ClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +441,7 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +472,15 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_status.go b/model_cluster_status.go new file mode 100644 index 0000000000..b6be09db73 --- /dev/null +++ b/model_cluster_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ClusterStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterStatus{} + +// ClusterStatus struct for ClusterStatus +type ClusterStatus struct { + Value *ClusterStatusValue `json:"value,omitempty"` + Label *ClusterStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusterStatus ClusterStatus + +// NewClusterStatus instantiates a new ClusterStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClusterStatus() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// NewClusterStatusWithDefaults instantiates a new ClusterStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClusterStatusWithDefaults() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ClusterStatus) GetValue() ClusterStatusValue { + if o == nil || IsNil(o.Value) { + var ret ClusterStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ClusterStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ClusterStatusValue and assigns it to the Value field. +func (o *ClusterStatus) SetValue(v ClusterStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ClusterStatus) GetLabel() ClusterStatusLabel { + if o == nil || IsNil(o.Label) { + var ret ClusterStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ClusterStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ClusterStatusLabel and assigns it to the Label field. +func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) { + o.Label = &v +} + +func (o ClusterStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusterStatus) UnmarshalJSON(data []byte) (err error) { + varClusterStatus := _ClusterStatus{} + + err = json.Unmarshal(data, &varClusterStatus) + + if err != nil { + return err + } + + *o = ClusterStatus(varClusterStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterStatus struct { + value *ClusterStatus + isSet bool +} + +func (v NullableClusterStatus) Get() *ClusterStatus { + return v.value +} + +func (v *NullableClusterStatus) Set(val *ClusterStatus) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatus(val *ClusterStatus) *NullableClusterStatus { + return &NullableClusterStatus{value: val, isSet: true} +} + +func (v NullableClusterStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go new file mode 100644 index 0000000000..67cf9f0f37 --- /dev/null +++ b/model_cluster_status_label.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusLabel the model 'ClusterStatusLabel' +type ClusterStatusLabel string + +// List of Cluster_status_label +const ( + CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned" + CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging" + CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active" + CLUSTERSTATUSLABEL_DECOMMISSIONING ClusterStatusLabel = "Decommissioning" + CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline" +) + +// All allowed values of ClusterStatusLabel enum +var AllowedClusterStatusLabelEnumValues = []ClusterStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Offline", +} + +func (v *ClusterStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusLabel(value) + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusLabel", value) +} + +// NewClusterStatusLabelFromValue returns a pointer to a valid ClusterStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusLabelFromValue(v string) (*ClusterStatusLabel, error) { + ev := ClusterStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusLabel: valid values are %v", v, AllowedClusterStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusLabel) IsValid() bool { + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_label value +func (v ClusterStatusLabel) Ptr() *ClusterStatusLabel { + return &v +} + +type NullableClusterStatusLabel struct { + value *ClusterStatusLabel + isSet bool +} + +func (v NullableClusterStatusLabel) Get() *ClusterStatusLabel { + return v.value +} + +func (v *NullableClusterStatusLabel) Set(val *ClusterStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusLabel(val *ClusterStatusLabel) *NullableClusterStatusLabel { + return &NullableClusterStatusLabel{value: val, isSet: true} +} + +func (v NullableClusterStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cluster_status_value.go b/model_cluster_status_value.go new file mode 100644 index 0000000000..b79145591a --- /dev/null +++ b/model_cluster_status_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +type ClusterStatusValue string + +// List of Cluster_status_value +const ( + CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned" + CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging" + CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active" + CLUSTERSTATUSVALUE_DECOMMISSIONING ClusterStatusValue = "decommissioning" + CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline" +) + +// All allowed values of ClusterStatusValue enum +var AllowedClusterStatusValueEnumValues = []ClusterStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "offline", +} + +func (v *ClusterStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusValue(value) + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusValue", value) +} + +// NewClusterStatusValueFromValue returns a pointer to a valid ClusterStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusValueFromValue(v string) (*ClusterStatusValue, error) { + ev := ClusterStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusValue: valid values are %v", v, AllowedClusterStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusValue) IsValid() bool { + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_value value +func (v ClusterStatusValue) Ptr() *ClusterStatusValue { + return &v +} + +type NullableClusterStatusValue struct { + value *ClusterStatusValue + isSet bool +} + +func (v NullableClusterStatusValue) Get() *ClusterStatusValue { + return v.value +} + +func (v *NullableClusterStatusValue) Set(val *ClusterStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusValue(val *ClusterStatusValue) *NullableClusterStatusValue { + return &NullableClusterStatusValue{value: val, isSet: true} +} + +func (v NullableClusterStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_cluster_type.go b/model_cluster_type.go index df806d5093..89916d06f5 100644 --- a/model_cluster_type.go +++ b/model_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterType{} type ClusterType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _ClusterType ClusterType // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { +func NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { this := ClusterType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *ClusterType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ClusterType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ClusterType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ClusterType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ClusterType) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go index a72f53e3bf..284d95ad82 100644 --- a/model_cluster_type_request.go +++ b/model_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_context.go b/model_config_context.go index 8cfdce3277..e37ee4c137 100644 --- a/model_config_context.go +++ b/model_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,34 +21,35 @@ var _ MappedNullable = &ConfigContext{} // ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []Region `json:"regions,omitempty"` - SiteGroups []SiteGroup `json:"site_groups,omitempty"` - Sites []Site `json:"sites,omitempty"` - Locations []Location `json:"locations,omitempty"` - DeviceTypes []DeviceType `json:"device_types,omitempty"` - Roles []DeviceRole `json:"roles,omitempty"` - Platforms []Platform `json:"platforms,omitempty"` - ClusterTypes []ClusterType `json:"cluster_types,omitempty"` - ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` - Clusters []Cluster `json:"clusters,omitempty"` - TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` - Tenants []Tenant `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []Region `json:"regions,omitempty"` + SiteGroups []SiteGroup `json:"site_groups,omitempty"` + Sites []Site `json:"sites,omitempty"` + Locations []Location `json:"locations,omitempty"` + DeviceTypes []DeviceType `json:"device_types,omitempty"` + Roles []DeviceRole `json:"roles,omitempty"` + Platforms []Platform `json:"platforms,omitempty"` + ClusterTypes []ClusterType `json:"cluster_types,omitempty"` + ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` + Clusters []Cluster `json:"clusters,omitempty"` + TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` + Tenants []Tenant `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Data interface{} `json:"data"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -58,10 +59,11 @@ type _ConfigContext ConfigContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { +func NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { this := ConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.DataPath = dataPath @@ -129,6 +131,30 @@ func (o *ConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConfigContext) GetDisplay() string { if o == nil { @@ -690,9 +716,9 @@ func (o *ConfigContext) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContext) GetDataSource() DataSource { +func (o *ConfigContext) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -700,7 +726,7 @@ func (o *ConfigContext) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) { +func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -716,8 +742,8 @@ func (o *ConfigContext) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ConfigContext) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigContext) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -746,9 +772,9 @@ func (o *ConfigContext) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ConfigContext) GetDataFile() DataFile { +func (o *ConfigContext) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -757,7 +783,7 @@ func (o *ConfigContext) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { +func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -765,7 +791,7 @@ func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ConfigContext) SetDataFile(v DataFile) { +func (o *ConfigContext) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -885,6 +911,7 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { @@ -961,6 +988,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "data_path", @@ -1000,6 +1028,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "weight") diff --git a/model_config_context_request.go b/model_config_context_request.go index 86b8fad880..6ea6e7b5c4 100644 --- a/model_config_context_request.go +++ b/model_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &ConfigContextRequest{} // ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -600,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -610,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -626,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_config_template.go b/model_config_template.go index 3995c0dbd7..415fa1a073 100644 --- a/model_config_template.go +++ b/model_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &ConfigTemplate{} // ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSource `json:"data_source,omitempty"` + // Path to remote file (relative to data source root) + DataPath string `json:"data_path"` + DataFile *BriefDataFile `json:"data_file,omitempty"` + DataSynced NullableTime `json:"data_synced"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,18 @@ type _ConfigTemplate ConfigTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate { +func NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate { this := ConfigTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.TemplateCode = templateCode + this.DataPath = dataPath + this.DataSynced = dataSynced + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +119,30 @@ func (o *ConfigTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConfigTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConfigTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConfigTemplate) GetDisplay() string { if o == nil { @@ -179,6 +223,261 @@ func (o *ConfigTemplate) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplate) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplate) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplate) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataSource() BriefDataSource { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSource + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigTemplate) SetDataSource(v BriefDataSource) { + o.DataSource = &v +} + +// GetDataPath returns the DataPath field value +func (o *ConfigTemplate) GetDataPath() string { + if o == nil { + var ret string + return ret + } + + return o.DataPath +} + +// GetDataPathOk returns a tuple with the DataPath field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataPath, true +} + +// SetDataPath sets field value +func (o *ConfigTemplate) SetDataPath(v string) { + o.DataPath = v +} + +// GetDataFile returns the DataFile field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataFile() BriefDataFile { + if o == nil || IsNil(o.DataFile) { + var ret BriefDataFile + return ret + } + return *o.DataFile +} + +// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool) { + if o == nil || IsNil(o.DataFile) { + return nil, false + } + return o.DataFile, true +} + +// HasDataFile returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataFile() bool { + if o != nil && !IsNil(o.DataFile) { + return true + } + + return false +} + +// SetDataFile gets a reference to the given BriefDataFile and assigns it to the DataFile field. +func (o *ConfigTemplate) SetDataFile(v BriefDataFile) { + o.DataFile = &v +} + +// GetDataSynced returns the DataSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetDataSynced() time.Time { + if o == nil || o.DataSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.DataSynced.Get() +} + +// GetDataSyncedOk returns a tuple with the DataSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DataSynced.Get(), o.DataSynced.IsSet() +} + +// SetDataSynced sets field value +func (o *ConfigTemplate) SetDataSynced(v time.Time) { + o.DataSynced.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplate) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ConfigTemplate) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ConfigTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ConfigTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ConfigTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +490,29 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + toSerialize["data_path"] = o.DataPath + if !IsNil(o.DataFile) { + toSerialize["data_file"] = o.DataFile + } + toSerialize["data_synced"] = o.DataSynced.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +528,14 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "template_code", + "data_path", + "data_synced", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +567,19 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "data_path") + delete(additionalProperties, "data_file") + delete(additionalProperties, "data_synced") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_config_template_request.go b/model_config_template_request.go index 916c0e4912..cd7bf0ee55 100644 --- a/model_config_template_request.go +++ b/model_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,14 @@ var _ MappedNullable = &ConfigTemplateRequest{} // ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplateRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +37,10 @@ type _ConfigTemplateRequest ConfigTemplateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConfigTemplateRequest(name string) *ConfigTemplateRequest { +func NewConfigTemplateRequest(name string, templateCode string) *ConfigTemplateRequest { this := ConfigTemplateRequest{} this.Name = name + this.TemplateCode = templateCode return &this } @@ -101,6 +108,127 @@ func (o *ConfigTemplateRequest) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplateRequest) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplateRequest) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSourceRequest + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { + o.DataSource = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -115,6 +243,16 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +267,7 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "template_code", } allProperties := make(map[string]interface{}) @@ -160,6 +299,10 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } diff --git a/model_console_port.go b/model_console_port.go index c931788c33..b4ce532ad3 100644 --- a/model_console_port.go +++ b/model_console_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsolePort{} // ConsolePort Adds support for custom fields and tags. type ConsolePort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,10 +57,11 @@ type _ConsolePort ConsolePort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { +func NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { this := ConsolePort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -132,6 +134,30 @@ func (o *ConsolePort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConsolePort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConsolePort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConsolePort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConsolePort) GetDisplay() string { if o == nil { @@ -157,9 +183,9 @@ func (o *ConsolePort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsolePort) GetDevice() Device { +func (o *ConsolePort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +194,7 @@ func (o *ConsolePort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePort) GetDeviceOk() (*Device, bool) { +func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +202,14 @@ func (o *ConsolePort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsolePort) SetDevice(v Device) { +func (o *ConsolePort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePort) GetModule() Module { +func (o *ConsolePort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +218,7 @@ func (o *ConsolePort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetModuleOk() (*Module, bool) { +func (o *ConsolePort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *ConsolePort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsolePort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsolePort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +445,10 @@ func (o *ConsolePort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsolePort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsolePort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +458,7 @@ func (o *ConsolePort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetCableOk() (*Cable, bool) { +func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +466,7 @@ func (o *ConsolePort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsolePort) SetCable(v Cable) { +func (o *ConsolePort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +519,33 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsolePort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsolePort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +557,9 @@ func (o *ConsolePort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +571,29 @@ func (o *ConsolePort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsolePort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +772,7 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +797,11 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -792,6 +827,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -836,6 +872,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_port_request.go b/model_console_port_request.go index 02bc1a10aa..0902b63a1f 100644 --- a/model_console_port_request.go +++ b/model_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConsolePortRequest(device DeviceRequest, name string) *ConsolePortRequest { +func NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest { this := ConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest { } // GetDevice returns the Device field value -func (o *ConsolePortRequest) GetDevice() DeviceRequest { +func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortRequest) GetModule() ModuleRequest { +func (o *ConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go index c00a14247e..3961404a15 100644 --- a/model_console_port_request_speed.go +++ b/model_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed.go b/model_console_port_speed.go index e28484684d..5c6100934a 100644 --- a/model_console_port_speed.go +++ b/model_console_port_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go index 4a4aaa9755..67a2e9b4d7 100644 --- a/model_console_port_speed_label.go +++ b/model_console_port_speed_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go index 814b669e04..b8422c6b2c 100644 --- a/model_console_port_speed_value.go +++ b/model_console_port_speed_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_template.go b/model_console_port_template.go index 804ed4efc0..44c4231f7b 100644 --- a/model_console_port_template.go +++ b/model_console_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsolePortTemplate{} // ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsolePortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetDeviceType() DeviceType { +func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsolePortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsolePortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetModuleType() ModuleType { +func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsolePortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsolePortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go index e3f1100b75..8507dbc4cd 100644 --- a/model_console_port_template_request.go +++ b/model_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} // ConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_console_port_type.go b/model_console_port_type.go index 9e92401fc2..5bb4fc95e5 100644 --- a/model_console_port_type.go +++ b/model_console_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go index 9e6a3ab15a..f4e5e6676b 100644 --- a/model_console_port_type_label.go +++ b/model_console_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go index f9f68676da..da45425bd6 100644 --- a/model_console_port_type_value.go +++ b/model_console_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_server_port.go b/model_console_server_port.go index 958e45db05..929c798e89 100644 --- a/model_console_server_port.go +++ b/model_console_server_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsoleServerPort{} // ConsoleServerPort Adds support for custom fields and tags. type ConsoleServerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,10 +57,11 @@ type _ConsoleServerPort ConsoleServerPort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { +func NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { this := ConsoleServerPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -132,6 +134,30 @@ func (o *ConsoleServerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConsoleServerPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConsoleServerPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConsoleServerPort) GetDisplay() string { if o == nil { @@ -157,9 +183,9 @@ func (o *ConsoleServerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsoleServerPort) GetDevice() Device { +func (o *ConsoleServerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +194,7 @@ func (o *ConsoleServerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { +func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +202,14 @@ func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsoleServerPort) SetDevice(v Device) { +func (o *ConsoleServerPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPort) GetModule() Module { +func (o *ConsoleServerPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +218,7 @@ func (o *ConsoleServerPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetModuleOk() (*Module, bool) { +func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *ConsoleServerPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsoleServerPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsoleServerPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +445,10 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsoleServerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsoleServerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +458,7 @@ func (o *ConsoleServerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { +func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +466,7 @@ func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsoleServerPort) SetCable(v Cable) { +func (o *ConsoleServerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +519,33 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsoleServerPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +557,9 @@ func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +571,29 @@ func (o *ConsoleServerPort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +772,7 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +797,11 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -792,6 +827,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -836,6 +872,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go index a51f7782ac..b24db5ce72 100644 --- a/model_console_server_port_request.go +++ b/model_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConsoleServerPortRequest(device DeviceRequest, name string) *ConsoleServerPortRequest { +func NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest { this := ConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest { } // GetDevice returns the Device field value -func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go index 1ab6eee1c6..d84a82a862 100644 --- a/model_console_server_port_template.go +++ b/model_console_server_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsoleServerPortTemplate{} // ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { +func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsoleServerPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { +func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go index bcbbf7a821..c947a82f66 100644 --- a/model_console_server_port_template_request.go +++ b/model_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} // ConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_contact.go b/model_contact.go index 74e7412d70..c93339a1d2 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Contact type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Contact{} // Contact Adds support for custom fields and tags. type Contact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +47,15 @@ type _Contact Contact // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewContact(id int32, url string, display string, name string) *Contact { +func NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *Contact { this := Contact{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +115,30 @@ func (o *Contact) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Contact) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Contact) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Contact) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Contact) GetDisplay() string { if o == nil { @@ -123,6 +163,49 @@ func (o *Contact) SetDisplay(v string) { o.Display = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetGroup() BriefContactGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetGroupOk() (*BriefContactGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Contact) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field. +func (o *Contact) SetGroup(v BriefContactGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Contact) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Contact) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *Contact) GetName() string { if o == nil { @@ -147,6 +230,166 @@ func (o *Contact) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *Contact) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *Contact) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *Contact) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *Contact) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *Contact) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *Contact) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *Contact) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *Contact) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *Contact) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *Contact) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *Contact) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *Contact) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *Contact) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *Contact) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *Contact) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Contact) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +422,154 @@ func (o *Contact) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Contact) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Contact) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Contact) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Contact) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Contact) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Contact) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Contact) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Contact) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Contact) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Contact) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Contact) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Contact) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +582,41 @@ func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +632,11 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +668,21 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_assignment.go b/model_contact_assignment.go index a623126393..99017f24ce 100644 --- a/model_contact_assignment.go +++ b/model_contact_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &ContactAssignment{} // ContactAssignment Adds support for custom fields and tags. type ContactAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact Contact `json:"contact"` - Role NullableContactRole `json:"role,omitempty"` - Priority *ContactAssignmentPriority `json:"priority,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact BriefContact `json:"contact"` + Role NullableBriefContactRole `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -43,7 +43,7 @@ type _ContactAssignment ContactAssignment // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { +func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { this := ContactAssignment{} this.Id = id this.Url = url @@ -210,9 +210,9 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) { } // GetContact returns the Contact field value -func (o *ContactAssignment) GetContact() Contact { +func (o *ContactAssignment) GetContact() BriefContact { if o == nil { - var ret Contact + var ret BriefContact return ret } @@ -221,7 +221,7 @@ func (o *ContactAssignment) GetContact() Contact { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetContactOk() (*Contact, bool) { +func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { if o == nil { return nil, false } @@ -229,14 +229,14 @@ func (o *ContactAssignment) GetContactOk() (*Contact, bool) { } // SetContact sets field value -func (o *ContactAssignment) SetContact(v Contact) { +func (o *ContactAssignment) SetContact(v BriefContact) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignment) GetRole() ContactRole { +func (o *ContactAssignment) GetRole() BriefContactRole { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRole + var ret BriefContactRole return ret } return *o.Role.Get() @@ -245,7 +245,7 @@ func (o *ContactAssignment) GetRole() ContactRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool) { +func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *ContactAssignment) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field. -func (o *ContactAssignment) SetRole(v ContactRole) { +// SetRole gets a reference to the given NullableBriefContactRole and assigns it to the Role field. +func (o *ContactAssignment) SetRole(v BriefContactRole) { o.Role.Set(&v) } @@ -277,9 +277,9 @@ func (o *ContactAssignment) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { +func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriority + var ret BriefCircuitGroupAssignmentSerializerPriority return ret } return *o.Priority @@ -287,7 +287,7 @@ func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool) { +func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -303,8 +303,8 @@ func (o *ContactAssignment) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriority and assigns it to the Priority field. -func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { o.Priority = &v } diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go index 8fb3e6e652..c68bd34ce8 100644 --- a/model_contact_assignment_request.go +++ b/model_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest { +func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest { this := ContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *ContactAssignmentRequest) GetContact() ContactRequest { +func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { } // SetContact sets field value -func (o *ContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *ContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *ContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_contact_group.go b/model_contact_group.go index 12c15cf45e..2fd4f8bd93 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ContactGroup{} type ContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ type _ContactGroup ContactGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *ContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ContactGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ContactGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_contact_group_request.go b/model_contact_group_request.go index 9aea2147b5..cd71a09de9 100644 --- a/model_contact_group_request.go +++ b/model_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_contact_request.go b/model_contact_request.go index bb1e2df509..27db2b5ffb 100644 --- a/model_contact_request.go +++ b/model_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,6 +54,49 @@ func NewContactRequestWithDefaults() *ContactRequest { return &this } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRequest) GetGroup() BriefContactGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ContactRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ContactRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ContactRequest) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *ContactRequest) GetName() string { if o == nil { @@ -69,6 +121,166 @@ func (o *ContactRequest) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ContactRequest) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ContactRequest) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ContactRequest) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *ContactRequest) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *ContactRequest) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *ContactRequest) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ContactRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ContactRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ContactRequest) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *ContactRequest) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *ContactRequest) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *ContactRequest) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *ContactRequest) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *ContactRequest) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *ContactRequest) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +313,102 @@ func (o *ContactRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ContactRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ContactRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ContactRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +419,37 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) { func (o ContactRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -158,8 +493,17 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role.go b/model_contact_role.go index bb4b6f62b6..7484978998 100644 --- a/model_contact_role.go +++ b/model_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ContactRole type satisfies the MappedNullable interface at compile time @@ -20,12 +21,17 @@ var _ MappedNullable = &ContactRole{} // ContactRole Adds support for custom fields and tags. type ContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +41,16 @@ type _ContactRole ContactRole // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewContactRole(id int32, url string, display string, name string, slug string) *ContactRole { +func NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *ContactRole { this := ContactRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +110,30 @@ func (o *ContactRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ContactRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ContactRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ContactRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ContactRole) GetDisplay() string { if o == nil { @@ -205,6 +238,122 @@ func (o *ContactRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ContactRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ContactRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ContactRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ContactRole) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +366,21 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +396,12 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +433,15 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role_request.go b/model_contact_role_request.go index c602937805..88ece951dd 100644 --- a/model_contact_role_request.go +++ b/model_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ContactRoleRequest{} // ContactRoleRequest Adds support for custom fields and tags. type ContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ContactRoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go new file mode 100644 index 0000000000..b0efb5f51b --- /dev/null +++ b/model_core_object_changes_list_action_parameter.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CoreObjectChangesListActionParameter the model 'CoreObjectChangesListActionParameter' +type CoreObjectChangesListActionParameter string + +// List of core_object_changes_list_action_parameter +const ( + COREOBJECTCHANGESLISTACTIONPARAMETER_CREATE CoreObjectChangesListActionParameter = "create" + COREOBJECTCHANGESLISTACTIONPARAMETER_DELETE CoreObjectChangesListActionParameter = "delete" + COREOBJECTCHANGESLISTACTIONPARAMETER_UPDATE CoreObjectChangesListActionParameter = "update" +) + +// All allowed values of CoreObjectChangesListActionParameter enum +var AllowedCoreObjectChangesListActionParameterEnumValues = []CoreObjectChangesListActionParameter{ + "create", + "delete", + "update", +} + +func (v *CoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CoreObjectChangesListActionParameter(value) + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CoreObjectChangesListActionParameter", value) +} + +// NewCoreObjectChangesListActionParameterFromValue returns a pointer to a valid CoreObjectChangesListActionParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCoreObjectChangesListActionParameterFromValue(v string) (*CoreObjectChangesListActionParameter, error) { + ev := CoreObjectChangesListActionParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CoreObjectChangesListActionParameter: valid values are %v", v, AllowedCoreObjectChangesListActionParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CoreObjectChangesListActionParameter) IsValid() bool { + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to core_object_changes_list_action_parameter value +func (v CoreObjectChangesListActionParameter) Ptr() *CoreObjectChangesListActionParameter { + return &v +} + +type NullableCoreObjectChangesListActionParameter struct { + value *CoreObjectChangesListActionParameter + isSet bool +} + +func (v NullableCoreObjectChangesListActionParameter) Get() *CoreObjectChangesListActionParameter { + return v.value +} + +func (v *NullableCoreObjectChangesListActionParameter) Set(val *CoreObjectChangesListActionParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCoreObjectChangesListActionParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreObjectChangesListActionParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreObjectChangesListActionParameter(val *CoreObjectChangesListActionParameter) *NullableCoreObjectChangesListActionParameter { + return &NullableCoreObjectChangesListActionParameter{value: val, isSet: true} +} + +func (v NullableCoreObjectChangesListActionParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_custom_field.go b/model_custom_field.go index aea0cf477b..ba55e09987 100644 --- a/model_custom_field.go +++ b/model_custom_field.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomField{} type CustomField struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Type CustomFieldType `json:"type"` @@ -35,8 +36,10 @@ type CustomField struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` @@ -46,6 +49,8 @@ type CustomField struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -53,11 +58,11 @@ type CustomField struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSet `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -67,10 +72,11 @@ type _CustomField CustomField // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { +func NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { this := CustomField{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Type = type_ @@ -137,6 +143,30 @@ func (o *CustomField) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomField) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomField) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomField) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomField) GetDisplay() string { if o == nil { @@ -428,6 +458,38 @@ func (o *CustomField) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomField) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomField) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomField) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomField) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -621,6 +683,39 @@ func (o *CustomField) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomField) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomField) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomField) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomField) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -772,9 +867,9 @@ func (o *CustomField) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { +func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSet + var ret BriefCustomFieldChoiceSet return ret } return *o.ChoiceSet.Get() @@ -783,7 +878,7 @@ func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) { +func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool) { if o == nil { return nil, false } @@ -799,8 +894,8 @@ func (o *CustomField) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field. -func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) { o.ChoiceSet.Set(&v) } @@ -910,6 +1005,7 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["type"] = o.Type @@ -930,6 +1026,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -948,6 +1047,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -983,6 +1085,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "type", @@ -1021,6 +1124,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "type") @@ -1031,12 +1135,14 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go index 7926b715a7..d19b4b1057 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomFieldChoiceSet{} type CustomFieldChoiceSet struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _CustomFieldChoiceSet CustomFieldChoiceSet // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { +func NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { this := CustomFieldChoiceSet{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ExtraChoices = extraChoices @@ -111,6 +113,30 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomFieldChoiceSet) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomFieldChoiceSet) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomFieldChoiceSet) GetDisplay() string { if o == nil { @@ -367,6 +393,7 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -397,6 +424,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "extra_choices", @@ -434,6 +462,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go index 387404fe08..591484b282 100644 --- a/model_custom_field_choice_set_base_choices.go +++ b/model_custom_field_choice_set_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go index bea7b22b52..e059ea12ce 100644 --- a/model_custom_field_choice_set_base_choices_label.go +++ b/model_custom_field_choice_set_base_choices_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go index 2e891195a5..6692ac26c0 100644 --- a/model_custom_field_choice_set_base_choices_value.go +++ b/model_custom_field_choice_set_base_choices_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go index 9b0c67818c..9f7caa51b4 100644 --- a/model_custom_field_choice_set_request.go +++ b/model_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go index ec27bbfe0c..0f0e582ea8 100644 --- a/model_custom_field_filter_logic.go +++ b/model_custom_field_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go index 55b62d6da0..3d7f34f32e 100644 --- a/model_custom_field_filter_logic_label.go +++ b/model_custom_field_filter_logic_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go index b99381d64f..5c2f596ab0 100644 --- a/model_custom_field_filter_logic_value.go +++ b/model_custom_field_filter_logic_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_request.go b/model_custom_field_request.go index e62680adbc..a65b77d78a 100644 --- a/model_custom_field_request.go +++ b/model_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type CustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type CustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type CustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -319,6 +323,38 @@ func (o *CustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -512,6 +548,39 @@ func (o *CustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -663,9 +732,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -674,7 +743,7 @@ func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -690,8 +759,8 @@ func (o *CustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -765,6 +834,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -783,6 +855,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -854,12 +929,14 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_type.go b/model_custom_field_type.go index a3be15abff..1452081c55 100644 --- a/model_custom_field_type.go +++ b/model_custom_field_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go index 4e8cbc627a..82ed258b61 100644 --- a/model_custom_field_type_label.go +++ b/model_custom_field_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go index 097829be52..ad1f827b4c 100644 --- a/model_custom_field_type_value.go +++ b/model_custom_field_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go index 8d3e41d9a2..2fa940d687 100644 --- a/model_custom_field_ui_editable.go +++ b/model_custom_field_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go index 6c09b4063d..4efc566cf0 100644 --- a/model_custom_field_ui_editable_label.go +++ b/model_custom_field_ui_editable_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go index b758a54553..a247267c1e 100644 --- a/model_custom_field_ui_editable_value.go +++ b/model_custom_field_ui_editable_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go index d643bce9c8..1fc6e5c3b5 100644 --- a/model_custom_field_ui_visible.go +++ b/model_custom_field_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go index b66ef1e2bb..e887833e45 100644 --- a/model_custom_field_ui_visible_label.go +++ b/model_custom_field_ui_visible_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go index d9f11b99bb..c857114467 100644 --- a/model_custom_field_ui_visible_value.go +++ b/model_custom_field_ui_visible_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_link.go b/model_custom_link.go index 1de90af8a9..aa3c797e11 100644 --- a/model_custom_link.go +++ b/model_custom_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomLink{} type CustomLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -48,10 +49,11 @@ type _CustomLink CustomLink // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { +func NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { this := CustomLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -118,6 +120,30 @@ func (o *CustomLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomLink) GetDisplay() string { if o == nil { @@ -462,6 +488,7 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -499,6 +526,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -537,6 +565,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go index 50fd2a8f1f..4686b78a8d 100644 --- a/model_custom_link_button_class.go +++ b/model_custom_link_button_class.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,31 +15,31 @@ import ( "fmt" ) -// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link type CustomLinkButtonClass string // List of CustomLink_button_class const ( - CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark" - CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" - CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" - CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" - CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" - CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" - CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" - CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" - CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" - CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" - CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" - CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" - CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" - CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" - CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" + CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default" + CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" + CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" + CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" + CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" + CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" + CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" + CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" + CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" + CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" + CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" + CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" + CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" + CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" + CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" ) // All allowed values of CustomLinkButtonClass enum var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{ - "outline-dark", + "default", "blue", "indigo", "purple", diff --git a/model_custom_link_request.go b/model_custom_link_request.go index 6de4bbfdb8..eef1e3fde9 100644 --- a/model_custom_link_request.go +++ b/model_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard.go b/model_dashboard.go index 5f90d03d61..f23bc107d7 100644 --- a/model_dashboard.go +++ b/model_dashboard.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard_request.go b/model_dashboard_request.go index 800dcc04ea..fc181f111e 100644 --- a/model_dashboard_request.go +++ b/model_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_file.go b/model_data_file.go index 53adc911d4..a149ebe88a 100644 --- a/model_data_file.go +++ b/model_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &DataFile{} // DataFile Adds support for custom fields and tags. type DataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Source DataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Source BriefDataSource `json:"source"` // File path relative to the data source's root Path string `json:"path"` LastUpdated time.Time `json:"last_updated"` @@ -40,10 +41,11 @@ type _DataFile DataFile // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { +func NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { this := DataFile{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Source = source this.Path = path @@ -109,6 +111,30 @@ func (o *DataFile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DataFile) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DataFile) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DataFile) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DataFile) GetDisplay() string { if o == nil { @@ -134,9 +160,9 @@ func (o *DataFile) SetDisplay(v string) { } // GetSource returns the Source field value -func (o *DataFile) GetSource() DataSource { +func (o *DataFile) GetSource() BriefDataSource { if o == nil { - var ret DataSource + var ret BriefDataSource return ret } @@ -145,7 +171,7 @@ func (o *DataFile) GetSource() DataSource { // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. -func (o *DataFile) GetSourceOk() (*DataSource, bool) { +func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { if o == nil { return nil, false } @@ -153,7 +179,7 @@ func (o *DataFile) GetSourceOk() (*DataSource, bool) { } // SetSource sets field value -func (o *DataFile) SetSource(v DataSource) { +func (o *DataFile) SetSource(v BriefDataSource) { o.Source = v } @@ -265,6 +291,7 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["source"] = o.Source toSerialize["path"] = o.Path @@ -286,6 +313,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "source", "path", @@ -323,6 +351,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "source") delete(additionalProperties, "path") diff --git a/model_data_source.go b/model_data_source.go index 2757ef5b20..b8d43d9661 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DataSource type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &DataSource{} // DataSource Adds support for custom fields and tags. type DataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Type DataSourceType `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Status DataSourceStatus `json:"status"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` + // Patterns (one per line) matching files to ignore when syncing + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + LastSynced NullableTime `json:"last_synced"` + FileCount int64 `json:"file_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +49,20 @@ type _DataSource DataSource // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDataSource(id int32, url string, display string, name string) *DataSource { +func NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64) *DataSource { this := DataSource{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Type = type_ + this.SourceUrl = sourceUrl + this.Status = status + this.Created = created + this.LastUpdated = lastUpdated + this.LastSynced = lastSynced + this.FileCount = fileCount return &this } @@ -99,6 +122,30 @@ func (o *DataSource) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DataSource) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DataSource) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DataSource) GetDisplay() string { if o == nil { @@ -147,6 +194,110 @@ func (o *DataSource) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *DataSource) GetType() DataSourceType { + if o == nil { + var ret DataSourceType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetTypeOk() (*DataSourceType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DataSource) SetType(v DataSourceType) { + o.Type = v +} + +// GetSourceUrl returns the SourceUrl field value +func (o *DataSource) GetSourceUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SourceUrl +} + +// GetSourceUrlOk returns a tuple with the SourceUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetSourceUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceUrl, true +} + +// SetSourceUrl sets field value +func (o *DataSource) SetSourceUrl(v string) { + o.SourceUrl = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *DataSource) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *DataSource) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *DataSource) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetStatus returns the Status field value +func (o *DataSource) GetStatus() DataSourceStatus { + if o == nil { + var ret DataSourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DataSource) SetStatus(v DataSourceStatus) { + o.Status = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DataSource) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +330,237 @@ func (o *DataSource) SetDescription(v string) { o.Description = &v } +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetParameters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetParametersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *DataSource) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. +func (o *DataSource) SetParameters(v interface{}) { + o.Parameters = v +} + +// GetIgnoreRules returns the IgnoreRules field value if set, zero value otherwise. +func (o *DataSource) GetIgnoreRules() string { + if o == nil || IsNil(o.IgnoreRules) { + var ret string + return ret + } + return *o.IgnoreRules +} + +// GetIgnoreRulesOk returns a tuple with the IgnoreRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetIgnoreRulesOk() (*string, bool) { + if o == nil || IsNil(o.IgnoreRules) { + return nil, false + } + return o.IgnoreRules, true +} + +// HasIgnoreRules returns a boolean if a field has been set. +func (o *DataSource) HasIgnoreRules() bool { + if o != nil && !IsNil(o.IgnoreRules) { + return true + } + + return false +} + +// SetIgnoreRules gets a reference to the given string and assigns it to the IgnoreRules field. +func (o *DataSource) SetIgnoreRules(v string) { + o.IgnoreRules = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSource) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSource) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSource) SetComments(v string) { + o.Comments = &v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DataSource) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DataSource) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DataSource) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DataSource) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DataSource) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetLastSynced returns the LastSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastSynced() time.Time { + if o == nil || o.LastSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastSynced.Get() +} + +// GetLastSyncedOk returns a tuple with the LastSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastSynced.Get(), o.LastSynced.IsSet() +} + +// SetLastSynced sets field value +func (o *DataSource) SetLastSynced(v time.Time) { + o.LastSynced.Set(&v) +} + +// GetFileCount returns the FileCount field value +func (o *DataSource) GetFileCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.FileCount +} + +// GetFileCountOk returns a tuple with the FileCount field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetFileCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.FileCount, true +} + +// SetFileCount sets field value +func (o *DataSource) SetFileCount(v int64) { + o.FileCount = v +} + func (o DataSource) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +573,34 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + toSerialize["source_url"] = o.SourceUrl + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["status"] = o.Status if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.IgnoreRules) { + toSerialize["ignore_rules"] = o.IgnoreRules + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["last_synced"] = o.LastSynced.Get() + toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +616,16 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "type", + "source_url", + "status", + "created", + "last_updated", + "last_synced", + "file_count", } allProperties := make(map[string]interface{}) @@ -244,9 +657,22 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "source_url") + delete(additionalProperties, "enabled") + delete(additionalProperties, "status") delete(additionalProperties, "description") + delete(additionalProperties, "parameters") + delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "last_synced") + delete(additionalProperties, "file_count") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_request.go b/model_data_source_request.go index 356c146f75..acb516a3e8 100644 --- a/model_data_source_request.go +++ b/model_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &DataSourceRequest{} // DataSourceRequest Adds support for custom fields and tags. type DataSourceRequest struct { - Name string `json:"name"` - Type DataSourceRequestType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type DataSourceTypeValue `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _DataSourceRequest DataSourceRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest { +func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest { this := DataSourceRequest{} this.Name = name this.Type = type_ @@ -80,9 +80,9 @@ func (o *DataSourceRequest) SetName(v string) { } // GetType returns the Type field value -func (o *DataSourceRequest) GetType() DataSourceRequestType { +func (o *DataSourceRequest) GetType() DataSourceTypeValue { if o == nil { - var ret DataSourceRequestType + var ret DataSourceTypeValue return ret } @@ -91,7 +91,7 @@ func (o *DataSourceRequest) GetType() DataSourceRequestType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { +func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { if o == nil { return nil, false } @@ -99,7 +99,7 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { } // SetType sets field value -func (o *DataSourceRequest) SetType(v DataSourceRequestType) { +func (o *DataSourceRequest) SetType(v DataSourceTypeValue) { o.Type = v } @@ -191,38 +191,6 @@ func (o *DataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *DataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_status.go b/model_data_source_status.go new file mode 100644 index 0000000000..4a232e6012 --- /dev/null +++ b/model_data_source_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DataSourceStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceStatus{} + +// DataSourceStatus struct for DataSourceStatus +type DataSourceStatus struct { + Value *DataSourceStatusValue `json:"value,omitempty"` + Label *DataSourceStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataSourceStatus DataSourceStatus + +// NewDataSourceStatus instantiates a new DataSourceStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDataSourceStatus() *DataSourceStatus { + this := DataSourceStatus{} + return &this +} + +// NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDataSourceStatusWithDefaults() *DataSourceStatus { + this := DataSourceStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataSourceStatus) GetValue() DataSourceStatusValue { + if o == nil || IsNil(o.Value) { + var ret DataSourceStatusValue + 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 *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, 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 *DataSourceStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DataSourceStatusValue and assigns it to the Value field. +func (o *DataSourceStatus) SetValue(v DataSourceStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel { + if o == nil || IsNil(o.Label) { + var ret DataSourceStatusLabel + 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 *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, 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 *DataSourceStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DataSourceStatusLabel and assigns it to the Label field. +func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) { + o.Label = &v +} + +func (o DataSourceStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataSourceStatus) 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 *DataSourceStatus) UnmarshalJSON(data []byte) (err error) { + varDataSourceStatus := _DataSourceStatus{} + + err = json.Unmarshal(data, &varDataSourceStatus) + + if err != nil { + return err + } + + *o = DataSourceStatus(varDataSourceStatus) + + 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 NullableDataSourceStatus struct { + value *DataSourceStatus + isSet bool +} + +func (v NullableDataSourceStatus) Get() *DataSourceStatus { + return v.value +} + +func (v *NullableDataSourceStatus) Set(val *DataSourceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatus(val *DataSourceStatus) *NullableDataSourceStatus { + return &NullableDataSourceStatus{value: val, isSet: true} +} + +func (v NullableDataSourceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go new file mode 100644 index 0000000000..7c1878ebe8 --- /dev/null +++ b/model_data_source_status_label.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusLabel the model 'DataSourceStatusLabel' +type DataSourceStatusLabel string + +// List of DataSource_status_label +const ( + DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New" + DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued" + DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing" + DATASOURCESTATUSLABEL_COMPLETED DataSourceStatusLabel = "Completed" + DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed" +) + +// All allowed values of DataSourceStatusLabel enum +var AllowedDataSourceStatusLabelEnumValues = []DataSourceStatusLabel{ + "New", + "Queued", + "Syncing", + "Completed", + "Failed", +} + +func (v *DataSourceStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusLabel(value) + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusLabel", value) +} + +// NewDataSourceStatusLabelFromValue returns a pointer to a valid DataSourceStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusLabelFromValue(v string) (*DataSourceStatusLabel, error) { + ev := DataSourceStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusLabel: valid values are %v", v, AllowedDataSourceStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusLabel) IsValid() bool { + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_label value +func (v DataSourceStatusLabel) Ptr() *DataSourceStatusLabel { + return &v +} + +type NullableDataSourceStatusLabel struct { + value *DataSourceStatusLabel + isSet bool +} + +func (v NullableDataSourceStatusLabel) Get() *DataSourceStatusLabel { + return v.value +} + +func (v *NullableDataSourceStatusLabel) Set(val *DataSourceStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusLabel(val *DataSourceStatusLabel) *NullableDataSourceStatusLabel { + return &NullableDataSourceStatusLabel{value: val, isSet: true} +} + +func (v NullableDataSourceStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_data_source_status_value.go b/model_data_source_status_value.go new file mode 100644 index 0000000000..3144e06e68 --- /dev/null +++ b/model_data_source_status_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusValue * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed +type DataSourceStatusValue string + +// List of DataSource_status_value +const ( + DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new" + DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued" + DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing" + DATASOURCESTATUSVALUE_COMPLETED DataSourceStatusValue = "completed" + DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed" +) + +// All allowed values of DataSourceStatusValue enum +var AllowedDataSourceStatusValueEnumValues = []DataSourceStatusValue{ + "new", + "queued", + "syncing", + "completed", + "failed", +} + +func (v *DataSourceStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusValue(value) + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusValue", value) +} + +// NewDataSourceStatusValueFromValue returns a pointer to a valid DataSourceStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusValueFromValue(v string) (*DataSourceStatusValue, error) { + ev := DataSourceStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusValue: valid values are %v", v, AllowedDataSourceStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusValue) IsValid() bool { + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_value value +func (v DataSourceStatusValue) Ptr() *DataSourceStatusValue { + return &v +} + +type NullableDataSourceStatusValue struct { + value *DataSourceStatusValue + isSet bool +} + +func (v NullableDataSourceStatusValue) Get() *DataSourceStatusValue { + return v.value +} + +func (v *NullableDataSourceStatusValue) Set(val *DataSourceStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusValue(val *DataSourceStatusValue) *NullableDataSourceStatusValue { + return &NullableDataSourceStatusValue{value: val, isSet: true} +} + +func (v NullableDataSourceStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_data_source_type.go b/model_data_source_type.go new file mode 100644 index 0000000000..3724344855 --- /dev/null +++ b/model_data_source_type.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DataSourceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceType{} + +// DataSourceType struct for DataSourceType +type DataSourceType struct { + Value *DataSourceTypeValue `json:"value,omitempty"` + Label *DataSourceTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataSourceType DataSourceType + +// NewDataSourceType instantiates a new DataSourceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDataSourceType() *DataSourceType { + this := DataSourceType{} + return &this +} + +// NewDataSourceTypeWithDefaults instantiates a new DataSourceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDataSourceTypeWithDefaults() *DataSourceType { + this := DataSourceType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataSourceType) GetValue() DataSourceTypeValue { + if o == nil || IsNil(o.Value) { + var ret DataSourceTypeValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DataSourceType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DataSourceTypeValue and assigns it to the Value field. +func (o *DataSourceType) SetValue(v DataSourceTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DataSourceType) GetLabel() DataSourceTypeLabel { + if o == nil || IsNil(o.Label) { + var ret DataSourceTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DataSourceType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DataSourceTypeLabel and assigns it to the Label field. +func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) { + o.Label = &v +} + +func (o DataSourceType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataSourceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DataSourceType) UnmarshalJSON(data []byte) (err error) { + varDataSourceType := _DataSourceType{} + + err = json.Unmarshal(data, &varDataSourceType) + + if err != nil { + return err + } + + *o = DataSourceType(varDataSourceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDataSourceType struct { + value *DataSourceType + isSet bool +} + +func (v NullableDataSourceType) Get() *DataSourceType { + return v.value +} + +func (v *NullableDataSourceType) Set(val *DataSourceType) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceType) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceType(val *DataSourceType) *NullableDataSourceType { + return &NullableDataSourceType{value: val, isSet: true} +} + +func (v NullableDataSourceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go new file mode 100644 index 0000000000..ce2aa0a892 --- /dev/null +++ b/model_data_source_type_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeLabel the model 'DataSourceTypeLabel' +type DataSourceTypeLabel string + +// List of DataSource_type_label +const ( + DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------" + DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local" + DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git" + DATASOURCETYPELABEL_AMAZON_S3 DataSourceTypeLabel = "Amazon S3" +) + +// All allowed values of DataSourceTypeLabel enum +var AllowedDataSourceTypeLabelEnumValues = []DataSourceTypeLabel{ + "---------", + "Local", + "Git", + "Amazon S3", +} + +func (v *DataSourceTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeLabel(value) + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeLabel", value) +} + +// NewDataSourceTypeLabelFromValue returns a pointer to a valid DataSourceTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeLabelFromValue(v string) (*DataSourceTypeLabel, error) { + ev := DataSourceTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeLabel: valid values are %v", v, AllowedDataSourceTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeLabel) IsValid() bool { + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_label value +func (v DataSourceTypeLabel) Ptr() *DataSourceTypeLabel { + return &v +} + +type NullableDataSourceTypeLabel struct { + value *DataSourceTypeLabel + isSet bool +} + +func (v NullableDataSourceTypeLabel) Get() *DataSourceTypeLabel { + return v.value +} + +func (v *NullableDataSourceTypeLabel) Set(val *DataSourceTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeLabel(val *DataSourceTypeLabel) *NullableDataSourceTypeLabel { + return &NullableDataSourceTypeLabel{value: val, isSet: true} +} + +func (v NullableDataSourceTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_data_source_type_value.go b/model_data_source_type_value.go new file mode 100644 index 0000000000..9a9e076e23 --- /dev/null +++ b/model_data_source_type_value.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeValue * `None` - --------- * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 +type DataSourceTypeValue string + +// List of DataSource_type_value +const ( + DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local" + DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git" + DATASOURCETYPEVALUE_AMAZON_S3 DataSourceTypeValue = "amazon-s3" +) + +// All allowed values of DataSourceTypeValue enum +var AllowedDataSourceTypeValueEnumValues = []DataSourceTypeValue{ + "local", + "git", + "amazon-s3", +} + +func (v *DataSourceTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeValue(value) + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeValue", value) +} + +// NewDataSourceTypeValueFromValue returns a pointer to a valid DataSourceTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeValueFromValue(v string) (*DataSourceTypeValue, error) { + ev := DataSourceTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeValue: valid values are %v", v, AllowedDataSourceTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeValue) IsValid() bool { + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_value value +func (v DataSourceTypeValue) Ptr() *DataSourceTypeValue { + return &v +} + +type NullableDataSourceTypeValue struct { + value *DataSourceTypeValue + isSet bool +} + +func (v NullableDataSourceTypeValue) Get() *DataSourceTypeValue { + return v.value +} + +func (v *NullableDataSourceTypeValue) Set(val *DataSourceTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeValue(val *DataSourceTypeValue) *NullableDataSourceTypeValue { + return &NullableDataSourceTypeValue{value: val, isSet: true} +} + +func (v NullableDataSourceTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go index f19ebe5fef..c75367e7bd 100644 --- a/model_dcim_cables_list_length_unit_parameter.go +++ b/model_dcim_cables_list_length_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go index 7554c6357e..65e818ac82 100644 --- a/model_dcim_console_port_templates_list_type_parameter.go +++ b/model_dcim_console_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go index 1f1008b17c..f6c2231f82 100644 --- a/model_dcim_console_ports_list_speed_parameter.go +++ b/model_dcim_console_ports_list_speed_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go index 0d667f2249..60f2617bb7 100644 --- a/model_dcim_device_types_list_airflow_parameter.go +++ b/model_dcim_device_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go index acfb6c6fe4..b764e17d86 100644 --- a/model_dcim_device_types_list_weight_unit_parameter.go +++ b/model_dcim_device_types_list_weight_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go index 62cac65410..9df25dd937 100644 --- a/model_dcim_devices_render_config_create_format_parameter.go +++ b/model_dcim_devices_render_config_create_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go index 64b1b66dae..d045a72fc9 100644 --- a/model_dcim_interfaces_list_mode_parameter.go +++ b/model_dcim_interfaces_list_mode_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go new file mode 100644 index 0000000000..371b8c3ee2 --- /dev/null +++ b/model_dcim_module_types_list_airflow_parameter.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimModuleTypesListAirflowParameter the model 'DcimModuleTypesListAirflowParameter' +type DcimModuleTypesListAirflowParameter string + +// List of dcim_module_types_list_airflow_parameter +const ( + DCIMMODULETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimModuleTypesListAirflowParameter = "front-to-rear" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimModuleTypesListAirflowParameter = "left-to-right" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimModuleTypesListAirflowParameter = "rear-to-front" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimModuleTypesListAirflowParameter = "right-to-left" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear" +) + +// All allowed values of DcimModuleTypesListAirflowParameter enum +var AllowedDcimModuleTypesListAirflowParameterEnumValues = []DcimModuleTypesListAirflowParameter{ + "front-to-rear", + "left-to-right", + "passive", + "rear-to-front", + "right-to-left", + "side-to-rear", +} + +func (v *DcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimModuleTypesListAirflowParameter(value) + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimModuleTypesListAirflowParameter", value) +} + +// NewDcimModuleTypesListAirflowParameterFromValue returns a pointer to a valid DcimModuleTypesListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimModuleTypesListAirflowParameterFromValue(v string) (*DcimModuleTypesListAirflowParameter, error) { + ev := DcimModuleTypesListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimModuleTypesListAirflowParameter: valid values are %v", v, AllowedDcimModuleTypesListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimModuleTypesListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_module_types_list_airflow_parameter value +func (v DcimModuleTypesListAirflowParameter) Ptr() *DcimModuleTypesListAirflowParameter { + return &v +} + +type NullableDcimModuleTypesListAirflowParameter struct { + value *DcimModuleTypesListAirflowParameter + isSet bool +} + +func (v NullableDcimModuleTypesListAirflowParameter) Get() *DcimModuleTypesListAirflowParameter { + return v.value +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Set(val *DcimModuleTypesListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimModuleTypesListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimModuleTypesListAirflowParameter(val *DcimModuleTypesListAirflowParameter) *NullableDcimModuleTypesListAirflowParameter { + return &NullableDcimModuleTypesListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimModuleTypesListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go index 887c4c1857..1e77aede61 100644 --- a/model_dcim_power_feeds_list_phase_parameter.go +++ b/model_dcim_power_feeds_list_phase_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go index a9d411a9a8..02f1901e62 100644 --- a/model_dcim_power_feeds_list_supply_parameter.go +++ b/model_dcim_power_feeds_list_supply_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go index 133f1c231e..73ec1afc32 100644 --- a/model_dcim_power_feeds_list_type_parameter.go +++ b/model_dcim_power_feeds_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go index dc7840bb14..0e65367c81 100644 --- a/model_dcim_power_outlet_templates_list_type_parameter.go +++ b/model_dcim_power_outlet_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go index dcc5cfc555..0cc6d26508 100644 --- a/model_dcim_power_port_templates_list_type_parameter.go +++ b/model_dcim_power_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go new file mode 100644 index 0000000000..10f0655639 --- /dev/null +++ b/model_dcim_rack_types_list_outer_unit_parameter.go @@ -0,0 +1,110 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRackTypesListOuterUnitParameter the model 'DcimRackTypesListOuterUnitParameter' +type DcimRackTypesListOuterUnitParameter string + +// List of dcim_rack_types_list_outer_unit_parameter +const ( + DCIMRACKTYPESLISTOUTERUNITPARAMETER_IN DcimRackTypesListOuterUnitParameter = "in" + DCIMRACKTYPESLISTOUTERUNITPARAMETER_MM DcimRackTypesListOuterUnitParameter = "mm" +) + +// All allowed values of DcimRackTypesListOuterUnitParameter enum +var AllowedDcimRackTypesListOuterUnitParameterEnumValues = []DcimRackTypesListOuterUnitParameter{ + "in", + "mm", +} + +func (v *DcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRackTypesListOuterUnitParameter(value) + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRackTypesListOuterUnitParameter", value) +} + +// NewDcimRackTypesListOuterUnitParameterFromValue returns a pointer to a valid DcimRackTypesListOuterUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRackTypesListOuterUnitParameterFromValue(v string) (*DcimRackTypesListOuterUnitParameter, error) { + ev := DcimRackTypesListOuterUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRackTypesListOuterUnitParameter: valid values are %v", v, AllowedDcimRackTypesListOuterUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRackTypesListOuterUnitParameter) IsValid() bool { + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_rack_types_list_outer_unit_parameter value +func (v DcimRackTypesListOuterUnitParameter) Ptr() *DcimRackTypesListOuterUnitParameter { + return &v +} + +type NullableDcimRackTypesListOuterUnitParameter struct { + value *DcimRackTypesListOuterUnitParameter + isSet bool +} + +func (v NullableDcimRackTypesListOuterUnitParameter) Get() *DcimRackTypesListOuterUnitParameter { + return v.value +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Set(val *DcimRackTypesListOuterUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRackTypesListOuterUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRackTypesListOuterUnitParameter(val *DcimRackTypesListOuterUnitParameter) *NullableDcimRackTypesListOuterUnitParameter { + return &NullableDcimRackTypesListOuterUnitParameter{value: val, isSet: true} +} + +func (v NullableDcimRackTypesListOuterUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go index 564e2c159d..aee452ec50 100644 --- a/model_dcim_racks_elevation_retrieve_face_parameter.go +++ b/model_dcim_racks_elevation_retrieve_face_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go index 2506cd2cc7..65183876fb 100644 --- a/model_dcim_racks_elevation_retrieve_render_parameter.go +++ b/model_dcim_racks_elevation_retrieve_render_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go new file mode 100644 index 0000000000..04ade69d5e --- /dev/null +++ b/model_dcim_racks_list_airflow_parameter.go @@ -0,0 +1,110 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRacksListAirflowParameter the model 'DcimRacksListAirflowParameter' +type DcimRacksListAirflowParameter string + +// List of dcim_racks_list_airflow_parameter +const ( + DCIMRACKSLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimRacksListAirflowParameter = "front-to-rear" + DCIMRACKSLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimRacksListAirflowParameter = "rear-to-front" +) + +// All allowed values of DcimRacksListAirflowParameter enum +var AllowedDcimRacksListAirflowParameterEnumValues = []DcimRacksListAirflowParameter{ + "front-to-rear", + "rear-to-front", +} + +func (v *DcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRacksListAirflowParameter(value) + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRacksListAirflowParameter", value) +} + +// NewDcimRacksListAirflowParameterFromValue returns a pointer to a valid DcimRacksListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRacksListAirflowParameterFromValue(v string) (*DcimRacksListAirflowParameter, error) { + ev := DcimRacksListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRacksListAirflowParameter: valid values are %v", v, AllowedDcimRacksListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRacksListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_racks_list_airflow_parameter value +func (v DcimRacksListAirflowParameter) Ptr() *DcimRacksListAirflowParameter { + return &v +} + +type NullableDcimRacksListAirflowParameter struct { + value *DcimRacksListAirflowParameter + isSet bool +} + +func (v NullableDcimRacksListAirflowParameter) Get() *DcimRacksListAirflowParameter { + return v.value +} + +func (v *NullableDcimRacksListAirflowParameter) Set(val *DcimRacksListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRacksListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRacksListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRacksListAirflowParameter(val *DcimRacksListAirflowParameter) *NullableDcimRacksListAirflowParameter { + return &NullableDcimRacksListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimRacksListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device.go b/model_device.go index 7585fb9dde..d35c5d4c05 100644 --- a/model_device.go +++ b/model_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,42 +21,43 @@ var _ MappedNullable = &Device{} // Device Adds support for custom fields and tags. type Device struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceType `json:"device_type"` + Role BriefDeviceRole `json:"role"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,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"` @@ -82,10 +83,11 @@ type _Device Device // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDevice(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *Device { +func NewDevice(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *Device { this := Device{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.DeviceType = deviceType this.Role = role @@ -163,6 +165,30 @@ func (o *Device) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Device) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Device) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Device) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Device) GetDisplay() string { if o == nil { @@ -231,9 +257,9 @@ func (o *Device) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *Device) GetDeviceType() DeviceType { +func (o *Device) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -242,7 +268,7 @@ func (o *Device) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -250,14 +276,14 @@ func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *Device) SetDeviceType(v DeviceType) { +func (o *Device) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } // GetRole returns the Role field value -func (o *Device) GetRole() DeviceRole { +func (o *Device) GetRole() BriefDeviceRole { if o == nil { - var ret DeviceRole + var ret BriefDeviceRole return ret } @@ -266,7 +292,7 @@ func (o *Device) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *Device) GetRoleOk() (*DeviceRole, bool) { +func (o *Device) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -274,14 +300,14 @@ func (o *Device) GetRoleOk() (*DeviceRole, bool) { } // SetRole sets field value -func (o *Device) SetRole(v DeviceRole) { +func (o *Device) SetRole(v BriefDeviceRole) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetTenant() Tenant { +func (o *Device) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -290,7 +316,7 @@ func (o *Device) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetTenantOk() (*Tenant, bool) { +func (o *Device) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -306,8 +332,8 @@ func (o *Device) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Device) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Device) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -322,9 +348,9 @@ func (o *Device) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPlatform() Platform { +func (o *Device) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -333,7 +359,7 @@ func (o *Device) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPlatformOk() (*Platform, bool) { +func (o *Device) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -349,8 +375,8 @@ func (o *Device) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *Device) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *Device) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -440,9 +466,9 @@ func (o *Device) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *Device) GetSite() Site { +func (o *Device) GetSite() BriefSite { if o == nil { - var ret Site + var ret BriefSite return ret } @@ -451,7 +477,7 @@ func (o *Device) GetSite() Site { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *Device) GetSiteOk() (*Site, bool) { +func (o *Device) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -459,14 +485,14 @@ func (o *Device) GetSiteOk() (*Site, bool) { } // SetSite sets field value -func (o *Device) SetSite(v Site) { +func (o *Device) SetSite(v BriefSite) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetLocation() Location { +func (o *Device) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -475,7 +501,7 @@ func (o *Device) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetLocationOk() (*Location, bool) { +func (o *Device) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -491,8 +517,8 @@ func (o *Device) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *Device) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Device) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -507,9 +533,9 @@ func (o *Device) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetRack() Rack { +func (o *Device) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -518,7 +544,7 @@ func (o *Device) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetRackOk() (*Rack, bool) { +func (o *Device) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -534,8 +560,8 @@ func (o *Device) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *Device) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *Device) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -801,10 +827,10 @@ func (o *Device) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *Device) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *Device) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -814,7 +840,7 @@ func (o *Device) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -822,14 +848,14 @@ func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *Device) SetPrimaryIp(v IPAddress) { +func (o *Device) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp4() IPAddress { +func (o *Device) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -838,7 +864,7 @@ func (o *Device) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -854,8 +880,8 @@ func (o *Device) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *Device) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *Device) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -870,9 +896,9 @@ func (o *Device) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp6() IPAddress { +func (o *Device) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -881,7 +907,7 @@ func (o *Device) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -897,8 +923,8 @@ func (o *Device) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *Device) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *Device) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -913,9 +939,9 @@ func (o *Device) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetOobIp() IPAddress { +func (o *Device) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -924,7 +950,7 @@ func (o *Device) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetOobIpOk() (*IPAddress, bool) { +func (o *Device) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -940,8 +966,8 @@ func (o *Device) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *Device) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -956,9 +982,9 @@ func (o *Device) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetCluster() Cluster { +func (o *Device) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -967,7 +993,7 @@ func (o *Device) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetClusterOk() (*Cluster, bool) { +func (o *Device) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -983,8 +1009,8 @@ func (o *Device) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *Device) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *Device) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -999,9 +1025,9 @@ func (o *Device) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetVirtualChassis() VirtualChassis { +func (o *Device) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1010,7 +1036,7 @@ func (o *Device) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1026,8 +1052,8 @@ func (o *Device) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *Device) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *Device) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1192,9 +1218,9 @@ func (o *Device) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetConfigTemplate() ConfigTemplate { +func (o *Device) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1203,7 +1229,7 @@ func (o *Device) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1219,8 +1245,8 @@ func (o *Device) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Device) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Device) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1635,6 +1661,7 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1746,6 +1773,7 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device_type", "role", @@ -1795,6 +1823,7 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_airflow.go b/model_device_airflow.go index b3812caaea..00a752776b 100644 --- a/model_device_airflow.go +++ b/model_device_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go index 9d2429b948..bdf8bdb467 100644 --- a/model_device_airflow_label.go +++ b/model_device_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go index 9ff9281c99..11b552c602 100644 --- a/model_device_airflow_value.go +++ b/model_device_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_bay.go b/model_device_bay.go index ab35b6a54a..22e3c118a7 100644 --- a/model_device_bay.go +++ b/model_device_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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 NullableDevice `json:"installed_device,omitempty"` + InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,10 +44,11 @@ type _DeviceBay DeviceBay // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { +func NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { this := DeviceBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -111,6 +113,30 @@ func (o *DeviceBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceBay) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceBay) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceBay) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceBay) GetDisplay() string { if o == nil { @@ -136,9 +162,9 @@ func (o *DeviceBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *DeviceBay) GetDevice() Device { +func (o *DeviceBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -147,7 +173,7 @@ func (o *DeviceBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBay) GetDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -155,7 +181,7 @@ func (o *DeviceBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *DeviceBay) SetDevice(v Device) { +func (o *DeviceBay) SetDevice(v BriefDevice) { o.Device = v } @@ -248,9 +274,9 @@ func (o *DeviceBay) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBay) GetInstalledDevice() Device { +func (o *DeviceBay) GetInstalledDevice() BriefDevice { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.InstalledDevice.Get() @@ -259,7 +285,7 @@ func (o *DeviceBay) GetInstalledDevice() Device { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -275,8 +301,8 @@ func (o *DeviceBay) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field. -func (o *DeviceBay) SetInstalledDevice(v Device) { +// SetInstalledDevice gets a reference to the given NullableBriefDevice and assigns it to the InstalledDevice field. +func (o *DeviceBay) SetInstalledDevice(v BriefDevice) { o.InstalledDevice.Set(&v) } @@ -418,6 +444,7 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -453,6 +480,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -489,6 +517,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_device_bay_request.go b/model_device_bay_request.go index 514b0172eb..17ef09ae82 100644 --- a/model_device_bay_request.go +++ b/model_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceBayRequest(device DeviceRequest, name string) *DeviceBayRequest { +func NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest { this := DeviceBayRequest{} this.Device = device this.Name = name @@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest { } // GetDevice returns the Device field value -func (o *DeviceBayRequest) GetDevice() DeviceRequest { +func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *DeviceBayRequest) SetDevice(v DeviceRequest) { +func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -165,9 +165,9 @@ func (o *DeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -176,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -192,8 +192,8 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_device_bay_template.go b/model_device_bay_template.go index 6ea0c9a93f..1dedbb099f 100644 --- a/model_device_bay_template.go +++ b/model_device_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &DeviceBayTemplate{} // DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -41,7 +41,7 @@ type _DeviceBayTemplate DeviceBayTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { +func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { this := DeviceBayTemplate{} this.Id = id this.Url = url @@ -134,9 +134,9 @@ func (o *DeviceBayTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplate) GetDeviceType() DeviceType { +func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -145,7 +145,7 @@ func (o *DeviceBayTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -153,7 +153,7 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) { +func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go index b75a4eaa35..05bfa27363 100644 --- a/model_device_bay_template_request.go +++ b/model_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &DeviceBayTemplateRequest{} // DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string) *DeviceBayTemplateRequest { +func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest { this := DeviceBayTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) } // SetDeviceType sets field value -func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } diff --git a/model_device_face.go b/model_device_face.go index 380afa6899..1ad93cac2b 100644 --- a/model_device_face.go +++ b/model_device_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_label.go b/model_device_face_label.go index b74e4452a2..e503f66cb4 100644 --- a/model_device_face_label.go +++ b/model_device_face_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_value.go b/model_device_face_value.go index c693fb0de4..aa83373187 100644 --- a/model_device_face_value.go +++ b/model_device_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_role.go b/model_device_role.go index 1c2cf2a0c6..4644831bf8 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceRole type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &DeviceRole{} // DeviceRole Adds support for custom fields and tags. type DeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + // Virtual machines may be assigned to this role + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate 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"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int64 `json:"device_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,16 @@ type _DeviceRole DeviceRole // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *DeviceRole { +func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.DeviceCount = deviceCount this.VirtualmachineCount = virtualmachineCount return &this @@ -105,6 +118,30 @@ func (o *DeviceRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceRole) GetDisplay() string { if o == nil { @@ -177,6 +214,113 @@ func (o *DeviceRole) SetSlug(v string) { o.Slug = v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *DeviceRole) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *DeviceRole) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *DeviceRole) SetColor(v string) { + o.Color = &v +} + +// GetVmRole returns the VmRole field value if set, zero value otherwise. +func (o *DeviceRole) GetVmRole() bool { + if o == nil || IsNil(o.VmRole) { + var ret bool + return ret + } + return *o.VmRole +} + +// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetVmRoleOk() (*bool, bool) { + if o == nil || IsNil(o.VmRole) { + return nil, false + } + return o.VmRole, true +} + +// HasVmRole returns a boolean if a field has been set. +func (o *DeviceRole) HasVmRole() bool { + if o != nil && !IsNil(o.VmRole) { + return true + } + + return false +} + +// SetVmRole gets a reference to the given bool and assigns it to the VmRole field. +func (o *DeviceRole) SetVmRole(v bool) { + o.VmRole = &v +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *DeviceRole) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceRole) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceRole) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +353,122 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value func (o *DeviceRole) GetDeviceCount() int64 { if o == nil { @@ -269,12 +529,30 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.VmRole) { + toSerialize["vm_role"] = o.VmRole + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["device_count"] = o.DeviceCount toSerialize["virtualmachine_count"] = o.VirtualmachineCount @@ -292,9 +570,12 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "device_count", "virtualmachine_count", } @@ -328,10 +609,18 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "vm_role") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_device_role_request.go b/model_device_role_request.go index 111b389d1b..372639e957 100644 --- a/model_device_role_request.go +++ b/model_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,11 +24,11 @@ type DeviceRoleRequest struct { Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,9 +166,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -177,7 +177,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_device_status.go b/model_device_status.go index 04e480442d..ccf7bd107d 100644 --- a/model_device_status.go +++ b/model_device_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_label.go b/model_device_status_label.go index 4490be89a1..61904d51fa 100644 --- a/model_device_status_label.go +++ b/model_device_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_value.go b/model_device_status_value.go index 032b9b5b65..0ff3689a04 100644 --- a/model_device_status_value.go +++ b/model_device_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type.go b/model_device_type.go index 6b71ca2b42..4fbb38af6e 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceType type satisfies the MappedNullable interface at compile time @@ -20,15 +21,45 @@ var _ MappedNullable = &DeviceType{} // DeviceType Adds support for custom fields and tags. type DeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + FrontImage NullableString `json:"front_image,omitempty"` + RearImage NullableString `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int64 `json:"device_count"` + ConsolePortTemplateCount int32 `json:"console_port_template_count"` + ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"` + PowerPortTemplateCount int32 `json:"power_port_template_count"` + PowerOutletTemplateCount int32 `json:"power_outlet_template_count"` + InterfaceTemplateCount int32 `json:"interface_template_count"` + FrontPortTemplateCount int32 `json:"front_port_template_count"` + RearPortTemplateCount int32 `json:"rear_port_template_count"` + DeviceBayTemplateCount int32 `json:"device_bay_template_count"` + ModuleBayTemplateCount int32 `json:"module_bay_template_count"` + InventoryItemTemplateCount int32 `json:"inventory_item_template_count"` + AdditionalProperties map[string]interface{} } type _DeviceType DeviceType @@ -37,15 +68,30 @@ type _DeviceType DeviceType // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64) *DeviceType { +func NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType { this := DeviceType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight + this.Created = created + this.LastUpdated = lastUpdated this.DeviceCount = deviceCount + this.ConsolePortTemplateCount = consolePortTemplateCount + this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount + this.PowerPortTemplateCount = powerPortTemplateCount + this.PowerOutletTemplateCount = powerOutletTemplateCount + this.InterfaceTemplateCount = interfaceTemplateCount + this.FrontPortTemplateCount = frontPortTemplateCount + this.RearPortTemplateCount = rearPortTemplateCount + this.DeviceBayTemplateCount = deviceBayTemplateCount + this.ModuleBayTemplateCount = moduleBayTemplateCount + this.InventoryItemTemplateCount = inventoryItemTemplateCount return &this } @@ -54,6 +100,8 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur // but it doesn't guarantee that properties required by API are set func NewDeviceTypeWithDefaults() *DeviceType { this := DeviceType{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -105,6 +153,30 @@ func (o *DeviceType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceType) GetDisplay() string { if o == nil { @@ -130,9 +202,9 @@ func (o *DeviceType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *DeviceType) GetManufacturer() Manufacturer { +func (o *DeviceType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -141,7 +213,7 @@ func (o *DeviceType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -149,10 +221,53 @@ func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *DeviceType) SetManufacturer(v Manufacturer) { +func (o *DeviceType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetDefaultPlatform() BriefPlatform { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatform + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceType) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatform and assigns it to the DefaultPlatform field. +func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceType) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceType) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceType) GetModel() string { if o == nil { @@ -201,6 +316,392 @@ func (o *DeviceType) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceType) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceType) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceType) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceType) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceType) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceType) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceType) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceType) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceType) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceType) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceType) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetAirflow() DeviceTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeAirflow and assigns it to the Airflow field. +func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetFrontImage() string { + if o == nil || IsNil(o.FrontImage.Get()) { + var ret string + return ret + } + return *o.FrontImage.Get() +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetFrontImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FrontImage.Get(), o.FrontImage.IsSet() +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceType) HasFrontImage() bool { + if o != nil && o.FrontImage.IsSet() { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given NullableString and assigns it to the FrontImage field. +func (o *DeviceType) SetFrontImage(v string) { + o.FrontImage.Set(&v) +} + +// SetFrontImageNil sets the value for FrontImage to be an explicit nil +func (o *DeviceType) SetFrontImageNil() { + o.FrontImage.Set(nil) +} + +// UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +func (o *DeviceType) UnsetFrontImage() { + o.FrontImage.Unset() +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetRearImage() string { + if o == nil || IsNil(o.RearImage.Get()) { + var ret string + return ret + } + return *o.RearImage.Get() +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetRearImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RearImage.Get(), o.RearImage.IsSet() +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceType) HasRearImage() bool { + if o != nil && o.RearImage.IsSet() { + return true + } + + return false +} + +// SetRearImage gets a reference to the given NullableString and assigns it to the RearImage field. +func (o *DeviceType) SetRearImage(v string) { + o.RearImage.Set(&v) +} + +// SetRearImageNil sets the value for RearImage to be an explicit nil +func (o *DeviceType) SetRearImageNil() { + o.RearImage.Set(nil) +} + +// UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil +func (o *DeviceType) UnsetRearImage() { + o.RearImage.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -233,6 +734,154 @@ func (o *DeviceType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value func (o *DeviceType) GetDeviceCount() int64 { if o == nil { @@ -257,6 +906,246 @@ func (o *DeviceType) SetDeviceCount(v int64) { o.DeviceCount = v } +// GetConsolePortTemplateCount returns the ConsolePortTemplateCount field value +func (o *DeviceType) GetConsolePortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsolePortTemplateCount +} + +// GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortTemplateCount, true +} + +// SetConsolePortTemplateCount sets field value +func (o *DeviceType) SetConsolePortTemplateCount(v int32) { + o.ConsolePortTemplateCount = v +} + +// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value +func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortTemplateCount +} + +// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortTemplateCount, true +} + +// SetConsoleServerPortTemplateCount sets field value +func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { + o.ConsoleServerPortTemplateCount = v +} + +// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value +func (o *DeviceType) GetPowerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerPortTemplateCount +} + +// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerPortTemplateCount, true +} + +// SetPowerPortTemplateCount sets field value +func (o *DeviceType) SetPowerPortTemplateCount(v int32) { + o.PowerPortTemplateCount = v +} + +// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value +func (o *DeviceType) GetPowerOutletTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerOutletTemplateCount +} + +// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerOutletTemplateCount, true +} + +// SetPowerOutletTemplateCount sets field value +func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { + o.PowerOutletTemplateCount = v +} + +// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value +func (o *DeviceType) GetInterfaceTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceTemplateCount +} + +// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceTemplateCount, true +} + +// SetInterfaceTemplateCount sets field value +func (o *DeviceType) SetInterfaceTemplateCount(v int32) { + o.InterfaceTemplateCount = v +} + +// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value +func (o *DeviceType) GetFrontPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortTemplateCount +} + +// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortTemplateCount, true +} + +// SetFrontPortTemplateCount sets field value +func (o *DeviceType) SetFrontPortTemplateCount(v int32) { + o.FrontPortTemplateCount = v +} + +// GetRearPortTemplateCount returns the RearPortTemplateCount field value +func (o *DeviceType) GetRearPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortTemplateCount +} + +// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortTemplateCount, true +} + +// SetRearPortTemplateCount sets field value +func (o *DeviceType) SetRearPortTemplateCount(v int32) { + o.RearPortTemplateCount = v +} + +// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value +func (o *DeviceType) GetDeviceBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayTemplateCount +} + +// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayTemplateCount, true +} + +// SetDeviceBayTemplateCount sets field value +func (o *DeviceType) SetDeviceBayTemplateCount(v int32) { + o.DeviceBayTemplateCount = v +} + +// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value +func (o *DeviceType) GetModuleBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayTemplateCount +} + +// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayTemplateCount, true +} + +// SetModuleBayTemplateCount sets field value +func (o *DeviceType) SetModuleBayTemplateCount(v int32) { + o.ModuleBayTemplateCount = v +} + +// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value +func (o *DeviceType) GetInventoryItemTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemTemplateCount +} + +// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemTemplateCount, true +} + +// SetInventoryItemTemplateCount sets field value +func (o *DeviceType) SetInventoryItemTemplateCount(v int32) { + o.InventoryItemTemplateCount = v +} + func (o DeviceType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -269,14 +1158,69 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.FrontImage.IsSet() { + toSerialize["front_image"] = o.FrontImage.Get() + } + if o.RearImage.IsSet() { + toSerialize["rear_image"] = o.RearImage.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["device_count"] = o.DeviceCount + toSerialize["console_port_template_count"] = o.ConsolePortTemplateCount + toSerialize["console_server_port_template_count"] = o.ConsoleServerPortTemplateCount + toSerialize["power_port_template_count"] = o.PowerPortTemplateCount + toSerialize["power_outlet_template_count"] = o.PowerOutletTemplateCount + toSerialize["interface_template_count"] = o.InterfaceTemplateCount + toSerialize["front_port_template_count"] = o.FrontPortTemplateCount + toSerialize["rear_port_template_count"] = o.RearPortTemplateCount + toSerialize["device_bay_template_count"] = o.DeviceBayTemplateCount + toSerialize["module_bay_template_count"] = o.ModuleBayTemplateCount + toSerialize["inventory_item_template_count"] = o.InventoryItemTemplateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -292,11 +1236,24 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "manufacturer", "model", "slug", + "created", + "last_updated", "device_count", + "console_port_template_count", + "console_server_port_template_count", + "power_port_template_count", + "power_outlet_template_count", + "interface_template_count", + "front_port_template_count", + "rear_port_template_count", + "device_bay_template_count", + "module_bay_template_count", + "inventory_item_template_count", } allProperties := make(map[string]interface{}) @@ -328,12 +1285,39 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "console_port_template_count") + delete(additionalProperties, "console_server_port_template_count") + delete(additionalProperties, "power_port_template_count") + delete(additionalProperties, "power_outlet_template_count") + delete(additionalProperties, "interface_template_count") + delete(additionalProperties, "front_port_template_count") + delete(additionalProperties, "rear_port_template_count") + delete(additionalProperties, "device_bay_template_count") + delete(additionalProperties, "module_bay_template_count") + delete(additionalProperties, "inventory_item_template_count") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go new file mode 100644 index 0000000000..ee6c423c3c --- /dev/null +++ b/model_device_type_airflow.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeAirflow{} + +// DeviceTypeAirflow struct for DeviceTypeAirflow +type DeviceTypeAirflow struct { + Value *DeviceAirflowValue `json:"value,omitempty"` + Label *DeviceAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeAirflow DeviceTypeAirflow + +// NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeAirflow() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue { + if o == nil || IsNil(o.Value) { + var ret DeviceAirflowValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceAirflowValue and assigns it to the Value field. +func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceAirflowLabel and assigns it to the Label field. +func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) { + o.Label = &v +} + +func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeAirflow := _DeviceTypeAirflow{} + + err = json.Unmarshal(data, &varDeviceTypeAirflow) + + if err != nil { + return err + } + + *o = DeviceTypeAirflow(varDeviceTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeAirflow struct { + value *DeviceTypeAirflow + isSet bool +} + +func (v NullableDeviceTypeAirflow) Get() *DeviceTypeAirflow { + return v.value +} + +func (v *NullableDeviceTypeAirflow) Set(val *DeviceTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeAirflow(val *DeviceTypeAirflow) *NullableDeviceTypeAirflow { + return &NullableDeviceTypeAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_request.go b/model_device_type_request.go index f72377aaa0..08c2fd2348 100644 --- a/model_device_type_request.go +++ b/model_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "os" ) // checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time @@ -20,10 +21,27 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,11 +51,13 @@ type _DeviceTypeRequest DeviceTypeRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *DeviceTypeRequest { +func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest { this := DeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -46,13 +66,15 @@ func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug s // but it doesn't guarantee that properties required by API are set func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest { this := DeviceTypeRequest{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } // GetManufacturer returns the Manufacturer field value -func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -61,7 +83,7 @@ func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -69,10 +91,53 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatformRequest + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceTypeRequest) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceTypeRequest) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceTypeRequest) GetModel() string { if o == nil { @@ -121,6 +186,370 @@ func (o *DeviceTypeRequest) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceTypeRequest) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceTypeRequest) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeRequestSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeRequestSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetFrontImage() *os.File { + if o == nil || IsNil(o.FrontImage) { + var ret *os.File + return ret + } + return *o.FrontImage +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool) { + if o == nil || IsNil(o.FrontImage) { + return nil, false + } + return o.FrontImage, true +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasFrontImage() bool { + if o != nil && !IsNil(o.FrontImage) { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given *os.File and assigns it to the FrontImage field. +func (o *DeviceTypeRequest) SetFrontImage(v *os.File) { + o.FrontImage = &v +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetRearImage() *os.File { + if o == nil || IsNil(o.RearImage) { + var ret *os.File + return ret + } + return *o.RearImage +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool) { + if o == nil || IsNil(o.RearImage) { + return nil, false + } + return o.RearImage, true +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasRearImage() bool { + if o != nil && !IsNil(o.RearImage) { + return true + } + + return false +} + +// SetRearImage gets a reference to the given *os.File and assigns it to the RearImage field. +func (o *DeviceTypeRequest) SetRearImage(v *os.File) { + o.RearImage = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -153,6 +582,102 @@ func (o *DeviceTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -164,11 +689,53 @@ func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.FrontImage) { + toSerialize["front_image"] = o.FrontImage + } + if !IsNil(o.RearImage) { + toSerialize["rear_image"] = o.RearImage + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -215,9 +782,23 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go new file mode 100644 index 0000000000..2808adfe4b --- /dev/null +++ b/model_device_type_request_airflow.go @@ -0,0 +1,122 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed +type DeviceTypeRequestAirflow string + +// List of DeviceTypeRequest_airflow +const ( + DEVICETYPEREQUESTAIRFLOW_FRONT_TO_REAR DeviceTypeRequestAirflow = "front-to-rear" + DEVICETYPEREQUESTAIRFLOW_REAR_TO_FRONT DeviceTypeRequestAirflow = "rear-to-front" + DEVICETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT DeviceTypeRequestAirflow = "left-to-right" + DEVICETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT DeviceTypeRequestAirflow = "right-to-left" + DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear" + DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive" + DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed" + DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = "" +) + +// All allowed values of DeviceTypeRequestAirflow enum +var AllowedDeviceTypeRequestAirflowEnumValues = []DeviceTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "mixed", + "", +} + +func (v *DeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestAirflow(value) + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestAirflow", value) +} + +// NewDeviceTypeRequestAirflowFromValue returns a pointer to a valid DeviceTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestAirflowFromValue(v string) (*DeviceTypeRequestAirflow, error) { + ev := DeviceTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestAirflow: valid values are %v", v, AllowedDeviceTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_airflow value +func (v DeviceTypeRequestAirflow) Ptr() *DeviceTypeRequestAirflow { + return &v +} + +type NullableDeviceTypeRequestAirflow struct { + value *DeviceTypeRequestAirflow + isSet bool +} + +func (v NullableDeviceTypeRequestAirflow) Get() *DeviceTypeRequestAirflow { + return v.value +} + +func (v *NullableDeviceTypeRequestAirflow) Set(val *DeviceTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestAirflow(val *DeviceTypeRequestAirflow) *NullableDeviceTypeRequestAirflow { + return &NullableDeviceTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_request_subdevice_role.go b/model_device_type_request_subdevice_role.go new file mode 100644 index 0000000000..b53b882fc4 --- /dev/null +++ b/model_device_type_request_subdevice_role.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestSubdeviceRole * `parent` - Parent * `child` - Child +type DeviceTypeRequestSubdeviceRole string + +// List of DeviceTypeRequest_subdevice_role +const ( + DEVICETYPEREQUESTSUBDEVICEROLE_PARENT DeviceTypeRequestSubdeviceRole = "parent" + DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child" + DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = "" +) + +// All allowed values of DeviceTypeRequestSubdeviceRole enum +var AllowedDeviceTypeRequestSubdeviceRoleEnumValues = []DeviceTypeRequestSubdeviceRole{ + "parent", + "child", + "", +} + +func (v *DeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestSubdeviceRole(value) + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestSubdeviceRole", value) +} + +// NewDeviceTypeRequestSubdeviceRoleFromValue returns a pointer to a valid DeviceTypeRequestSubdeviceRole +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestSubdeviceRoleFromValue(v string) (*DeviceTypeRequestSubdeviceRole, error) { + ev := DeviceTypeRequestSubdeviceRole(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestSubdeviceRole: valid values are %v", v, AllowedDeviceTypeRequestSubdeviceRoleEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestSubdeviceRole) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_subdevice_role value +func (v DeviceTypeRequestSubdeviceRole) Ptr() *DeviceTypeRequestSubdeviceRole { + return &v +} + +type NullableDeviceTypeRequestSubdeviceRole struct { + value *DeviceTypeRequestSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeRequestSubdeviceRole) Get() *DeviceTypeRequestSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Set(val *DeviceTypeRequestSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestSubdeviceRole(val *DeviceTypeRequestSubdeviceRole) *NullableDeviceTypeRequestSubdeviceRole { + return &NullableDeviceTypeRequestSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_request_weight_unit.go b/model_device_type_request_weight_unit.go new file mode 100644 index 0000000000..c3c8d19685 --- /dev/null +++ b/model_device_type_request_weight_unit.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestWeightUnit * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeRequestWeightUnit string + +// List of DeviceTypeRequest_weight_unit +const ( + DEVICETYPEREQUESTWEIGHTUNIT_KG DeviceTypeRequestWeightUnit = "kg" + DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g" + DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb" + DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz" + DEVICETYPEREQUESTWEIGHTUNIT_EMPTY DeviceTypeRequestWeightUnit = "" +) + +// All allowed values of DeviceTypeRequestWeightUnit enum +var AllowedDeviceTypeRequestWeightUnitEnumValues = []DeviceTypeRequestWeightUnit{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestWeightUnit(value) + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestWeightUnit", value) +} + +// NewDeviceTypeRequestWeightUnitFromValue returns a pointer to a valid DeviceTypeRequestWeightUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestWeightUnitFromValue(v string) (*DeviceTypeRequestWeightUnit, error) { + ev := DeviceTypeRequestWeightUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestWeightUnit: valid values are %v", v, AllowedDeviceTypeRequestWeightUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestWeightUnit) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_weight_unit value +func (v DeviceTypeRequestWeightUnit) Ptr() *DeviceTypeRequestWeightUnit { + return &v +} + +type NullableDeviceTypeRequestWeightUnit struct { + value *DeviceTypeRequestWeightUnit + isSet bool +} + +func (v NullableDeviceTypeRequestWeightUnit) Get() *DeviceTypeRequestWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeRequestWeightUnit) Set(val *DeviceTypeRequestWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestWeightUnit(val *DeviceTypeRequestWeightUnit) *NullableDeviceTypeRequestWeightUnit { + return &NullableDeviceTypeRequestWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_subdevice_role.go b/model_device_type_subdevice_role.go new file mode 100644 index 0000000000..46b5a8f681 --- /dev/null +++ b/model_device_type_subdevice_role.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeSubdeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeSubdeviceRole{} + +// DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole +type DeviceTypeSubdeviceRole struct { + Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` + Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeSubdeviceRole DeviceTypeSubdeviceRole + +// NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeSubdeviceRoleValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeSubdeviceRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeSubdeviceRoleValue and assigns it to the Value field. +func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeSubdeviceRoleLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeSubdeviceRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeSubdeviceRoleLabel and assigns it to the Label field. +func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) { + o.Label = &v +} + +func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeSubdeviceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeSubdeviceRole := _DeviceTypeSubdeviceRole{} + + err = json.Unmarshal(data, &varDeviceTypeSubdeviceRole) + + if err != nil { + return err + } + + *o = DeviceTypeSubdeviceRole(varDeviceTypeSubdeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeSubdeviceRole struct { + value *DeviceTypeSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRole) Get() *DeviceTypeSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRole) Set(val *DeviceTypeSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRole(val *DeviceTypeSubdeviceRole) *NullableDeviceTypeSubdeviceRole { + return &NullableDeviceTypeSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go new file mode 100644 index 0000000000..043957dca2 --- /dev/null +++ b/model_device_type_subdevice_role_label.go @@ -0,0 +1,110 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleLabel the model 'DeviceTypeSubdeviceRoleLabel' +type DeviceTypeSubdeviceRoleLabel string + +// List of DeviceType_subdevice_role_label +const ( + DEVICETYPESUBDEVICEROLELABEL_PARENT DeviceTypeSubdeviceRoleLabel = "Parent" + DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child" +) + +// All allowed values of DeviceTypeSubdeviceRoleLabel enum +var AllowedDeviceTypeSubdeviceRoleLabelEnumValues = []DeviceTypeSubdeviceRoleLabel{ + "Parent", + "Child", +} + +func (v *DeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleLabel(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleLabel", value) +} + +// NewDeviceTypeSubdeviceRoleLabelFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleLabelFromValue(v string) (*DeviceTypeSubdeviceRoleLabel, error) { + ev := DeviceTypeSubdeviceRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleLabel: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_label value +func (v DeviceTypeSubdeviceRoleLabel) Ptr() *DeviceTypeSubdeviceRoleLabel { + return &v +} + +type NullableDeviceTypeSubdeviceRoleLabel struct { + value *DeviceTypeSubdeviceRoleLabel + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) Get() *DeviceTypeSubdeviceRoleLabel { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Set(val *DeviceTypeSubdeviceRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleLabel(val *DeviceTypeSubdeviceRoleLabel) *NullableDeviceTypeSubdeviceRoleLabel { + return &NullableDeviceTypeSubdeviceRoleLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_subdevice_role_value.go b/model_device_type_subdevice_role_value.go new file mode 100644 index 0000000000..2b98337795 --- /dev/null +++ b/model_device_type_subdevice_role_value.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleValue * `parent` - Parent * `child` - Child +type DeviceTypeSubdeviceRoleValue string + +// List of DeviceType_subdevice_role_value +const ( + DEVICETYPESUBDEVICEROLEVALUE_PARENT DeviceTypeSubdeviceRoleValue = "parent" + DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child" + DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = "" +) + +// All allowed values of DeviceTypeSubdeviceRoleValue enum +var AllowedDeviceTypeSubdeviceRoleValueEnumValues = []DeviceTypeSubdeviceRoleValue{ + "parent", + "child", + "", +} + +func (v *DeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleValue(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleValue", value) +} + +// NewDeviceTypeSubdeviceRoleValueFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleValueFromValue(v string) (*DeviceTypeSubdeviceRoleValue, error) { + ev := DeviceTypeSubdeviceRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleValue: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_value value +func (v DeviceTypeSubdeviceRoleValue) Ptr() *DeviceTypeSubdeviceRoleValue { + return &v +} + +type NullableDeviceTypeSubdeviceRoleValue struct { + value *DeviceTypeSubdeviceRoleValue + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleValue) Get() *DeviceTypeSubdeviceRoleValue { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Set(val *DeviceTypeSubdeviceRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleValue(val *DeviceTypeSubdeviceRoleValue) *NullableDeviceTypeSubdeviceRoleValue { + return &NullableDeviceTypeSubdeviceRoleValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_weight_unit.go b/model_device_type_weight_unit.go new file mode 100644 index 0000000000..4226958240 --- /dev/null +++ b/model_device_type_weight_unit.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeWeightUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeWeightUnit{} + +// DeviceTypeWeightUnit struct for DeviceTypeWeightUnit +type DeviceTypeWeightUnit struct { + Value *DeviceTypeWeightUnitValue `json:"value,omitempty"` + Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeWeightUnit DeviceTypeWeightUnit + +// NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeWeightUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the Value field. +func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeWeightUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeWeightUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeWeightUnitLabel and assigns it to the Label field. +func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) { + o.Label = &v +} + +func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeWeightUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeWeightUnit) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeWeightUnit := _DeviceTypeWeightUnit{} + + err = json.Unmarshal(data, &varDeviceTypeWeightUnit) + + if err != nil { + return err + } + + *o = DeviceTypeWeightUnit(varDeviceTypeWeightUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeWeightUnit struct { + value *DeviceTypeWeightUnit + isSet bool +} + +func (v NullableDeviceTypeWeightUnit) Get() *DeviceTypeWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeWeightUnit) Set(val *DeviceTypeWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnit(val *DeviceTypeWeightUnit) *NullableDeviceTypeWeightUnit { + return &NullableDeviceTypeWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go new file mode 100644 index 0000000000..20a3372ce9 --- /dev/null +++ b/model_device_type_weight_unit_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitLabel the model 'DeviceTypeWeightUnitLabel' +type DeviceTypeWeightUnitLabel string + +// List of DeviceType_weight_unit_label +const ( + DEVICETYPEWEIGHTUNITLABEL_KILOGRAMS DeviceTypeWeightUnitLabel = "Kilograms" + DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams" + DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds" + DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces" +) + +// All allowed values of DeviceTypeWeightUnitLabel enum +var AllowedDeviceTypeWeightUnitLabelEnumValues = []DeviceTypeWeightUnitLabel{ + "Kilograms", + "Grams", + "Pounds", + "Ounces", +} + +func (v *DeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitLabel(value) + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitLabel", value) +} + +// NewDeviceTypeWeightUnitLabelFromValue returns a pointer to a valid DeviceTypeWeightUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitLabelFromValue(v string) (*DeviceTypeWeightUnitLabel, error) { + ev := DeviceTypeWeightUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitLabel: valid values are %v", v, AllowedDeviceTypeWeightUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_label value +func (v DeviceTypeWeightUnitLabel) Ptr() *DeviceTypeWeightUnitLabel { + return &v +} + +type NullableDeviceTypeWeightUnitLabel struct { + value *DeviceTypeWeightUnitLabel + isSet bool +} + +func (v NullableDeviceTypeWeightUnitLabel) Get() *DeviceTypeWeightUnitLabel { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitLabel) Set(val *DeviceTypeWeightUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitLabel(val *DeviceTypeWeightUnitLabel) *NullableDeviceTypeWeightUnitLabel { + return &NullableDeviceTypeWeightUnitLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_type_weight_unit_value.go b/model_device_type_weight_unit_value.go new file mode 100644 index 0000000000..eb0590007e --- /dev/null +++ b/model_device_type_weight_unit_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitValue * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeWeightUnitValue string + +// List of DeviceType_weight_unit_value +const ( + DEVICETYPEWEIGHTUNITVALUE_KG DeviceTypeWeightUnitValue = "kg" + DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g" + DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb" + DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz" + DEVICETYPEWEIGHTUNITVALUE_EMPTY DeviceTypeWeightUnitValue = "" +) + +// All allowed values of DeviceTypeWeightUnitValue enum +var AllowedDeviceTypeWeightUnitValueEnumValues = []DeviceTypeWeightUnitValue{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitValue(value) + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitValue", value) +} + +// NewDeviceTypeWeightUnitValueFromValue returns a pointer to a valid DeviceTypeWeightUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitValueFromValue(v string) (*DeviceTypeWeightUnitValue, error) { + ev := DeviceTypeWeightUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitValue: valid values are %v", v, AllowedDeviceTypeWeightUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_value value +func (v DeviceTypeWeightUnitValue) Ptr() *DeviceTypeWeightUnitValue { + return &v +} + +type NullableDeviceTypeWeightUnitValue struct { + value *DeviceTypeWeightUnitValue + isSet bool +} + +func (v NullableDeviceTypeWeightUnitValue) Get() *DeviceTypeWeightUnitValue { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitValue) Set(val *DeviceTypeWeightUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitValue(val *DeviceTypeWeightUnitValue) *NullableDeviceTypeWeightUnitValue { + return &NullableDeviceTypeWeightUnitValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index f4dfc538e1..607416f4d6 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,43 +21,44 @@ var _ MappedNullable = &DeviceWithConfigContext{} // DeviceWithConfigContext Adds support for custom fields and tags. type DeviceWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceType `json:"device_type"` + Role BriefDeviceRole `json:"role"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` - ConfigContext interface{} `json:"config_context"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + ConfigContext interface{} `json:"config_context"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -83,10 +84,11 @@ type _DeviceWithConfigContext DeviceWithConfigContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.DeviceType = deviceType this.Role = role @@ -165,6 +167,30 @@ func (o *DeviceWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceWithConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceWithConfigContext) GetDisplay() string { if o == nil { @@ -233,9 +259,9 @@ func (o *DeviceWithConfigContext) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { +func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -244,7 +270,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -252,14 +278,14 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) { +func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContext) GetRole() DeviceRole { +func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { if o == nil { - var ret DeviceRole + var ret BriefDeviceRole return ret } @@ -268,7 +294,7 @@ func (o *DeviceWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -276,14 +302,14 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { } // SetRole sets field value -func (o *DeviceWithConfigContext) SetRole(v DeviceRole) { +func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetTenant() Tenant { +func (o *DeviceWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -292,7 +318,7 @@ func (o *DeviceWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -308,8 +334,8 @@ func (o *DeviceWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *DeviceWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -324,9 +350,9 @@ func (o *DeviceWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPlatform() Platform { +func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -335,7 +361,7 @@ func (o *DeviceWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -351,8 +377,8 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *DeviceWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -442,9 +468,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContext) GetSite() Site { +func (o *DeviceWithConfigContext) GetSite() BriefSite { if o == nil { - var ret Site + var ret BriefSite return ret } @@ -453,7 +479,7 @@ func (o *DeviceWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -461,14 +487,14 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContext) SetSite(v Site) { +func (o *DeviceWithConfigContext) SetSite(v BriefSite) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetLocation() Location { +func (o *DeviceWithConfigContext) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -477,7 +503,7 @@ func (o *DeviceWithConfigContext) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool) { +func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -493,8 +519,8 @@ func (o *DeviceWithConfigContext) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *DeviceWithConfigContext) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -509,9 +535,9 @@ func (o *DeviceWithConfigContext) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetRack() Rack { +func (o *DeviceWithConfigContext) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -520,7 +546,7 @@ func (o *DeviceWithConfigContext) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool) { +func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -536,8 +562,8 @@ func (o *DeviceWithConfigContext) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *DeviceWithConfigContext) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *DeviceWithConfigContext) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -803,10 +829,10 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -816,7 +842,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -824,14 +850,14 @@ func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -840,7 +866,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -856,8 +882,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -872,9 +898,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -883,7 +909,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -899,8 +925,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -915,9 +941,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetOobIp() IPAddress { +func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -926,7 +952,7 @@ func (o *DeviceWithConfigContext) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -942,8 +968,8 @@ func (o *DeviceWithConfigContext) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -958,9 +984,9 @@ func (o *DeviceWithConfigContext) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetCluster() Cluster { +func (o *DeviceWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -969,7 +995,7 @@ func (o *DeviceWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -985,8 +1011,8 @@ func (o *DeviceWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *DeviceWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -1001,9 +1027,9 @@ func (o *DeviceWithConfigContext) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { +func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1012,7 +1038,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1028,8 +1054,8 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1194,9 +1220,9 @@ func (o *DeviceWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1205,7 +1231,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1221,8 +1247,8 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1663,6 +1689,7 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1777,6 +1804,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device_type", "role", @@ -1827,6 +1855,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go index b259fc842e..75a1b84472 100644 --- a/model_device_with_config_context_request.go +++ b/model_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFaceValue `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFaceValue `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -124,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -135,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -143,14 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, } // SetDeviceType sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -167,14 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) } // SetRole sets field value -func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -183,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -199,8 +199,8 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -242,8 +242,8 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -333,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -344,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -368,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -384,8 +384,8 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -400,9 +400,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -411,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -427,8 +427,8 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -668,9 +668,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -679,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -695,8 +695,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -711,9 +711,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -722,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -738,8 +738,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -754,9 +754,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -765,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -781,8 +781,8 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -797,9 +797,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -808,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -824,8 +824,8 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -840,9 +840,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -851,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisReque // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -867,8 +867,8 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1033,9 +1033,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1044,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateReque // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1060,8 +1060,8 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_encryption.go b/model_encryption.go index 718a00acd8..0a51f381f4 100644 --- a/model_encryption.go +++ b/model_encryption.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end.go b/model_end.go index e5ba360cb8..eececa162d 100644 --- a/model_end.go +++ b/model_end.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end_1.go b/model_end_1.go index b71fc25b13..05bfc2b0c9 100644 --- a/model_end_1.go +++ b/model_end_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event.go b/model_event.go new file mode 100644 index 0000000000..95efbf9e7e --- /dev/null +++ b/model_event.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// Event * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type Event string + +// List of Event +const ( + EVENT_OBJECT_CREATED Event = "object_created" + EVENT_OBJECT_UPDATED Event = "object_updated" + EVENT_OBJECT_DELETED Event = "object_deleted" + EVENT_JOB_STARTED Event = "job_started" + EVENT_JOB_COMPLETED Event = "job_completed" + EVENT_JOB_FAILED Event = "job_failed" + EVENT_JOB_ERRORED Event = "job_errored" +) + +// All allowed values of Event enum +var AllowedEventEnumValues = []Event{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *Event) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Event(value) + for _, existing := range AllowedEventEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Event", value) +} + +// NewEventFromValue returns a pointer to a valid Event +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventFromValue(v string) (*Event, error) { + ev := Event(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Event: valid values are %v", v, AllowedEventEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Event) IsValid() bool { + for _, existing := range AllowedEventEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Event value +func (v Event) Ptr() *Event { + return &v +} + +type NullableEvent struct { + value *Event + isSet bool +} + +func (v NullableEvent) Get() *Event { + return v.value +} + +func (v *NullableEvent) Set(val *Event) { + v.value = val + v.isSet = true +} + +func (v NullableEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvent(val *Event) *NullableEvent { + return &NullableEvent{value: val, isSet: true} +} + +func (v NullableEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_event_rule.go b/model_event_rule.go index b3f5d4e410..9e472b28d0 100644 --- a/model_event_rule.go +++ b/model_event_rule.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,20 +23,13 @@ var _ MappedNullable = &EventRule{} type EventRule struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + 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"` @@ -57,13 +50,15 @@ type _EventRule EventRule // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { +func NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { this := EventRule{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType this.ActionObject = actionObject @@ -128,6 +123,30 @@ func (o *EventRule) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *EventRule) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *EventRule) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *EventRule) GetDisplay() string { if o == nil { @@ -200,166 +219,6 @@ func (o *EventRule) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRule) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRule) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRule) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRule) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRule) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRule) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRule) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRule) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRule) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRule) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRule) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRule) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -392,6 +251,30 @@ func (o *EventRule) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetConditions() interface{} { if o == nil { @@ -700,27 +583,14 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -756,9 +626,11 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", + "event_types", "action_type", "action_object_type", "action_object", @@ -795,15 +667,12 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go index 1c8cb0534a..db537a54c7 100644 --- a/model_event_rule_action_type.go +++ b/model_event_rule_action_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go index d58423d475..6084a74510 100644 --- a/model_event_rule_action_type_label.go +++ b/model_event_rule_action_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,16 @@ 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" ) // All allowed values of EventRuleActionTypeLabel enum var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{ "Webhook", "Script", + "Notification", } func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go index 9c309b8d2b..33fca2a742 100644 --- a/model_event_rule_action_type_value.go +++ b/model_event_rule_action_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,19 +15,21 @@ import ( "fmt" ) -// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script +// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script * `notification` - Notification type EventRuleActionTypeValue string // List of EventRule_action_type_value const ( - EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" - EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" + EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification" ) // All allowed values of EventRuleActionTypeValue enum var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{ "webhook", "script", + "notification", } func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go new file mode 100644 index 0000000000..f73381c4ce --- /dev/null +++ b/model_event_rule_event_types_inner.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// EventRuleEventTypesInner * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type EventRuleEventTypesInner string + +// List of EventRule_event_types_inner +const ( + EVENTRULEEVENTTYPESINNER_OBJECT_CREATED EventRuleEventTypesInner = "object_created" + EVENTRULEEVENTTYPESINNER_OBJECT_UPDATED EventRuleEventTypesInner = "object_updated" + EVENTRULEEVENTTYPESINNER_OBJECT_DELETED EventRuleEventTypesInner = "object_deleted" + EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started" + EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed" + EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed" + EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored" +) + +// All allowed values of EventRuleEventTypesInner enum +var AllowedEventRuleEventTypesInnerEnumValues = []EventRuleEventTypesInner{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *EventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EventRuleEventTypesInner(value) + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EventRuleEventTypesInner", value) +} + +// NewEventRuleEventTypesInnerFromValue returns a pointer to a valid EventRuleEventTypesInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventRuleEventTypesInnerFromValue(v string) (*EventRuleEventTypesInner, error) { + ev := EventRuleEventTypesInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EventRuleEventTypesInner: valid values are %v", v, AllowedEventRuleEventTypesInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EventRuleEventTypesInner) IsValid() bool { + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EventRule_event_types_inner value +func (v EventRuleEventTypesInner) Ptr() *EventRuleEventTypesInner { + return &v +} + +type NullableEventRuleEventTypesInner struct { + value *EventRuleEventTypesInner + isSet bool +} + +func (v NullableEventRuleEventTypesInner) Get() *EventRuleEventTypesInner { + return v.value +} + +func (v *NullableEventRuleEventTypesInner) Set(val *EventRuleEventTypesInner) { + v.value = val + v.isSet = true +} + +func (v NullableEventRuleEventTypesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableEventRuleEventTypesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventRuleEventTypesInner(val *EventRuleEventTypesInner) *NullableEventRuleEventTypesInner { + return &NullableEventRuleEventTypesInner{value: val, isSet: true} +} + +func (v NullableEventRuleEventTypesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_event_rule_request.go b/model_event_rule_request.go index e9a76def0f..4efdd2165e 100644 --- a/model_event_rule_request.go +++ b/model_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &EventRuleRequest{} type EventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + 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"` @@ -50,10 +42,11 @@ type _EventRuleRequest EventRuleRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { +func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { this := EventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType return &this @@ -115,166 +108,6 @@ func (o *EventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -307,6 +140,30 @@ func (o *EventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetConditions() interface{} { if o == nil { @@ -539,24 +396,10 @@ func (o EventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -589,6 +432,7 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_type", "action_object_type", } @@ -622,12 +466,8 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_export_template.go b/model_export_template.go index e034604cdc..a4f5fc191f 100644 --- a/model_export_template.go +++ b/model_export_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ExportTemplate{} type ExportTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -34,14 +35,14 @@ type ExportTemplate struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -51,10 +52,11 @@ type _ExportTemplate ExportTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { +func NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { this := ExportTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -123,6 +125,30 @@ func (o *ExportTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ExportTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ExportTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ExportTemplate) GetDisplay() string { if o == nil { @@ -348,9 +374,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplate) GetDataSource() DataSource { +func (o *ExportTemplate) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -358,7 +384,7 @@ func (o *ExportTemplate) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) { +func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -374,8 +400,8 @@ func (o *ExportTemplate) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ExportTemplate) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ExportTemplate) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -404,9 +430,9 @@ func (o *ExportTemplate) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ExportTemplate) GetDataFile() DataFile { +func (o *ExportTemplate) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -415,7 +441,7 @@ func (o *ExportTemplate) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { +func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -423,7 +449,7 @@ func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ExportTemplate) SetDataFile(v DataFile) { +func (o *ExportTemplate) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -517,6 +543,7 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -556,6 +583,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -596,6 +624,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_export_template_request.go b/model_export_template_request.go index 16e3ea6a5c..2daa4d33cb 100644 --- a/model_export_template_request.go +++ b/model_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,8 @@ type ExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -258,9 +258,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -268,7 +268,7 @@ func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -284,8 +284,8 @@ func (o *ExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go index 549d77f709..e7a6ca182e 100644 --- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go +++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go index e06b579501..a215904e76 100644 --- a/model_extras_custom_fields_list_filter_logic_parameter.go +++ b/model_extras_custom_fields_list_filter_logic_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go index 507235fe93..12a81600ed 100644 --- a/model_extras_custom_fields_list_ui_editable_parameter.go +++ b/model_extras_custom_fields_list_ui_editable_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go index 47e4aaa2bd..090c7b3143 100644 --- a/model_extras_custom_fields_list_ui_visible_parameter.go +++ b/model_extras_custom_fields_list_ui_visible_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go index db3b288e92..618602acf0 100644 --- a/model_extras_custom_links_list_button_class_parameter.go +++ b/model_extras_custom_links_list_button_class_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string // List of extras_custom_links_list_button_class_parameter const ( - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_OUTLINE_DARK ExtrasCustomLinksListButtonClassParameter = "outline-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" ) // All allowed values of ExtrasCustomLinksListButtonClassParameter enum @@ -42,12 +42,12 @@ var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomL "black", "blue", "cyan", + "default", "ghost-dark", "gray", "green", "indigo", "orange", - "outline-dark", "pink", "purple", "red", diff --git a/model_fhrp_group.go b/model_fhrp_group.go index edddea0c1c..da049c284d 100644 --- a/model_fhrp_group.go +++ b/model_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the FHRPGroup type satisfies the MappedNullable interface at compile time @@ -20,12 +21,22 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Name *string `json:"name,omitempty"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpAddresses []BriefIPAddress `json:"ip_addresses"` AdditionalProperties map[string]interface{} } @@ -35,13 +46,17 @@ type _FHRPGroup FHRPGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup { +func NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress) *FHRPGroup { this := FHRPGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Protocol = protocol this.GroupId = groupId + this.Created = created + this.LastUpdated = lastUpdated + this.IpAddresses = ipAddresses return &this } @@ -77,6 +92,38 @@ func (o *FHRPGroup) SetId(v int32) { o.Id = v } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroup) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroup) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroup) SetName(v string) { + o.Name = &v +} + // GetUrl returns the Url field value func (o *FHRPGroup) GetUrl() string { if o == nil { @@ -101,6 +148,30 @@ func (o *FHRPGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FHRPGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FHRPGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FHRPGroup) GetDisplay() string { if o == nil { @@ -126,9 +197,9 @@ func (o *FHRPGroup) SetDisplay(v string) { } // GetProtocol returns the Protocol field value -func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -137,7 +208,7 @@ func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -145,7 +216,7 @@ func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -173,6 +244,70 @@ func (o *FHRPGroup) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroup) SetAuthType(v AuthenticationType) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroup) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +340,178 @@ func (o *FHRPGroup) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroup) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroup) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroup) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *FHRPGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *FHRPGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *FHRPGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpAddresses returns the IpAddresses field value +func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress { + if o == nil { + var ret []BriefIPAddress + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetIpAddressesOk() ([]BriefIPAddress, bool) { + if o == nil { + return nil, false + } + return o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) { + o.IpAddresses = v +} + func (o FHRPGroup) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -216,13 +523,35 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +567,13 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "protocol", "group_id", + "created", + "last_updated", + "ip_addresses", } allProperties := make(map[string]interface{}) @@ -271,11 +604,21 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") + delete(additionalProperties, "name") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ip_addresses") o.AdditionalProperties = additionalProperties } diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go index d81aefa155..8f9ae4bf1d 100644 --- a/model_fhrp_group_assignment.go +++ b/model_fhrp_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &FHRPGroupAssignment{} // FHRPGroupAssignment Adds support for custom fields and tags. type FHRPGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group FHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface interface{} `json:"interface"` - Priority int32 `json:"priority"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefFHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface interface{} `json:"interface"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FHRPGroupAssignment FHRPGroupAssignment // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { +func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { this := FHRPGroupAssignment{} this.Id = id this.Url = url @@ -136,9 +136,9 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { +func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { if o == nil { - var ret FHRPGroup + var ret BriefFHRPGroup return ret } @@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { +func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { if o == nil { return nil, false } @@ -155,7 +155,7 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) { +func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) { o.Group = v } diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go index fda4826a17..a9ba01d6ae 100644 --- a/model_fhrp_group_assignment_request.go +++ b/model_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group FHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group BriefFHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { +func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { this := FHRPGroupAssignmentRequest{} this.Group = group this.InterfaceType = interfaceType @@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } @@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = v } diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go index a3fbe25685..0990f1939b 100644 --- a/model_fhrp_group_request.go +++ b/model_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,15 @@ var _ MappedNullable = &FHRPGroupRequest{} // FHRPGroupRequest Adds support for custom fields and tags. type FHRPGroupRequest struct { - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +38,7 @@ type _FHRPGroupRequest FHRPGroupRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest { +func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *FHRPGroupRequest { this := FHRPGroupRequest{} this.Protocol = protocol this.GroupId = groupId @@ -47,10 +53,42 @@ func NewFHRPGroupRequestWithDefaults() *FHRPGroupRequest { return &this } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroupRequest) SetName(v string) { + o.Name = &v +} + // GetProtocol returns the Protocol field value -func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -59,7 +97,7 @@ func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -67,7 +105,7 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -95,6 +133,70 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroupRequest) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +229,102 @@ func (o *FHRPGroupRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroupRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -137,11 +335,29 @@ func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -186,9 +402,15 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_front_port.go b/model_front_port.go index 14255269db..a4ff37bf0b 100644 --- a/model_front_port.go +++ b/model_front_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &FrontPort{} // FrontPort Adds support for custom fields and tags. type FrontPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` @@ -36,12 +37,12 @@ type FrontPort struct { RearPortPosition *int32 `json:"rear_port_position,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -56,10 +57,11 @@ type _FrontPort FrontPort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { +func NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { this := FrontPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -135,6 +137,30 @@ func (o *FrontPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FrontPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FrontPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FrontPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FrontPort) GetDisplay() string { if o == nil { @@ -160,9 +186,9 @@ func (o *FrontPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *FrontPort) GetDevice() Device { +func (o *FrontPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -171,7 +197,7 @@ func (o *FrontPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPort) GetDeviceOk() (*Device, bool) { +func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -179,14 +205,14 @@ func (o *FrontPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *FrontPort) SetDevice(v Device) { +func (o *FrontPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPort) GetModule() Module { +func (o *FrontPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -195,7 +221,7 @@ func (o *FrontPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetModuleOk() (*Module, bool) { +func (o *FrontPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -211,8 +237,8 @@ func (o *FrontPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *FrontPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *FrontPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -459,10 +485,10 @@ func (o *FrontPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *FrontPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *FrontPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -472,7 +498,7 @@ func (o *FrontPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetCableOk() (*Cable, bool) { +func (o *FrontPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -480,7 +506,7 @@ func (o *FrontPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *FrontPort) SetCable(v Cable) { +func (o *FrontPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -533,27 +559,29 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *FrontPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *FrontPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *FrontPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -708,6 +736,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -734,7 +763,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -759,6 +788,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -802,6 +832,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go index bfddbbc627..f2a25fa259 100644 --- a/model_front_port_rear_port.go +++ b/model_front_port_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ 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"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` @@ -36,10 +37,11 @@ type _FrontPortRearPort FrontPortRearPort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFrontPortRearPort(id int32, url string, display string, name string) *FrontPortRearPort { +func NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string) *FrontPortRearPort { this := FrontPortRearPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -101,6 +103,30 @@ func (o *FrontPortRearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FrontPortRearPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FrontPortRearPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FrontPortRearPort) GetDisplay() string { if o == nil { @@ -225,6 +251,7 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -248,6 +275,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -281,6 +309,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "label") diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go index efa9119db0..fecb1f8f57 100644 --- a/model_front_port_rear_port_request.go +++ b/model_front_port_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_request.go b/model_front_port_request.go index b3cc287bbe..b60b448938 100644 --- a/model_front_port_request.go +++ b/model_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -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 DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { +func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { this := FrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewFrontPortRequestWithDefaults() *FrontPortRequest { } // GetDevice returns the Device field value -func (o *FrontPortRequest) GetDevice() DeviceRequest { +func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *FrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *FrontPortRequest) SetDevice(v DeviceRequest) { +func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortRequest) GetModule() ModuleRequest { +func (o *FrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *FrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *FrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *FrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *FrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_front_port_template.go b/model_front_port_template.go index 66ed545004..8866bd4ec9 100644 --- a/model_front_port_template.go +++ b/model_front_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,22 +21,22 @@ var _ MappedNullable = &FrontPortTemplate{} // FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplate `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _FrontPortTemplate FrontPortTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { +func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { this := FrontPortTemplate{} this.Id = id this.Url = url @@ -144,9 +144,9 @@ func (o *FrontPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetDeviceType() DeviceType { +func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -155,7 +155,7 @@ func (o *FrontPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -171,8 +171,8 @@ func (o *FrontPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *FrontPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -187,9 +187,9 @@ func (o *FrontPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetModuleType() ModuleType { +func (o *FrontPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -198,7 +198,7 @@ func (o *FrontPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *FrontPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *FrontPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -342,9 +342,9 @@ func (o *FrontPortTemplate) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { +func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { if o == nil { - var ret RearPortTemplate + var ret BriefRearPortTemplate return ret } @@ -353,7 +353,7 @@ func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { +func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { if o == nil { return nil, false } @@ -361,7 +361,7 @@ func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { } // SetRearPort sets field value -func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) { +func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) { o.RearPort = v } diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go index 995c21f99c..0d79753a12 100644 --- a/model_front_port_template_request.go +++ b/model_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{} // FrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `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 RearPortTemplateRequest) *FrontPortTemplateRequest { +func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,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() DeviceTypeRequest { +func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bo } // SetRearPort sets field value -func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_front_port_type.go b/model_front_port_type.go index 17d1190463..8b92247a12 100644 --- a/model_front_port_type.go +++ b/model_front_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go index 88117ae3a6..ab707ca62e 100644 --- a/model_front_port_type_label.go +++ b/model_front_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,53 +20,61 @@ type FrontPortTypeLabel string // List of FrontPort_type_label const ( - FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" - FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" - FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" - FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" - FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" - FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" - FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" - FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" - FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" - FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" - FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" - FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" - FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" - FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" - FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" - FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" - FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" - FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" - FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" - FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" - FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" - FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" - FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" - FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" - FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" - FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" - FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" - FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" - FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" - FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" - FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" - FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" - FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" - FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" - FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" - FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" - FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" - FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" - FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" - FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" - FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" - FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" - FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" - FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" - FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" - FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" - FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" + FRONTPORTTYPELABEL__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_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB" + FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" ) // All allowed values of FrontPortTypeLabel enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{ "URM-P4", "URM-P8", "Splice", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", "Other", } diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go index 55f3bf9e53..0449b9e7d2 100644 --- a/model_front_port_type_value.go +++ b/model_front_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,58 +15,66 @@ import ( "fmt" ) -// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other +// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other type FrontPortTypeValue string // List of FrontPort_type_value const ( - FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" - FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" - FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" - FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" - FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" - FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" - FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" - FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" - FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" - FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" - FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" - FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" - FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" - FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" - FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" - FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" - FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" - FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" - FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" - FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" - FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" - FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" - FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" - FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" - FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" - FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" - FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" - FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" - FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" - FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" - FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" - FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" - FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" - FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" - FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" - FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" - FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" - FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" - FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" - FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" - FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" - FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" - FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" - FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" - FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" - FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" - FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" + FRONTPORTTYPEVALUE__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_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab" + FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" ) // All allowed values of FrontPortTypeValue enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{ "urm-p4", "urm-p8", "splice", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", "other", } diff --git a/model_generic_object.go b/model_generic_object.go new file mode 100644 index 0000000000..e40ac1015a --- /dev/null +++ b/model_generic_object.go @@ -0,0 +1,228 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the GenericObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenericObject{} + +// GenericObject Minimal representation of some generic object identified by ContentType and PK. +type GenericObject struct { + ObjectType string `json:"object_type"` + ObjectId int32 `json:"object_id"` + Object interface{} `json:"object"` + AdditionalProperties map[string]interface{} +} + +type _GenericObject GenericObject + +// NewGenericObject instantiates a new GenericObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGenericObject(objectType string, objectId int32, object interface{}) *GenericObject { + this := GenericObject{} + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + return &this +} + +// NewGenericObjectWithDefaults instantiates a new GenericObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGenericObjectWithDefaults() *GenericObject { + this := GenericObject{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *GenericObject) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *GenericObject) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *GenericObject) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *GenericObject) GetObjectId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *GenericObject) GetObjectIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *GenericObject) SetObjectId(v int32) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *GenericObject) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GenericObject) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *GenericObject) SetObject(v interface{}) { + o.Object = v +} + +func (o GenericObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenericObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GenericObject) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "object", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGenericObject := _GenericObject{} + + err = json.Unmarshal(data, &varGenericObject) + + if err != nil { + return err + } + + *o = GenericObject(varGenericObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGenericObject struct { + value *GenericObject + isSet bool +} + +func (v NullableGenericObject) Get() *GenericObject { + return v.value +} + +func (v *NullableGenericObject) Set(val *GenericObject) { + v.value = val + v.isSet = true +} + +func (v NullableGenericObject) IsSet() bool { + return v.isSet +} + +func (v *NullableGenericObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenericObject(val *GenericObject) *NullableGenericObject { + return &NullableGenericObject{value: val, isSet: true} +} + +func (v NullableGenericObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenericObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_generic_object_request.go b/model_generic_object_request.go index af5fa0e139..52eaee1b82 100644 --- a/model_generic_object_request.go +++ b/model_generic_object_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_group.go b/model_group.go index cc0cb78e9e..7053962099 100644 --- a/model_group.go +++ b/model_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &Group{} type Group struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -36,10 +37,11 @@ type _Group Group // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroup(id int32, url string, display string, name string, userCount int32) *Group { +func NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32) *Group { this := Group{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.UserCount = userCount @@ -102,6 +104,30 @@ func (o *Group) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Group) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Group) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Group) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Group) GetDisplay() string { if o == nil { @@ -250,6 +276,7 @@ func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -274,6 +301,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "user_count", @@ -308,6 +336,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_group_request.go b/model_group_request.go index a3b3fc4d92..5f8e5ef72e 100644 --- a/model_group_request.go +++ b/model_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy.go b/model_ike_policy.go index 60a1325948..99c503a99c 100644 --- a/model_ike_policy.go +++ b/model_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &IKEPolicy{} type IKEPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersion `json:"version"` - Mode IKEPolicyMode `json:"mode"` + Mode *IKEPolicyMode `json:"mode,omitempty"` Proposals []IKEProposal `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,14 +45,14 @@ type _IKEPolicy IKEPolicy // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy { +func NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime) *IKEPolicy { this := IKEPolicy{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Version = version - this.Mode = mode this.Created = created this.LastUpdated = lastUpdated return &this @@ -113,6 +114,30 @@ func (o *IKEPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IKEPolicy) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IKEPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IKEPolicy) GetDisplay() string { if o == nil { @@ -217,28 +242,36 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicy) GetMode() IKEPolicyMode { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyMode return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicy) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyMode and assigns it to the Mode field. func (o *IKEPolicy) SetMode(v IKEPolicyMode) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -465,13 +498,16 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -504,10 +540,10 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "version", - "mode", "created", "last_updated", } @@ -541,6 +577,7 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go index 561cdd0eef..151201775d 100644 --- a/model_ike_policy_mode.go +++ b/model_ike_policy_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go index 6f710f6ac2..3d53385592 100644 --- a/model_ike_policy_mode_label.go +++ b/model_ike_policy_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go index f7209d9324..c08f20fe17 100644 --- a/model_ike_policy_mode_value.go +++ b/model_ike_policy_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go index b10b248b69..68cd58f3e4 100644 --- a/model_ike_policy_request.go +++ b/model_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type IKEPolicyRequest struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersionValue `json:"version"` - Mode IKEPolicyModeValue `json:"mode"` + Mode *IKEPolicyModeValue `json:"mode,omitempty"` Proposals []int32 `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -38,11 +38,10 @@ type _IKEPolicyRequest IKEPolicyRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest { +func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue) *IKEPolicyRequest { this := IKEPolicyRequest{} this.Name = name this.Version = version - this.Mode = mode return &this } @@ -134,28 +133,36 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyModeValue return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicyRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field. func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -333,7 +340,9 @@ func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -364,7 +373,6 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "version", - "mode", } allProperties := make(map[string]interface{}) diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go index afa22c6de8..6cf10e47b1 100644 --- a/model_ike_policy_version.go +++ b/model_ike_policy_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go index 8b11ad9d66..5324f93812 100644 --- a/model_ike_policy_version_label.go +++ b/model_ike_policy_version_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go index 7abf472f2f..8f01013947 100644 --- a/model_ike_policy_version_value.go +++ b/model_ike_policy_version_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal.go b/model_ike_proposal.go index cd4eed1ca7..eefc00a5b3 100644 --- a/model_ike_proposal.go +++ b/model_ike_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &IKEProposal{} // IKEProposal Adds support for custom fields and tags. type IKEProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` - Group IKEProposalGroup `json:"group"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroup `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -46,15 +47,15 @@ type _IKEProposal IKEProposal // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { +func NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { this := IKEProposal{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group this.Created = created this.LastUpdated = lastUpdated @@ -117,6 +118,30 @@ func (o *IKEProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IKEProposal) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IKEProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IKEProposal) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IKEProposal) GetDisplay() string { if o == nil { @@ -245,28 +270,36 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithm return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposal) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -496,6 +529,7 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -503,7 +537,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -534,11 +570,11 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", "created", "last_updated", @@ -573,6 +609,7 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go index beeab83348..d43da63765 100644 --- a/model_ike_proposal_authentication_algorithm.go +++ b/model_ike_proposal_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go index ed37a3e8d4..6726ed8a23 100644 --- a/model_ike_proposal_authentication_algorithm_label.go +++ b/model_ike_proposal_authentication_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go index ac2ff5a013..531a086600 100644 --- a/model_ike_proposal_authentication_algorithm_value.go +++ b/model_ike_proposal_authentication_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go index ce563d6e21..c20c8d0731 100644 --- a/model_ike_proposal_authentication_method.go +++ b/model_ike_proposal_authentication_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go index 35519ca6b0..50f06871a1 100644 --- a/model_ike_proposal_authentication_method_label.go +++ b/model_ike_proposal_authentication_method_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go index c1e5b8266c..a5361b0763 100644 --- a/model_ike_proposal_authentication_method_value.go +++ b/model_ike_proposal_authentication_method_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go index 208e101996..5fb37a4e6f 100644 --- a/model_ike_proposal_encryption_algorithm.go +++ b/model_ike_proposal_encryption_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go index 4485f50f2c..138e88d020 100644 --- a/model_ike_proposal_encryption_algorithm_label.go +++ b/model_ike_proposal_encryption_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go index f152c2e121..ca9314a83e 100644 --- a/model_ike_proposal_encryption_algorithm_value.go +++ b/model_ike_proposal_encryption_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go index b4e5729484..4e1a0a1062 100644 --- a/model_ike_proposal_group.go +++ b/model_ike_proposal_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go index acb825e47a..d692923274 100644 --- a/model_ike_proposal_group_label.go +++ b/model_ike_proposal_group_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go index 482fc4b74d..b7aef39a7f 100644 --- a/model_ike_proposal_group_value.go +++ b/model_ike_proposal_group_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go index 532a3552d5..618c2a4fd1 100644 --- a/model_ike_proposal_request.go +++ b/model_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &IKEProposalRequest{} // IKEProposalRequest Adds support for custom fields and tags. type IKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` - Group IKEProposalGroupValue `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroupValue `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,12 +40,11 @@ type _IKEProposalRequest IKEProposalRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { +func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { this := IKEProposalRequest{} this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group return &this } @@ -162,28 +161,36 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithmValue return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -365,7 +372,9 @@ func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -395,7 +404,6 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", } diff --git a/model_image_attachment.go b/model_image_attachment.go index 3eef1f2cd9..ee5f25445b 100644 --- a/model_image_attachment.go +++ b/model_image_attachment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go index 26ce0cc75e..56ae5e0a4f 100644 --- a/model_image_attachment_request.go +++ b/model_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,8 +25,6 @@ type ImageAttachmentRequest struct { ObjectId int64 `json:"object_id"` Name *string `json:"name,omitempty"` Image *os.File `json:"image"` - ImageHeight int32 `json:"image_height"` - ImageWidth int32 `json:"image_width"` AdditionalProperties map[string]interface{} } @@ -36,13 +34,11 @@ type _ImageAttachmentRequest ImageAttachmentRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest { +func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File) *ImageAttachmentRequest { this := ImageAttachmentRequest{} this.ObjectType = objectType this.ObjectId = objectId this.Image = image - this.ImageHeight = imageHeight - this.ImageWidth = imageWidth return &this } @@ -158,54 +154,6 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) { o.Image = v } -// GetImageHeight returns the ImageHeight field value -func (o *ImageAttachmentRequest) GetImageHeight() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageHeight, true -} - -// SetImageHeight sets field value -func (o *ImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = v -} - -// GetImageWidth returns the ImageWidth field value -func (o *ImageAttachmentRequest) GetImageWidth() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageWidth, true -} - -// SetImageWidth sets field value -func (o *ImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = v -} - func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,8 +170,6 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name } toSerialize["image"] = o.Image - toSerialize["image_height"] = o.ImageHeight - toSerialize["image_width"] = o.ImageWidth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,8 +186,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { "object_type", "object_id", "image", - "image_height", - "image_width", } allProperties := make(map[string]interface{}) @@ -275,8 +219,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_interface.go b/model_interface.go index 8990492b10..1bc3f59d3c 100644 --- a/model_interface.go +++ b/model_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &Interface{} // Interface Adds support for custom fields and tags. type Interface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` @@ -51,31 +52,31 @@ type Interface struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,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"` // Treat as if a cable is connected MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` + Cable NullableBriefCable `json:"cable"` CableEnd string `json:"cable_end"` WirelessLink NullableNestedWirelessLink `json:"wireless_link"` LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` - Occupied bool `json:"_occupied"` + LinkPeersType NullableString `json:"link_peers_type"` + WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -85,10 +86,11 @@ type _Interface Interface // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { +func NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { this := Interface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -166,6 +168,30 @@ func (o *Interface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Interface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Interface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Interface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Interface) GetDisplay() string { if o == nil { @@ -191,9 +217,9 @@ func (o *Interface) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Interface) GetDevice() Device { +func (o *Interface) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -202,7 +228,7 @@ func (o *Interface) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Interface) GetDeviceOk() (*Device, bool) { +func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -210,7 +236,7 @@ func (o *Interface) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Interface) SetDevice(v Device) { +func (o *Interface) SetDevice(v BriefDevice) { o.Device = v } @@ -247,9 +273,9 @@ func (o *Interface) SetVdcs(v []VirtualDeviceContext) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetModule() Module { +func (o *Interface) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -258,7 +284,7 @@ func (o *Interface) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetModuleOk() (*Module, bool) { +func (o *Interface) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -274,8 +300,8 @@ func (o *Interface) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *Interface) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *Interface) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -1099,9 +1125,9 @@ func (o *Interface) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetUntaggedVlan() VLAN { +func (o *Interface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -1110,7 +1136,7 @@ func (o *Interface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -1126,8 +1152,8 @@ func (o *Interface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *Interface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *Interface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -1206,10 +1232,10 @@ func (o *Interface) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *Interface) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *Interface) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -1219,7 +1245,7 @@ func (o *Interface) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetCableOk() (*Cable, bool) { +func (o *Interface) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -1227,7 +1253,7 @@ func (o *Interface) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *Interface) SetCable(v Cable) { +func (o *Interface) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -1306,27 +1332,29 @@ func (o *Interface) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *Interface) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetWirelessLans returns the WirelessLans field value if set, zero value otherwise. @@ -1362,9 +1390,9 @@ func (o *Interface) SetWirelessLans(v []WirelessLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetVrf() VRF { +func (o *Interface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -1373,7 +1401,7 @@ func (o *Interface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetVrfOk() (*VRF, bool) { +func (o *Interface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -1389,8 +1417,8 @@ func (o *Interface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Interface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Interface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -1405,10 +1433,10 @@ func (o *Interface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *Interface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -1418,7 +1446,7 @@ func (o *Interface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -1426,11 +1454,12 @@ func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *Interface) SetL2vpnTermination(v L2VPNTermination) { +func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *Interface) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -1442,8 +1471,9 @@ func (o *Interface) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -1455,27 +1485,29 @@ func (o *Interface) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *Interface) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -1702,6 +1734,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { @@ -1785,7 +1818,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["cable_end"] = o.CableEnd toSerialize["wireless_link"] = o.WirelessLink.Get() toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } @@ -1793,8 +1826,10 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["vrf"] = o.Vrf.Get() } toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -1822,6 +1857,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -1871,6 +1907,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "vdcs") diff --git a/model_interface_duplex.go b/model_interface_duplex.go index aa73ec088b..20b698df96 100644 --- a/model_interface_duplex.go +++ b/model_interface_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go index eaab1a072f..b07851622f 100644 --- a/model_interface_duplex_label.go +++ b/model_interface_duplex_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go index 93e3ce1203..79448a9ede 100644 --- a/model_interface_duplex_value.go +++ b/model_interface_duplex_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode.go b/model_interface_mode.go index 9441de5dd8..64f0578368 100644 --- a/model_interface_mode.go +++ b/model_interface_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go index cde6b2ae1d..5c66f05a5a 100644 --- a/model_interface_mode_label.go +++ b/model_interface_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go index f057fe019a..919132510a 100644 --- a/model_interface_mode_value.go +++ b/model_interface_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go index 8f365d75eb..e41348fb10 100644 --- a/model_interface_poe_mode.go +++ b/model_interface_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go index 7736be9cc7..92ec5bc4ee 100644 --- a/model_interface_poe_mode_label.go +++ b/model_interface_poe_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go index 4e044ad153..cd289eb9a5 100644 --- a/model_interface_poe_mode_value.go +++ b/model_interface_poe_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go index ef7c2e113e..b0fa196bb6 100644 --- a/model_interface_poe_type.go +++ b/model_interface_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go index 21265631bd..ce53321269 100644 --- a/model_interface_poe_type_label.go +++ b/model_interface_poe_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go index d1f9f85a3b..e511ff713f 100644 --- a/model_interface_poe_type_value.go +++ b/model_interface_poe_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_request.go b/model_interface_request.go index b066995e98..57b5d34d66 100644 --- a/model_interface_request.go +++ b/model_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type InterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _InterfaceRequest InterfaceRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { +func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { this := InterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest { } // GetDevice returns the Device field value -func (o *InterfaceRequest) GetDevice() DeviceRequest { +func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *InterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InterfaceRequest) SetDevice(v DeviceRequest) { +func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetModule() ModuleRequest { +func (o *InterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *InterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *InterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *InterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *InterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *InterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetVrf() VRFRequest { +func (o *InterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *InterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *InterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *InterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go index 2cfab20fa6..b0bc7e2791 100644 --- a/model_interface_request_duplex.go +++ b/model_interface_request_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go index 6cdd517fac..7530c0c84e 100644 --- a/model_interface_rf_channel.go +++ b/model_interface_rf_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go index c6ca5df46e..296bde025f 100644 --- a/model_interface_rf_channel_label.go +++ b/model_interface_rf_channel_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go index 5a426d213f..d7a7343091 100644 --- a/model_interface_rf_channel_value.go +++ b/model_interface_rf_channel_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go index a7f8f1cd97..e93f099388 100644 --- a/model_interface_rf_role.go +++ b/model_interface_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go index 201cb2af42..04792da60e 100644 --- a/model_interface_rf_role_label.go +++ b/model_interface_rf_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go index 364371e9c3..dc2925fc0c 100644 --- a/model_interface_rf_role_value.go +++ b/model_interface_rf_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template.go b/model_interface_template.go index 37184eb6b0..dbcf9ad3f1 100644 --- a/model_interface_template.go +++ b/model_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &InterfaceTemplate{} // InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -142,9 +142,9 @@ func (o *InterfaceTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetDeviceType() DeviceType { +func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -153,7 +153,7 @@ func (o *InterfaceTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -169,8 +169,8 @@ func (o *InterfaceTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *InterfaceTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -185,9 +185,9 @@ func (o *InterfaceTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetModuleType() ModuleType { +func (o *InterfaceTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -212,8 +212,8 @@ func (o *InterfaceTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *InterfaceTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go index 7811b7e106..fcac248736 100644 --- a/model_interface_template_poe_mode.go +++ b/model_interface_template_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go index 2c1cb4d01b..07f6b4ee4b 100644 --- a/model_interface_template_poe_type.go +++ b/model_interface_template_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request.go b/model_interface_template_request.go index bea10caaf9..ea39d689bd 100644 --- a/model_interface_template_request.go +++ b/model_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplateRequest{} // InterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go index f2b93a7818..d0f660cc00 100644 --- a/model_interface_template_request_poe_mode.go +++ b/model_interface_template_request_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go index 1f35567e15..da18fde07f 100644 --- a/model_interface_template_request_poe_type.go +++ b/model_interface_template_request_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go index db39e85145..3227b7bb56 100644 --- a/model_interface_template_request_rf_role.go +++ b/model_interface_template_request_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go index 3eaf185c19..b8b4a7ab65 100644 --- a/model_interface_template_rf_role.go +++ b/model_interface_template_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type.go b/model_interface_type.go index d5a16d3e2d..c909247b09 100644 --- a/model_interface_type.go +++ b/model_interface_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type_label.go b/model_interface_type_label.go index 99dedfa786..dc6af7d8b9 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,6 +28,7 @@ const ( 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_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)" @@ -81,6 +82,7 @@ const ( 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_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" @@ -157,6 +159,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "100BASE-TX (10/100ME)", "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", + "1000BASE-TX (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", "10GBASE-T (10GE)", @@ -210,6 +213,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "IEEE 802.11ad", "IEEE 802.11ax", "IEEE 802.11ay", + "IEEE 802.11be", "IEEE 802.15.1 (Bluetooth)", "Other (Wireless)", "GSM", diff --git a/model_interface_type_value.go b/model_interface_type_value.go index 324edde787..11fa8c35d3 100644 --- a/model_interface_type_value.go +++ b/model_interface_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-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) * `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) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other type InterfaceTypeValue string // List of Interface_type_value @@ -28,6 +28,7 @@ const ( INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" + 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" @@ -81,6 +82,7 @@ const ( 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_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" @@ -157,6 +159,7 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "100base-tx", "100base-t1", "1000base-t", + "1000base-tx", "2.5gbase-t", "5gbase-t", "10gbase-t", @@ -210,6 +213,7 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "ieee802.11ad", "ieee802.11ax", "ieee802.11ay", + "ieee802.11be", "ieee802.15.1", "other-wireless", "gsm", diff --git a/model_inventory_item.go b/model_inventory_item.go index 288a4619cb..1edc76cbac 100644 --- a/model_inventory_item.go +++ b/model_inventory_item.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,17 @@ var _ MappedNullable = &InventoryItem{} // InventoryItem Adds support for custom fields and tags. type InventoryItem struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + 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"` @@ -56,10 +57,11 @@ type _InventoryItem InventoryItem // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -126,6 +128,30 @@ func (o *InventoryItem) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *InventoryItem) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *InventoryItem) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *InventoryItem) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *InventoryItem) GetDisplay() string { if o == nil { @@ -151,9 +177,9 @@ func (o *InventoryItem) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *InventoryItem) GetDevice() Device { +func (o *InventoryItem) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -162,7 +188,7 @@ func (o *InventoryItem) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItem) GetDeviceOk() (*Device, bool) { +func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -170,7 +196,7 @@ func (o *InventoryItem) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *InventoryItem) SetDevice(v Device) { +func (o *InventoryItem) SetDevice(v BriefDevice) { o.Device = v } @@ -274,9 +300,9 @@ func (o *InventoryItem) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetRole() InventoryItemRole { +func (o *InventoryItem) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -285,7 +311,7 @@ func (o *InventoryItem) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -301,8 +327,8 @@ func (o *InventoryItem) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItem) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItem) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -317,9 +343,9 @@ func (o *InventoryItem) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetManufacturer() Manufacturer { +func (o *InventoryItem) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -328,7 +354,7 @@ func (o *InventoryItem) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -344,8 +370,8 @@ func (o *InventoryItem) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItem) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItem) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } @@ -794,6 +820,7 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { @@ -857,6 +884,7 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -895,6 +923,7 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "parent") diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go index c93a233fc4..d135dd9dff 100644 --- a/model_inventory_item_request.go +++ b/model_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { - Device DeviceRequest `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -48,7 +48,7 @@ type _InventoryItemRequest InventoryItemRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest { +func NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest { this := InventoryItemRequest{} this.Device = device this.Name = name @@ -64,9 +64,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest { } // GetDevice returns the Device field value -func (o *InventoryItemRequest) GetDevice() DeviceRequest { +func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -75,7 +75,7 @@ func (o *InventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,7 +83,7 @@ func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InventoryItemRequest) SetDevice(v DeviceRequest) { +func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -187,9 +187,9 @@ func (o *InventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -198,7 +198,7 @@ func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *InventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -230,9 +230,9 @@ func (o *InventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -241,7 +241,7 @@ func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *InventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index ee6f289909..df4e46ac8b 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &InventoryItemRole{} type InventoryItemRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _InventoryItemRole InventoryItemRole // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { +func NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { this := InventoryItemRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *InventoryItemRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *InventoryItemRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *InventoryItemRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *InventoryItemRole) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go index c00674ef53..e1dfdf5f26 100644 --- a/model_inventory_item_role_request.go +++ b/model_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go index 2e41792819..ca03976ca2 100644 --- a/model_inventory_item_template.go +++ b/model_inventory_item_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,17 @@ var _ MappedNullable = &InventoryItemTemplate{} // InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -50,7 +50,7 @@ type _InventoryItemTemplate InventoryItemTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -145,9 +145,9 @@ func (o *InventoryItemTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplate) GetDeviceType() DeviceType { +func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,7 +164,7 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) { +func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } @@ -268,9 +268,9 @@ func (o *InventoryItemTemplate) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetRole() InventoryItemRole { +func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -279,7 +279,7 @@ func (o *InventoryItemTemplate) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -295,8 +295,8 @@ func (o *InventoryItemTemplate) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -311,9 +311,9 @@ func (o *InventoryItemTemplate) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { +func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -338,8 +338,8 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go index c7d639e2d8..70a5300c16 100644 --- a/model_inventory_item_template_request.go +++ b/model_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &InventoryItemTemplateRequest{} // InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string) *InventoryItemTemplateRequest { +func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest { this := InventoryItemTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,7 +77,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bo } // SetDeviceType sets field value -func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } @@ -181,9 +181,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -192,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -208,8 +208,8 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_ip_address.go b/model_ip_address.go index 5fdb687b45..1f75c72698 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the IPAddress type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &IPAddress{} // IPAddress Adds support for custom fields and tags. type IPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` + NatOutside []NestedIPAddress `json:"nat_outside"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,18 @@ type _IPAddress IPAddress // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { +func NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress { this := IPAddress{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Address = address + this.AssignedObject = assignedObject + this.NatOutside = natOutside + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +124,30 @@ func (o *IPAddress) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPAddress) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPAddress) GetDisplay() string { if o == nil { @@ -173,6 +220,367 @@ func (o *IPAddress) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetVrfOk() (*BriefVRF, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddress) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPAddress) SetVrf(v BriefVRF) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddress) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddress) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddress) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPAddress) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddress) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddress) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddress) GetStatus() IPAddressStatus { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddress) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatus and assigns it to the Status field. +func (o *IPAddress) SetStatus(v IPAddressStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddress) GetRole() IPAddressRole { + if o == nil || IsNil(o.Role) { + var ret IPAddressRole + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddress) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRole and assigns it to the Role field. +func (o *IPAddress) SetRole(v IPAddressRole) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddress) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddress) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddress) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddress) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *IPAddress) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *IPAddress) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetNatInside() NestedIPAddress { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddress + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddress) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddress and assigns it to the NatInside field. +func (o *IPAddress) SetNatInside(v NestedIPAddress) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddress) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddress) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetNatOutside returns the NatOutside field value +func (o *IPAddress) GetNatOutside() []NestedIPAddress { + if o == nil { + var ret []NestedIPAddress + return ret + } + + return o.NatOutside +} + +// GetNatOutsideOk returns a tuple with the NatOutside field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatOutside, true +} + +// SetNatOutside sets field value +func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { + o.NatOutside = v +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddress) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddress) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddress) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddress) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +613,154 @@ func (o *IPAddress) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddress) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddress) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddress) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddress) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddress) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *IPAddress) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddress) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddress) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddress) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *IPAddress) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *IPAddress) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o IPAddress) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +773,52 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + toSerialize["nat_outside"] = o.NatOutside + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +834,14 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "address", + "assigned_object", + "nat_outside", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +873,26 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "nat_outside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_request.go b/model_ip_address_request.go index 6c3232de2e..2e83edacc8 100644 --- a/model_ip_address_request.go +++ b/model_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,20 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Address string `json:"address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPAddressStatusValue `json:"status,omitempty"` + Role *IPAddressRoleValue `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -69,6 +81,317 @@ func (o *IPAddressRequest) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddressRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddressRequest) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddressRequest) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddressRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddressRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddressRequest) GetStatus() IPAddressStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddressRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatusValue and assigns it to the Status field. +func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddressRequest) GetRole() IPAddressRoleValue { + if o == nil || IsNil(o.Role) { + var ret IPAddressRoleValue + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddressRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field. +func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddressRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddressRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddressRequest + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddressRequest) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddressRequest and assigns it to the NatInside field. +func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddressRequest) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddressRequest) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddressRequest) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddressRequest) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddressRequest) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddressRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +424,102 @@ func (o *IPAddressRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddressRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *IPAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddressRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddressRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o IPAddressRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +531,42 @@ func (o IPAddressRequest) MarshalJSON() ([]byte, error) { func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,7 +611,18 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_role.go b/model_ip_address_role.go new file mode 100644 index 0000000000..bd21ea2beb --- /dev/null +++ b/model_ip_address_role.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressRole{} + +// IPAddressRole struct for IPAddressRole +type IPAddressRole struct { + Value *IPAddressRoleValue `json:"value,omitempty"` + Label *IPAddressRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressRole IPAddressRole + +// NewIPAddressRole instantiates a new IPAddressRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIPAddressRole() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// NewIPAddressRoleWithDefaults instantiates a new IPAddressRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIPAddressRoleWithDefaults() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressRole) GetValue() IPAddressRoleValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressRoleValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *IPAddressRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressRoleValue and assigns it to the Value field. +func (o *IPAddressRole) SetValue(v IPAddressRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressRole) GetLabel() IPAddressRoleLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressRoleLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *IPAddressRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressRoleLabel and assigns it to the Label field. +func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) { + o.Label = &v +} + +func (o IPAddressRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IPAddressRole) UnmarshalJSON(data []byte) (err error) { + varIPAddressRole := _IPAddressRole{} + + err = json.Unmarshal(data, &varIPAddressRole) + + if err != nil { + return err + } + + *o = IPAddressRole(varIPAddressRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressRole struct { + value *IPAddressRole + isSet bool +} + +func (v NullableIPAddressRole) Get() *IPAddressRole { + return v.value +} + +func (v *NullableIPAddressRole) Set(val *IPAddressRole) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRole) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRole(val *IPAddressRole) *NullableIPAddressRole { + return &NullableIPAddressRole{value: val, isSet: true} +} + +func (v NullableIPAddressRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go new file mode 100644 index 0000000000..08557463db --- /dev/null +++ b/model_ip_address_role_label.go @@ -0,0 +1,122 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleLabel the model 'IPAddressRoleLabel' +type IPAddressRoleLabel string + +// List of IPAddress_role_label +const ( + IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback" + IPADDRESSROLELABEL_SECONDARY IPAddressRoleLabel = "Secondary" + IPADDRESSROLELABEL_ANYCAST IPAddressRoleLabel = "Anycast" + IPADDRESSROLELABEL_VIP IPAddressRoleLabel = "VIP" + IPADDRESSROLELABEL_VRRP IPAddressRoleLabel = "VRRP" + IPADDRESSROLELABEL_HSRP IPAddressRoleLabel = "HSRP" + IPADDRESSROLELABEL_GLBP IPAddressRoleLabel = "GLBP" + IPADDRESSROLELABEL_CARP IPAddressRoleLabel = "CARP" +) + +// All allowed values of IPAddressRoleLabel enum +var AllowedIPAddressRoleLabelEnumValues = []IPAddressRoleLabel{ + "Loopback", + "Secondary", + "Anycast", + "VIP", + "VRRP", + "HSRP", + "GLBP", + "CARP", +} + +func (v *IPAddressRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleLabel(value) + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleLabel", value) +} + +// NewIPAddressRoleLabelFromValue returns a pointer to a valid IPAddressRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleLabelFromValue(v string) (*IPAddressRoleLabel, error) { + ev := IPAddressRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleLabel: valid values are %v", v, AllowedIPAddressRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleLabel) IsValid() bool { + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_label value +func (v IPAddressRoleLabel) Ptr() *IPAddressRoleLabel { + return &v +} + +type NullableIPAddressRoleLabel struct { + value *IPAddressRoleLabel + isSet bool +} + +func (v NullableIPAddressRoleLabel) Get() *IPAddressRoleLabel { + return v.value +} + +func (v *NullableIPAddressRoleLabel) Set(val *IPAddressRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleLabel(val *IPAddressRoleLabel) *NullableIPAddressRoleLabel { + return &NullableIPAddressRoleLabel{value: val, isSet: true} +} + +func (v NullableIPAddressRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_address_role_value.go b/model_ip_address_role_value.go new file mode 100644 index 0000000000..5a21c75a0b --- /dev/null +++ b/model_ip_address_role_value.go @@ -0,0 +1,124 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleValue * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +type IPAddressRoleValue string + +// List of IPAddress_role_value +const ( + IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback" + IPADDRESSROLEVALUE_SECONDARY IPAddressRoleValue = "secondary" + IPADDRESSROLEVALUE_ANYCAST IPAddressRoleValue = "anycast" + IPADDRESSROLEVALUE_VIP IPAddressRoleValue = "vip" + IPADDRESSROLEVALUE_VRRP IPAddressRoleValue = "vrrp" + IPADDRESSROLEVALUE_HSRP IPAddressRoleValue = "hsrp" + IPADDRESSROLEVALUE_GLBP IPAddressRoleValue = "glbp" + IPADDRESSROLEVALUE_CARP IPAddressRoleValue = "carp" + IPADDRESSROLEVALUE_EMPTY IPAddressRoleValue = "" +) + +// All allowed values of IPAddressRoleValue enum +var AllowedIPAddressRoleValueEnumValues = []IPAddressRoleValue{ + "loopback", + "secondary", + "anycast", + "vip", + "vrrp", + "hsrp", + "glbp", + "carp", + "", +} + +func (v *IPAddressRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleValue(value) + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleValue", value) +} + +// NewIPAddressRoleValueFromValue returns a pointer to a valid IPAddressRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleValueFromValue(v string) (*IPAddressRoleValue, error) { + ev := IPAddressRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleValue: valid values are %v", v, AllowedIPAddressRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleValue) IsValid() bool { + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_value value +func (v IPAddressRoleValue) Ptr() *IPAddressRoleValue { + return &v +} + +type NullableIPAddressRoleValue struct { + value *IPAddressRoleValue + isSet bool +} + +func (v NullableIPAddressRoleValue) Get() *IPAddressRoleValue { + return v.value +} + +func (v *NullableIPAddressRoleValue) Set(val *IPAddressRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleValue(val *IPAddressRoleValue) *NullableIPAddressRoleValue { + return &NullableIPAddressRoleValue{value: val, isSet: true} +} + +func (v NullableIPAddressRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_address_status.go b/model_ip_address_status.go new file mode 100644 index 0000000000..7b2e35d566 --- /dev/null +++ b/model_ip_address_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressStatus{} + +// IPAddressStatus struct for IPAddressStatus +type IPAddressStatus struct { + Value *IPAddressStatusValue `json:"value,omitempty"` + Label *IPAddressStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressStatus IPAddressStatus + +// NewIPAddressStatus instantiates a new IPAddressStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIPAddressStatus() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIPAddressStatusWithDefaults() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressStatus) GetValue() IPAddressStatusValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *IPAddressStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressStatusValue and assigns it to the Value field. +func (o *IPAddressStatus) SetValue(v IPAddressStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *IPAddressStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressStatusLabel and assigns it to the Label field. +func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) { + o.Label = &v +} + +func (o IPAddressStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IPAddressStatus) UnmarshalJSON(data []byte) (err error) { + varIPAddressStatus := _IPAddressStatus{} + + err = json.Unmarshal(data, &varIPAddressStatus) + + if err != nil { + return err + } + + *o = IPAddressStatus(varIPAddressStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressStatus struct { + value *IPAddressStatus + isSet bool +} + +func (v NullableIPAddressStatus) Get() *IPAddressStatus { + return v.value +} + +func (v *NullableIPAddressStatus) Set(val *IPAddressStatus) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatus(val *IPAddressStatus) *NullableIPAddressStatus { + return &NullableIPAddressStatus{value: val, isSet: true} +} + +func (v NullableIPAddressStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go new file mode 100644 index 0000000000..0c25bca230 --- /dev/null +++ b/model_ip_address_status_label.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusLabel the model 'IPAddressStatusLabel' +type IPAddressStatusLabel string + +// List of IPAddress_status_label +const ( + IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active" + IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved" + IPADDRESSSTATUSLABEL_DEPRECATED IPAddressStatusLabel = "Deprecated" + IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP" + IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC" +) + +// All allowed values of IPAddressStatusLabel enum +var AllowedIPAddressStatusLabelEnumValues = []IPAddressStatusLabel{ + "Active", + "Reserved", + "Deprecated", + "DHCP", + "SLAAC", +} + +func (v *IPAddressStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusLabel(value) + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusLabel", value) +} + +// NewIPAddressStatusLabelFromValue returns a pointer to a valid IPAddressStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusLabelFromValue(v string) (*IPAddressStatusLabel, error) { + ev := IPAddressStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusLabel: valid values are %v", v, AllowedIPAddressStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusLabel) IsValid() bool { + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_label value +func (v IPAddressStatusLabel) Ptr() *IPAddressStatusLabel { + return &v +} + +type NullableIPAddressStatusLabel struct { + value *IPAddressStatusLabel + isSet bool +} + +func (v NullableIPAddressStatusLabel) Get() *IPAddressStatusLabel { + return v.value +} + +func (v *NullableIPAddressStatusLabel) Set(val *IPAddressStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusLabel(val *IPAddressStatusLabel) *NullableIPAddressStatusLabel { + return &NullableIPAddressStatusLabel{value: val, isSet: true} +} + +func (v NullableIPAddressStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_address_status_value.go b/model_ip_address_status_value.go new file mode 100644 index 0000000000..21152a155f --- /dev/null +++ b/model_ip_address_status_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusValue * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +type IPAddressStatusValue string + +// List of IPAddress_status_value +const ( + IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active" + IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved" + IPADDRESSSTATUSVALUE_DEPRECATED IPAddressStatusValue = "deprecated" + IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp" + IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac" +) + +// All allowed values of IPAddressStatusValue enum +var AllowedIPAddressStatusValueEnumValues = []IPAddressStatusValue{ + "active", + "reserved", + "deprecated", + "dhcp", + "slaac", +} + +func (v *IPAddressStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusValue(value) + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusValue", value) +} + +// NewIPAddressStatusValueFromValue returns a pointer to a valid IPAddressStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusValueFromValue(v string) (*IPAddressStatusValue, error) { + ev := IPAddressStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusValue: valid values are %v", v, AllowedIPAddressStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusValue) IsValid() bool { + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_value value +func (v IPAddressStatusValue) Ptr() *IPAddressStatusValue { + return &v +} + +type NullableIPAddressStatusValue struct { + value *IPAddressStatusValue + isSet bool +} + +func (v NullableIPAddressStatusValue) Get() *IPAddressStatusValue { + return v.value +} + +func (v *NullableIPAddressStatusValue) Set(val *IPAddressStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusValue(val *IPAddressStatusValue) *NullableIPAddressStatusValue { + return &NullableIPAddressStatusValue{value: val, isSet: true} +} + +func (v NullableIPAddressStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_ip_range.go b/model_ip_range.go index 8775cca43a..782e7942d0 100644 --- a/model_ip_range.go +++ b/model_ip_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,15 +23,16 @@ var _ MappedNullable = &IPRange{} type IPRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` Size int32 `json:"size"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Status *IPRangeStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -49,10 +50,11 @@ type _IPRange IPRange // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { +func NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { this := IPRange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.StartAddress = startAddress @@ -119,6 +121,30 @@ func (o *IPRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPRange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPRange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPRange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPRange) GetDisplay() string { if o == nil { @@ -240,9 +266,9 @@ func (o *IPRange) SetSize(v int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetVrf() VRF { +func (o *IPRange) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -251,7 +277,7 @@ func (o *IPRange) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetVrfOk() (*VRF, bool) { +func (o *IPRange) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -267,8 +293,8 @@ func (o *IPRange) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *IPRange) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPRange) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -283,9 +309,9 @@ func (o *IPRange) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetTenant() Tenant { +func (o *IPRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -294,7 +320,7 @@ func (o *IPRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetTenantOk() (*Tenant, bool) { +func (o *IPRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -310,8 +336,8 @@ func (o *IPRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *IPRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -358,9 +384,9 @@ func (o *IPRange) SetStatus(v IPRangeStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetRole() Role { +func (o *IPRange) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -369,7 +395,7 @@ func (o *IPRange) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetRoleOk() (*Role, bool) { +func (o *IPRange) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -385,8 +411,8 @@ func (o *IPRange) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *IPRange) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *IPRange) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -624,6 +650,7 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress @@ -673,6 +700,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "start_address", @@ -711,6 +739,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "start_address") diff --git a/model_ip_range_request.go b/model_ip_range_request.go index 89c81001d1..0685390f2e 100644 --- a/model_ip_range_request.go +++ b/model_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &IPRangeRequest{} // IPRangeRequest Adds support for custom fields and tags. type IPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + 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"` AdditionalProperties map[string]interface{} @@ -105,9 +105,9 @@ func (o *IPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetVrf() VRFRequest { +func (o *IPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *IPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *IPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *IPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *IPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetTenant() TenantRequest { +func (o *IPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *IPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *IPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *IPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetRole() RoleRequest { +func (o *IPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *IPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *IPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *IPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_ip_range_status.go b/model_ip_range_status.go index 7382048fb1..dc694097bd 100644 --- a/model_ip_range_status.go +++ b/model_ip_range_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go index 385ab47e7c..e981f6ae4e 100644 --- a/model_ip_range_status_label.go +++ b/model_ip_range_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go index df62fcdf6d..6667c09bfb 100644 --- a/model_ip_range_status_value.go +++ b/model_ip_range_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go index 36f1f6c999..8468534609 100644 --- a/model_ip_sec_policy.go +++ b/model_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecPolicy{} type IPSecPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _IPSecPolicy IPSecPolicy // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { +func NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { this := IPSecPolicy{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -109,6 +111,30 @@ func (o *IPSecPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecPolicy) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecPolicy) GetDisplay() string { if o == nil { @@ -413,6 +439,7 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -450,6 +477,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "created", @@ -485,6 +513,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go index 9612f14fab..0ef197a677 100644 --- a/model_ip_sec_policy_request.go +++ b/model_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go index 9146d80747..ab4af3f127 100644 --- a/model_ip_sec_profile.go +++ b/model_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,12 +23,13 @@ var _ MappedNullable = &IPSecProfile{} type IPSecProfile struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Mode IPSecProfileMode `json:"mode"` - IkePolicy IKEPolicy `json:"ike_policy"` - IpsecPolicy IPSecPolicy `json:"ipsec_policy"` + 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"` @@ -43,10 +44,11 @@ type _IPSecProfile IPSecProfile // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { +func NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { this := IPSecProfile{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Mode = mode @@ -113,6 +115,30 @@ func (o *IPSecProfile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecProfile) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecProfile) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecProfile) GetDisplay() string { if o == nil { @@ -218,9 +244,9 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfile) GetIkePolicy() IKEPolicy { +func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { if o == nil { - var ret IKEPolicy + var ret BriefIKEPolicy return ret } @@ -229,7 +255,7 @@ func (o *IPSecProfile) GetIkePolicy() IKEPolicy { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { +func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { if o == nil { return nil, false } @@ -237,14 +263,14 @@ func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) { +func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { +func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { if o == nil { - var ret IPSecPolicy + var ret BriefIPSecPolicy return ret } @@ -253,7 +279,7 @@ func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { +func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { if o == nil { return nil, false } @@ -261,7 +287,7 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) { +func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) { o.IpsecPolicy = v } @@ -425,6 +451,7 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -459,6 +486,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "mode", @@ -497,6 +525,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go index 69bcffc186..95f1d923a4 100644 --- a/model_ip_sec_profile_mode.go +++ b/model_ip_sec_profile_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go index 31f8922ec4..a2acd238f7 100644 --- a/model_ip_sec_profile_mode_label.go +++ b/model_ip_sec_profile_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go index 75a1b1c6a7..d5b89c8b58 100644 --- a/model_ip_sec_profile_mode_value.go +++ b/model_ip_sec_profile_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go index 09202cc1ee..6dcc8c15c8 100644 --- a/model_ip_sec_profile_request.go +++ b/model_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{} // IPSecProfileRequest Adds support for custom fields and tags. type IPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest { +func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest { this := IPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go index cdc9250e23..4676b155fd 100644 --- a/model_ip_sec_proposal.go +++ b/model_ip_sec_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecProposal{} type IPSecProposal struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -46,10 +47,11 @@ type _IPSecProposal IPSecProposal // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { +func NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { this := IPSecProposal{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.EncryptionAlgorithm = encryptionAlgorithm @@ -115,6 +117,30 @@ func (o *IPSecProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecProposal) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecProposal) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecProposal) GetDisplay() string { if o == nil { @@ -489,6 +515,7 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -528,6 +555,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "encryption_algorithm", @@ -565,6 +593,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go index 1a4cdf787d..69372b5e17 100644 --- a/model_ip_sec_proposal_request.go +++ b/model_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go index f5e1d118cd..d12c7b46e6 100644 --- a/model_ipam_service_templates_list_protocol_parameter.go +++ b/model_ipam_service_templates_list_protocol_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_job.go b/model_job.go index 7c41c0fe14..8706b45ecf 100644 --- a/model_job.go +++ b/model_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &Job{} // Job struct for Job type Job struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId NullableInt64 `json:"object_id,omitempty"` - Name string `json:"name"` - Status JobStatus `json:"status"` - Created time.Time `json:"created"` - Scheduled NullableTime `json:"scheduled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + Scheduled NullableTime `json:"scheduled,omitempty"` // Recurrence interval (in minutes) Interval NullableInt32 `json:"interval,omitempty"` Started NullableTime `json:"started,omitempty"` Completed NullableTime `json:"completed,omitempty"` - User User `json:"user"` + User BriefUser `json:"user"` Data interface{} `json:"data,omitempty"` Error string `json:"error"` JobId string `json:"job_id"` @@ -47,10 +48,11 @@ type _Job Job // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job { +func NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string) *Job { this := Job{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectType = objectType this.Name = name @@ -118,6 +120,30 @@ func (o *Job) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Job) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Job) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Job) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Job) GetDisplay() string { if o == nil { @@ -234,9 +260,9 @@ func (o *Job) SetName(v string) { } // GetStatus returns the Status field value -func (o *Job) GetStatus() JobStatus { +func (o *Job) GetStatus() BriefJobStatus { if o == nil { - var ret JobStatus + var ret BriefJobStatus return ret } @@ -245,7 +271,7 @@ func (o *Job) GetStatus() JobStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Job) GetStatusOk() (*JobStatus, bool) { +func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { if o == nil { return nil, false } @@ -253,7 +279,7 @@ func (o *Job) GetStatusOk() (*JobStatus, bool) { } // SetStatus sets field value -func (o *Job) SetStatus(v JobStatus) { +func (o *Job) SetStatus(v BriefJobStatus) { o.Status = v } @@ -454,9 +480,9 @@ func (o *Job) UnsetCompleted() { } // GetUser returns the User field value -func (o *Job) GetUser() User { +func (o *Job) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -465,7 +491,7 @@ func (o *Job) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Job) GetUserOk() (*User, bool) { +func (o *Job) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -473,7 +499,7 @@ func (o *Job) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Job) SetUser(v User) { +func (o *Job) SetUser(v BriefUser) { o.User = v } @@ -570,6 +596,7 @@ func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { @@ -611,6 +638,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_type", "name", @@ -650,6 +678,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_type") delete(additionalProperties, "object_id") diff --git a/model_journal_entry.go b/model_journal_entry.go index 85c554b79d..ce70ab4c1f 100644 --- a/model_journal_entry.go +++ b/model_journal_entry.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &JournalEntry{} type JournalEntry struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` AssignedObjectType string `json:"assigned_object_type"` AssignedObjectId int64 `json:"assigned_object_id"` @@ -43,10 +44,11 @@ type _JournalEntry JournalEntry // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { +func NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { this := JournalEntry{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.AssignedObjectType = assignedObjectType this.AssignedObjectId = assignedObjectId @@ -113,6 +115,30 @@ func (o *JournalEntry) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *JournalEntry) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *JournalEntry) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *JournalEntry) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *JournalEntry) GetDisplay() string { if o == nil { @@ -438,6 +464,7 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId @@ -474,6 +501,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "assigned_object_type", "assigned_object_id", @@ -512,6 +540,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "assigned_object_type") delete(additionalProperties, "assigned_object_id") diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go index 18d34bc98d..4140ff8ac6 100644 --- a/model_journal_entry_kind.go +++ b/model_journal_entry_kind.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go index 5c61d6c58d..a7f5d3c88f 100644 --- a/model_journal_entry_kind_label.go +++ b/model_journal_entry_kind_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go index 06b51fe786..aae4f97987 100644 --- a/model_journal_entry_kind_value.go +++ b/model_journal_entry_kind_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go index 03045dce65..d06931476c 100644 --- a/model_journal_entry_request.go +++ b/model_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_l2_vpn.go b/model_l2_vpn.go index b59c4021bf..05e025e89e 100644 --- a/model_l2_vpn.go +++ b/model_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPN type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &L2VPN{} // L2VPN Adds support for custom fields and tags. type L2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,16 @@ type _L2VPN L2VPN // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewL2VPN(id int32, url string, display string, name string, slug string) *L2VPN { +func NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *L2VPN { this := L2VPN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +116,30 @@ func (o *L2VPN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *L2VPN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *L2VPN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *L2VPN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *L2VPN) GetDisplay() string { if o == nil { @@ -219,9 +256,9 @@ func (o *L2VPN) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPN) GetType() L2VPNType { +func (o *L2VPN) GetType() BriefL2VPNType { if o == nil || IsNil(o.Type) { - var ret L2VPNType + var ret BriefL2VPNType return ret } return *o.Type @@ -229,7 +266,7 @@ func (o *L2VPN) GetType() L2VPNType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPN) GetTypeOk() (*L2VPNType, bool) { +func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -245,11 +282,75 @@ func (o *L2VPN) HasType() bool { return false } -// SetType gets a reference to the given L2VPNType and assigns it to the Type field. -func (o *L2VPN) SetType(v L2VPNType) { +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *L2VPN) SetType(v BriefL2VPNType) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *L2VPN) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *L2VPN) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -282,6 +383,197 @@ func (o *L2VPN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPN) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *L2VPN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -294,6 +586,7 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() @@ -303,9 +596,29 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -321,9 +634,12 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -355,12 +671,21 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "identifier") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go index 9722c656c9..3fb2a88a39 100644 --- a/model_l2_vpn_request.go +++ b/model_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,17 @@ var _ MappedNullable = &L2VPNRequest{} // L2VPNRequest Adds support for custom fields and tags. type L2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,9 +147,9 @@ func (o *L2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPNRequest) GetType() L2VPNTypeValue { +func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -151,7 +157,7 @@ func (o *L2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -167,11 +173,75 @@ func (o *L2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *L2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *L2VPNRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *L2VPNRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPNRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -204,6 +274,145 @@ func (o *L2VPNRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPNRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPNRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPNRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPNRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPNRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,9 +431,27 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -273,7 +500,13 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go index b70569c1f7..a6be754eb7 100644 --- a/model_l2_vpn_termination.go +++ b/model_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time @@ -20,10 +21,18 @@ var _ MappedNullable = &L2VPNTermination{} // L2VPNTermination Adds support for custom fields and tags. type L2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn L2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -33,12 +42,18 @@ type _L2VPNTermination L2VPNTermination // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination { +func NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination { this := L2VPNTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId + this.AssignedObject = assignedObject + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +113,30 @@ func (o *L2VPNTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *L2VPNTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *L2VPNTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *L2VPNTermination) GetDisplay() string { if o == nil { @@ -123,9 +162,9 @@ func (o *L2VPNTermination) SetDisplay(v string) { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTermination) GetL2vpn() L2VPN { +func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { if o == nil { - var ret L2VPN + var ret BriefL2VPN return ret } @@ -134,7 +173,7 @@ func (o *L2VPNTermination) GetL2vpn() L2VPN { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { +func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { if o == nil { return nil, false } @@ -142,10 +181,200 @@ func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { } // SetL2vpn sets field value -func (o *L2VPNTermination) SetL2vpn(v L2VPN) { +func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTermination) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTermination) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTermination) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTermination) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *L2VPNTermination) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *L2VPNTermination) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTermination) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTermination) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPNTermination) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTermination) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTermination) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTermination) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPNTermination) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPNTermination) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPNTermination) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -158,8 +387,22 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -175,8 +418,14 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "l2vpn", + "assigned_object_type", + "assigned_object_id", + "assigned_object", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -208,8 +457,16 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go index 6b293da4e6..9b5cbfaa2e 100644 --- a/model_l2_vpn_termination_request.go +++ b/model_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn L2VPNRequest `json:"l2vpn"` + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -30,9 +34,11 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest { +func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest { this := L2VPNTerminationRequest{} this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId return &this } @@ -45,9 +51,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } @@ -56,7 +62,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil { return nil, false } @@ -64,10 +70,122 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { } // SetL2vpn sets field value -func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTerminationRequest) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -79,6 +197,14 @@ func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -93,6 +219,8 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "l2vpn", + "assigned_object_type", + "assigned_object_id", } allProperties := make(map[string]interface{}) @@ -123,6 +251,10 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location.go b/model_location.go index 3da41e65f0..ef68c012f3 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Location type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &Location{} // Location Extends PrimaryModelSerializer to include MPTT support. type Location struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - RackCount int32 `json:"rack_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + RackCount int32 `json:"rack_count"` + DeviceCount int32 `json:"device_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,14 +50,19 @@ type _Location Location // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *Location { +func NewLocation(id int32, url string, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, deviceCount int32, depth int32) *Location { this := Location{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated this.RackCount = rackCount + this.DeviceCount = deviceCount this.Depth = depth return &this } @@ -105,6 +123,30 @@ func (o *Location) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Location) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Location) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Location) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Location) GetDisplay() string { if o == nil { @@ -177,6 +219,180 @@ func (o *Location) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *Location) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Location) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Location) SetSite(v BriefSite) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetParent() NestedLocation { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocation + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetParentOk() (*NestedLocation, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *Location) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocation and assigns it to the Parent field. +func (o *Location) SetParent(v NestedLocation) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *Location) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *Location) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Location) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Location) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Location) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Location) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Location) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Location) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Location) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Location) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Location) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Location) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Location) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +425,122 @@ func (o *Location) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Location) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Location) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Location) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Location) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Location) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Location) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Location) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Location) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetRackCount returns the RackCount field value func (o *Location) GetRackCount() int32 { if o == nil { @@ -233,6 +565,30 @@ func (o *Location) SetRackCount(v int32) { o.RackCount = v } +// GetDeviceCount returns the DeviceCount field value +func (o *Location) GetDeviceCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *Location) GetDeviceCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *Location) SetDeviceCount(v int32) { + o.DeviceCount = v +} + // GetDepth returns the Depth field value func (o *Location) GetDepth() int32 { if o == nil { @@ -269,13 +625,36 @@ func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["rack_count"] = o.RackCount + toSerialize["device_count"] = o.DeviceCount toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -292,10 +671,15 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "site", + "created", + "last_updated", "rack_count", + "device_count", "_depth", } @@ -328,11 +712,22 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "rack_count") + delete(additionalProperties, "device_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } diff --git a/model_location_request.go b/model_location_request.go index 5f282485af..bfe455506a 100644 --- a/model_location_request.go +++ b/model_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableNestedLocationRequest `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,10 +40,11 @@ type _LocationRequest LocationRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLocationRequest(name string, slug string) *LocationRequest { +func NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest { this := LocationRequest{} this.Name = name this.Slug = slug + this.Site = site return &this } @@ -95,6 +104,180 @@ func (o *LocationRequest) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *LocationRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *LocationRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetParent() NestedLocationRequest { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocationRequest + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *LocationRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocationRequest and assigns it to the Parent field. +func (o *LocationRequest) SetParent(v NestedLocationRequest) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *LocationRequest) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *LocationRequest) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LocationRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LocationRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *LocationRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *LocationRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *LocationRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *LocationRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *LocationRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *LocationRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *LocationRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *LocationRequest) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *LocationRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +310,70 @@ func (o *LocationRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LocationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LocationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *LocationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *LocationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *LocationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *LocationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o LocationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +386,28 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -157,6 +423,7 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", + "site", } allProperties := make(map[string]interface{}) @@ -188,7 +455,14 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location_status.go b/model_location_status.go new file mode 100644 index 0000000000..2486c2dce8 --- /dev/null +++ b/model_location_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the LocationStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocationStatus{} + +// LocationStatus struct for LocationStatus +type LocationStatus struct { + Value *LocationStatusValue `json:"value,omitempty"` + Label *LocationStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LocationStatus LocationStatus + +// NewLocationStatus instantiates a new LocationStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLocationStatus() *LocationStatus { + this := LocationStatus{} + return &this +} + +// NewLocationStatusWithDefaults instantiates a new LocationStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocationStatusWithDefaults() *LocationStatus { + this := LocationStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *LocationStatus) GetValue() LocationStatusValue { + if o == nil || IsNil(o.Value) { + var ret LocationStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationStatus) GetValueOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *LocationStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given LocationStatusValue and assigns it to the Value field. +func (o *LocationStatus) SetValue(v LocationStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *LocationStatus) GetLabel() LocationStatusLabel { + if o == nil || IsNil(o.Label) { + var ret LocationStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *LocationStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given LocationStatusLabel and assigns it to the Label field. +func (o *LocationStatus) SetLabel(v LocationStatusLabel) { + o.Label = &v +} + +func (o LocationStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocationStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LocationStatus) UnmarshalJSON(data []byte) (err error) { + varLocationStatus := _LocationStatus{} + + err = json.Unmarshal(data, &varLocationStatus) + + if err != nil { + return err + } + + *o = LocationStatus(varLocationStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLocationStatus struct { + value *LocationStatus + isSet bool +} + +func (v NullableLocationStatus) Get() *LocationStatus { + return v.value +} + +func (v *NullableLocationStatus) Set(val *LocationStatus) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatus(val *LocationStatus) *NullableLocationStatus { + return &NullableLocationStatus{value: val, isSet: true} +} + +func (v NullableLocationStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_location_status_label.go b/model_location_status_label.go new file mode 100644 index 0000000000..a7eb2cc750 --- /dev/null +++ b/model_location_status_label.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusLabel the model 'LocationStatusLabel' +type LocationStatusLabel string + +// List of Location_status_label +const ( + LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned" + LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging" + LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active" + LOCATIONSTATUSLABEL_DECOMMISSIONING LocationStatusLabel = "Decommissioning" + LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired" +) + +// All allowed values of LocationStatusLabel enum +var AllowedLocationStatusLabelEnumValues = []LocationStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Retired", +} + +func (v *LocationStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusLabel(value) + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusLabel", value) +} + +// NewLocationStatusLabelFromValue returns a pointer to a valid LocationStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusLabelFromValue(v string) (*LocationStatusLabel, error) { + ev := LocationStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusLabel: valid values are %v", v, AllowedLocationStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusLabel) IsValid() bool { + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_label value +func (v LocationStatusLabel) Ptr() *LocationStatusLabel { + return &v +} + +type NullableLocationStatusLabel struct { + value *LocationStatusLabel + isSet bool +} + +func (v NullableLocationStatusLabel) Get() *LocationStatusLabel { + return v.value +} + +func (v *NullableLocationStatusLabel) Set(val *LocationStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusLabel(val *LocationStatusLabel) *NullableLocationStatusLabel { + return &NullableLocationStatusLabel{value: val, isSet: true} +} + +func (v NullableLocationStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_location_status_value.go b/model_location_status_value.go new file mode 100644 index 0000000000..24b5f6f4ff --- /dev/null +++ b/model_location_status_value.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +type LocationStatusValue string + +// List of Location_status_value +const ( + LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned" + LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging" + LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active" + LOCATIONSTATUSVALUE_DECOMMISSIONING LocationStatusValue = "decommissioning" + LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired" +) + +// All allowed values of LocationStatusValue enum +var AllowedLocationStatusValueEnumValues = []LocationStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "retired", +} + +func (v *LocationStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusValue(value) + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusValue", value) +} + +// NewLocationStatusValueFromValue returns a pointer to a valid LocationStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusValueFromValue(v string) (*LocationStatusValue, error) { + ev := LocationStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusValue: valid values are %v", v, AllowedLocationStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusValue) IsValid() bool { + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_value value +func (v LocationStatusValue) Ptr() *LocationStatusValue { + return &v +} + +type NullableLocationStatusValue struct { + value *LocationStatusValue + isSet bool +} + +func (v NullableLocationStatusValue) Get() *LocationStatusValue { + return v.value +} + +func (v *NullableLocationStatusValue) Set(val *LocationStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusValue(val *LocationStatusValue) *NullableLocationStatusValue { + return &NullableLocationStatusValue{value: val, isSet: true} +} + +func (v NullableLocationStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_manufacturer.go b/model_manufacturer.go index 6b8dcd9090..a1e268c206 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Manufacturer type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &Manufacturer{} // Manufacturer Adds support for custom fields and tags. type Manufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DevicetypeCount int64 `json:"devicetype_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DevicetypeCount int64 `json:"devicetype_count"` + InventoryitemCount int64 `json:"inventoryitem_count"` + PlatformCount int64 `json:"platform_count"` AdditionalProperties map[string]interface{} } @@ -36,14 +44,19 @@ type _Manufacturer Manufacturer // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64) *Manufacturer { +func NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, devicetypeCount int64, inventoryitemCount int64, platformCount int64) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.DevicetypeCount = devicetypeCount + this.InventoryitemCount = inventoryitemCount + this.PlatformCount = platformCount return &this } @@ -103,6 +116,30 @@ func (o *Manufacturer) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Manufacturer) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Manufacturer) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Manufacturer) GetDisplay() string { if o == nil { @@ -207,6 +244,122 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Manufacturer) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Manufacturer) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Manufacturer) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Manufacturer) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Manufacturer) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Manufacturer) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Manufacturer) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Manufacturer) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDevicetypeCount returns the DevicetypeCount field value func (o *Manufacturer) GetDevicetypeCount() int64 { if o == nil { @@ -231,6 +384,54 @@ func (o *Manufacturer) SetDevicetypeCount(v int64) { o.DevicetypeCount = v } +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *Manufacturer) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.InventoryitemCount +} + +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *Manufacturer) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + +// GetPlatformCount returns the PlatformCount field value +func (o *Manufacturer) GetPlatformCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PlatformCount +} + +// GetPlatformCountOk returns a tuple with the PlatformCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PlatformCount, true +} + +// SetPlatformCount sets field value +func (o *Manufacturer) SetPlatformCount(v int64) { + o.PlatformCount = v +} + func (o Manufacturer) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -243,13 +444,24 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["devicetype_count"] = o.DevicetypeCount + toSerialize["inventoryitem_count"] = o.InventoryitemCount + toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -265,10 +477,15 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "devicetype_count", + "inventoryitem_count", + "platform_count", } allProperties := make(map[string]interface{}) @@ -300,11 +517,18 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "devicetype_count") + delete(additionalProperties, "inventoryitem_count") + delete(additionalProperties, "platform_count") o.AdditionalProperties = additionalProperties } diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go index 35e495df84..259b40a916 100644 --- a/model_manufacturer_request.go +++ b/model_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ManufacturerRequest{} // ManufacturerRequest Adds support for custom fields and tags. type ManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ManufacturerRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ManufacturerRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module.go b/model_module.go index 7154265d7d..c9af801eff 100644 --- a/model_module.go +++ b/model_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Module type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Module{} // Module Adds support for custom fields and tags. type Module struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + ModuleType BriefModuleType `json:"module_type"` + Status *ModuleStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,13 +47,17 @@ type _Module Module // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module { +func NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime) *Module { this := Module{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +117,30 @@ func (o *Module) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Module) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Module) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Module) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Module) GetDisplay() string { if o == nil { @@ -125,9 +166,9 @@ func (o *Module) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Module) GetDevice() Device { +func (o *Module) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -136,7 +177,7 @@ func (o *Module) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Module) GetDeviceOk() (*Device, bool) { +func (o *Module) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -144,7 +185,7 @@ func (o *Module) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Module) SetDevice(v Device) { +func (o *Module) SetDevice(v BriefDevice) { o.Device = v } @@ -172,6 +213,317 @@ func (o *Module) SetModuleBay(v NestedModuleBay) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *Module) GetModuleType() BriefModuleType { + if o == nil { + var ret BriefModuleType + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *Module) SetModuleType(v BriefModuleType) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Module) GetStatus() ModuleStatus { + if o == nil || IsNil(o.Status) { + var ret ModuleStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetStatusOk() (*ModuleStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Module) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *Module) SetStatus(v ModuleStatus) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Module) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Module) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Module) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Module) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Module) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Module) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Module) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Module) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Module) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Module) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Module) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Module) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Module) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Module) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Module) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Module) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Module) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Module) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Module) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Module) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Module) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Module) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -184,9 +536,34 @@ func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -202,9 +579,13 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "module_bay", + "module_type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -236,9 +617,20 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_bay.go b/model_module_bay.go index 3f883cc159..8049e37db5 100644 --- a/model_module_bay.go +++ b/model_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,14 @@ var _ MappedNullable = &ModuleBay{} // ModuleBay Adds support for custom fields and tags. type ModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - InstalledModule NullableModule `json:"installed_module,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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 @@ -45,10 +47,11 @@ type _ModuleBay ModuleBay // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { +func NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { this := ModuleBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -113,6 +116,30 @@ func (o *ModuleBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ModuleBay) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ModuleBay) GetDisplay() string { if o == nil { @@ -138,9 +165,9 @@ func (o *ModuleBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ModuleBay) GetDevice() Device { +func (o *ModuleBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -149,7 +176,7 @@ func (o *ModuleBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBay) GetDeviceOk() (*Device, bool) { +func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -157,10 +184,53 @@ func (o *ModuleBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ModuleBay) SetDevice(v Device) { +func (o *ModuleBay) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBay) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBay) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBay) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ModuleBay) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBay) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBay) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBay) GetName() string { if o == nil { @@ -186,9 +256,9 @@ func (o *ModuleBay) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetInstalledModule() Module { +func (o *ModuleBay) GetInstalledModule() BriefModule { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret Module + var ret BriefModule return ret } return *o.InstalledModule.Get() @@ -197,7 +267,7 @@ func (o *ModuleBay) GetInstalledModule() Module { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool) { +func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -213,8 +283,8 @@ func (o *ModuleBay) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field. -func (o *ModuleBay) SetInstalledModule(v Module) { +// SetInstalledModule gets a reference to the given NullableBriefModule and assigns it to the InstalledModule field. +func (o *ModuleBay) SetInstalledModule(v BriefModule) { o.InstalledModule.Set(&v) } @@ -452,8 +522,12 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -490,6 +564,7 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -526,8 +601,10 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_request.go b/model_module_bay_request.go index 7fb1ba15c8..0c97cde784 100644 --- a/model_module_bay_request.go +++ b/model_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -39,7 +40,7 @@ type _ModuleBayRequest ModuleBayRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest { +func NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest { this := ModuleBayRequest{} this.Device = device this.Name = name @@ -55,9 +56,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest { } // GetDevice returns the Device field value -func (o *ModuleBayRequest) GetDevice() DeviceRequest { +func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -66,7 +67,7 @@ func (o *ModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -74,10 +75,53 @@ func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleBayRequest) SetDevice(v DeviceRequest) { +func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBayRequest) GetName() string { if o == nil { @@ -103,9 +147,9 @@ func (o *ModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -114,7 +158,7 @@ func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -130,8 +174,8 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -316,6 +360,9 @@ func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -380,6 +427,7 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_template.go b/model_module_bay_template.go index 114c363b6e..77e427e5f2 100644 --- a/model_module_bay_template.go +++ b/model_module_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &ModuleBayTemplate{} // ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -43,12 +44,11 @@ type _ModuleBayTemplate ModuleBayTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { +func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { this := ModuleBayTemplate{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType this.Name = name this.Created = created this.LastUpdated = lastUpdated @@ -135,28 +135,90 @@ func (o *ModuleBayTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplate) GetDeviceType() DeviceType { - if o == nil { - var ret DeviceType +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) } -// SetDeviceType sets field value -func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) { - o.DeviceType = v +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -344,7 +406,12 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -373,7 +440,6 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", "name", "created", "last_updated", @@ -410,6 +476,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "url") delete(additionalProperties, "display") delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go index 6e407360e3..95e2f850f1 100644 --- a/model_module_bay_template_request.go +++ b/model_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,8 @@ var _ MappedNullable = &ModuleBayTemplateRequest{} // ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -37,9 +38,8 @@ type _ModuleBayTemplateRequest ModuleBayTemplateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest { +func NewModuleBayTemplateRequest(name string) *ModuleBayTemplateRequest { this := ModuleBayTemplateRequest{} - this.DeviceType = deviceType this.Name = name return &this } @@ -52,28 +52,90 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() } -// SetDeviceType sets field value -func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = v +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -206,7 +268,12 @@ func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -230,7 +297,6 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "device_type", "name", } @@ -262,6 +328,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_request.go b/model_module_request.go index 0cdc3bf195..83adb0595e 100644 --- a/model_module_request.go +++ b/model_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +40,11 @@ type _ModuleRequest ModuleRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest { +func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest { this := ModuleRequest{} this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType return &this } @@ -47,9 +57,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest { } // GetDevice returns the Device field value -func (o *ModuleRequest) GetDevice() DeviceRequest { +func (o *ModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -58,7 +68,7 @@ func (o *ModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -66,7 +76,7 @@ func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleRequest) SetDevice(v DeviceRequest) { +func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -94,6 +104,265 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil { + var ret BriefModuleTypeRequest + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModuleRequest) GetStatus() ModuleStatusValue { + if o == nil || IsNil(o.Status) { + var ret ModuleStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModuleRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *ModuleRequest) SetStatus(v ModuleStatusValue) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *ModuleRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *ModuleRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *ModuleRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *ModuleRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *ModuleRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *ModuleRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *ModuleRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModuleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModuleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -106,6 +375,28 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -121,6 +412,7 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "device", "module_bay", + "module_type", } allProperties := make(map[string]interface{}) @@ -152,6 +444,14 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_status.go b/model_module_status.go new file mode 100644 index 0000000000..a40e902cfe --- /dev/null +++ b/model_module_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ModuleStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModuleStatus{} + +// ModuleStatus struct for ModuleStatus +type ModuleStatus struct { + Value *ModuleStatusValue `json:"value,omitempty"` + Label *ModuleStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModuleStatus ModuleStatus + +// NewModuleStatus instantiates a new ModuleStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModuleStatus() *ModuleStatus { + this := ModuleStatus{} + return &this +} + +// NewModuleStatusWithDefaults instantiates a new ModuleStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModuleStatusWithDefaults() *ModuleStatus { + this := ModuleStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModuleStatus) GetValue() ModuleStatusValue { + if o == nil || IsNil(o.Value) { + var ret ModuleStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModuleStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ModuleStatusValue and assigns it to the Value field. +func (o *ModuleStatus) SetValue(v ModuleStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ModuleStatus) GetLabel() ModuleStatusLabel { + if o == nil || IsNil(o.Label) { + var ret ModuleStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ModuleStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ModuleStatusLabel and assigns it to the Label field. +func (o *ModuleStatus) SetLabel(v ModuleStatusLabel) { + o.Label = &v +} + +func (o ModuleStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModuleStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModuleStatus) UnmarshalJSON(data []byte) (err error) { + varModuleStatus := _ModuleStatus{} + + err = json.Unmarshal(data, &varModuleStatus) + + if err != nil { + return err + } + + *o = ModuleStatus(varModuleStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModuleStatus struct { + value *ModuleStatus + isSet bool +} + +func (v NullableModuleStatus) Get() *ModuleStatus { + return v.value +} + +func (v *NullableModuleStatus) Set(val *ModuleStatus) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatus(val *ModuleStatus) *NullableModuleStatus { + return &NullableModuleStatus{value: val, isSet: true} +} + +func (v NullableModuleStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_status_label.go b/model_module_status_label.go new file mode 100644 index 0000000000..dfc2bb71dd --- /dev/null +++ b/model_module_status_label.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleStatusLabel the model 'ModuleStatusLabel' +type ModuleStatusLabel string + +// List of Module_status_label +const ( + MODULESTATUSLABEL_OFFLINE ModuleStatusLabel = "Offline" + MODULESTATUSLABEL_ACTIVE ModuleStatusLabel = "Active" + MODULESTATUSLABEL_PLANNED ModuleStatusLabel = "Planned" + MODULESTATUSLABEL_STAGED ModuleStatusLabel = "Staged" + MODULESTATUSLABEL_FAILED ModuleStatusLabel = "Failed" + MODULESTATUSLABEL_DECOMMISSIONING ModuleStatusLabel = "Decommissioning" +) + +// All allowed values of ModuleStatusLabel enum +var AllowedModuleStatusLabelEnumValues = []ModuleStatusLabel{ + "Offline", + "Active", + "Planned", + "Staged", + "Failed", + "Decommissioning", +} + +func (v *ModuleStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleStatusLabel(value) + for _, existing := range AllowedModuleStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleStatusLabel", value) +} + +// NewModuleStatusLabelFromValue returns a pointer to a valid ModuleStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleStatusLabelFromValue(v string) (*ModuleStatusLabel, error) { + ev := ModuleStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleStatusLabel: valid values are %v", v, AllowedModuleStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleStatusLabel) IsValid() bool { + for _, existing := range AllowedModuleStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Module_status_label value +func (v ModuleStatusLabel) Ptr() *ModuleStatusLabel { + return &v +} + +type NullableModuleStatusLabel struct { + value *ModuleStatusLabel + isSet bool +} + +func (v NullableModuleStatusLabel) Get() *ModuleStatusLabel { + return v.value +} + +func (v *NullableModuleStatusLabel) Set(val *ModuleStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatusLabel(val *ModuleStatusLabel) *NullableModuleStatusLabel { + return &NullableModuleStatusLabel{value: val, isSet: true} +} + +func (v NullableModuleStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_status_value.go b/model_module_status_value.go new file mode 100644 index 0000000000..f06946d30b --- /dev/null +++ b/model_module_status_value.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleStatusValue * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +type ModuleStatusValue string + +// List of Module_status_value +const ( + MODULESTATUSVALUE_OFFLINE ModuleStatusValue = "offline" + MODULESTATUSVALUE_ACTIVE ModuleStatusValue = "active" + MODULESTATUSVALUE_PLANNED ModuleStatusValue = "planned" + MODULESTATUSVALUE_STAGED ModuleStatusValue = "staged" + MODULESTATUSVALUE_FAILED ModuleStatusValue = "failed" + MODULESTATUSVALUE_DECOMMISSIONING ModuleStatusValue = "decommissioning" +) + +// All allowed values of ModuleStatusValue enum +var AllowedModuleStatusValueEnumValues = []ModuleStatusValue{ + "offline", + "active", + "planned", + "staged", + "failed", + "decommissioning", +} + +func (v *ModuleStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleStatusValue(value) + for _, existing := range AllowedModuleStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleStatusValue", value) +} + +// NewModuleStatusValueFromValue returns a pointer to a valid ModuleStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleStatusValueFromValue(v string) (*ModuleStatusValue, error) { + ev := ModuleStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleStatusValue: valid values are %v", v, AllowedModuleStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleStatusValue) IsValid() bool { + for _, existing := range AllowedModuleStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Module_status_value value +func (v ModuleStatusValue) Ptr() *ModuleStatusValue { + return &v +} + +type NullableModuleStatusValue struct { + value *ModuleStatusValue + isSet bool +} + +func (v NullableModuleStatusValue) Get() *ModuleStatusValue { + return v.value +} + +func (v *NullableModuleStatusValue) Set(val *ModuleStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatusValue(val *ModuleStatusValue) *NullableModuleStatusValue { + return &NullableModuleStatusValue{value: val, isSet: true} +} + +func (v NullableModuleStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_type.go b/model_module_type.go index 4b14e77195..b4b1c12747 100644 --- a/model_module_type.go +++ b/model_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ModuleType type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &ModuleType{} // ModuleType Adds support for custom fields and tags. type ModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +47,16 @@ type _ModuleType ModuleType // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType { +func NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime) *ModuleType { this := ModuleType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +116,30 @@ func (o *ModuleType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ModuleType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ModuleType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ModuleType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ModuleType) GetDisplay() string { if o == nil { @@ -126,9 +165,9 @@ func (o *ModuleType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleType) GetManufacturer() Manufacturer { +func (o *ModuleType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -137,7 +176,7 @@ func (o *ModuleType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -145,7 +184,7 @@ func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *ModuleType) SetManufacturer(v Manufacturer) { +func (o *ModuleType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } @@ -173,6 +212,167 @@ func (o *ModuleType) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetAirflow() ModuleTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeAirflow and assigns it to the Airflow field. +func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +405,154 @@ func (o *ModuleType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ModuleType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ModuleType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ModuleType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ModuleType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +565,36 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +610,12 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "manufacturer", "model", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +647,20 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go new file mode 100644 index 0000000000..593877481b --- /dev/null +++ b/model_module_type_airflow.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ModuleTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModuleTypeAirflow{} + +// ModuleTypeAirflow struct for ModuleTypeAirflow +type ModuleTypeAirflow struct { + Value *ModuleTypeAirflowValue `json:"value,omitempty"` + Label *ModuleTypeAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModuleTypeAirflow ModuleTypeAirflow + +// NewModuleTypeAirflow instantiates a new ModuleTypeAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModuleTypeAirflow() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Value) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModuleTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ModuleTypeAirflowValue and assigns it to the Value field. +func (o *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret ModuleTypeAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ModuleTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ModuleTypeAirflowLabel and assigns it to the Label field. +func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel) { + o.Label = &v +} + +func (o ModuleTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModuleTypeAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModuleTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varModuleTypeAirflow := _ModuleTypeAirflow{} + + err = json.Unmarshal(data, &varModuleTypeAirflow) + + if err != nil { + return err + } + + *o = ModuleTypeAirflow(varModuleTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModuleTypeAirflow struct { + value *ModuleTypeAirflow + isSet bool +} + +func (v NullableModuleTypeAirflow) Get() *ModuleTypeAirflow { + return v.value +} + +func (v *NullableModuleTypeAirflow) Set(val *ModuleTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflow(val *ModuleTypeAirflow) *NullableModuleTypeAirflow { + return &NullableModuleTypeAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go new file mode 100644 index 0000000000..471944e163 --- /dev/null +++ b/model_module_type_airflow_label.go @@ -0,0 +1,118 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowLabel the model 'ModuleTypeAirflowLabel' +type ModuleTypeAirflowLabel string + +// List of ModuleType_airflow_label +const ( + MODULETYPEAIRFLOWLABEL_FRONT_TO_REAR ModuleTypeAirflowLabel = "Front to rear" + MODULETYPEAIRFLOWLABEL_REAR_TO_FRONT ModuleTypeAirflowLabel = "Rear to front" + MODULETYPEAIRFLOWLABEL_LEFT_TO_RIGHT ModuleTypeAirflowLabel = "Left to right" + MODULETYPEAIRFLOWLABEL_RIGHT_TO_LEFT ModuleTypeAirflowLabel = "Right to left" + MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear" + MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive" +) + +// All allowed values of ModuleTypeAirflowLabel enum +var AllowedModuleTypeAirflowLabelEnumValues = []ModuleTypeAirflowLabel{ + "Front to rear", + "Rear to front", + "Left to right", + "Right to left", + "Side to rear", + "Passive", +} + +func (v *ModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowLabel(value) + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowLabel", value) +} + +// NewModuleTypeAirflowLabelFromValue returns a pointer to a valid ModuleTypeAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowLabelFromValue(v string) (*ModuleTypeAirflowLabel, error) { + ev := ModuleTypeAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowLabel: valid values are %v", v, AllowedModuleTypeAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowLabel) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_label value +func (v ModuleTypeAirflowLabel) Ptr() *ModuleTypeAirflowLabel { + return &v +} + +type NullableModuleTypeAirflowLabel struct { + value *ModuleTypeAirflowLabel + isSet bool +} + +func (v NullableModuleTypeAirflowLabel) Get() *ModuleTypeAirflowLabel { + return v.value +} + +func (v *NullableModuleTypeAirflowLabel) Set(val *ModuleTypeAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowLabel(val *ModuleTypeAirflowLabel) *NullableModuleTypeAirflowLabel { + return &NullableModuleTypeAirflowLabel{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go new file mode 100644 index 0000000000..9a137a826e --- /dev/null +++ b/model_module_type_airflow_value.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowValue * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +type ModuleTypeAirflowValue string + +// List of ModuleType_airflow_value +const ( + MODULETYPEAIRFLOWVALUE_FRONT_TO_REAR ModuleTypeAirflowValue = "front-to-rear" + MODULETYPEAIRFLOWVALUE_REAR_TO_FRONT ModuleTypeAirflowValue = "rear-to-front" + MODULETYPEAIRFLOWVALUE_LEFT_TO_RIGHT ModuleTypeAirflowValue = "left-to-right" + MODULETYPEAIRFLOWVALUE_RIGHT_TO_LEFT ModuleTypeAirflowValue = "right-to-left" + MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear" + MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive" + MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = "" +) + +// All allowed values of ModuleTypeAirflowValue enum +var AllowedModuleTypeAirflowValueEnumValues = []ModuleTypeAirflowValue{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowValue(value) + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowValue", value) +} + +// NewModuleTypeAirflowValueFromValue returns a pointer to a valid ModuleTypeAirflowValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowValueFromValue(v string) (*ModuleTypeAirflowValue, error) { + ev := ModuleTypeAirflowValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowValue: valid values are %v", v, AllowedModuleTypeAirflowValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowValue) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_value value +func (v ModuleTypeAirflowValue) Ptr() *ModuleTypeAirflowValue { + return &v +} + +type NullableModuleTypeAirflowValue struct { + value *ModuleTypeAirflowValue + isSet bool +} + +func (v NullableModuleTypeAirflowValue) Get() *ModuleTypeAirflowValue { + return v.value +} + +func (v *NullableModuleTypeAirflowValue) Set(val *ModuleTypeAirflowValue) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowValue(val *ModuleTypeAirflowValue) *NullableModuleTypeAirflowValue { + return &NullableModuleTypeAirflowValue{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_module_type_request.go b/model_module_type_request.go index e247e64025..689035e21f 100644 --- a/model_module_type_request.go +++ b/model_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +40,7 @@ type _ModuleTypeRequest ModuleTypeRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest { +func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest { this := ModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -48,9 +56,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -59,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -67,7 +75,7 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -95,6 +103,167 @@ func (o *ModuleTypeRequest) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +296,102 @@ func (o *ModuleTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +404,30 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +474,14 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go new file mode 100644 index 0000000000..a9747a89ab --- /dev/null +++ b/model_module_type_request_airflow.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +type ModuleTypeRequestAirflow string + +// List of ModuleTypeRequest_airflow +const ( + MODULETYPEREQUESTAIRFLOW_FRONT_TO_REAR ModuleTypeRequestAirflow = "front-to-rear" + MODULETYPEREQUESTAIRFLOW_REAR_TO_FRONT ModuleTypeRequestAirflow = "rear-to-front" + MODULETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT ModuleTypeRequestAirflow = "left-to-right" + MODULETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT ModuleTypeRequestAirflow = "right-to-left" + MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear" + MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive" + MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = "" +) + +// All allowed values of ModuleTypeRequestAirflow enum +var AllowedModuleTypeRequestAirflowEnumValues = []ModuleTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeRequestAirflow(value) + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeRequestAirflow", value) +} + +// NewModuleTypeRequestAirflowFromValue returns a pointer to a valid ModuleTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeRequestAirflowFromValue(v string) (*ModuleTypeRequestAirflow, error) { + ev := ModuleTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeRequestAirflow: valid values are %v", v, AllowedModuleTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleTypeRequest_airflow value +func (v ModuleTypeRequestAirflow) Ptr() *ModuleTypeRequestAirflow { + return &v +} + +type NullableModuleTypeRequestAirflow struct { + value *ModuleTypeRequestAirflow + isSet bool +} + +func (v NullableModuleTypeRequestAirflow) Get() *ModuleTypeRequestAirflow { + return v.value +} + +func (v *NullableModuleTypeRequestAirflow) Set(val *ModuleTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeRequestAirflow(val *ModuleTypeRequestAirflow) *NullableModuleTypeRequestAirflow { + return &NullableModuleTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go index 88eb0f283e..5a69246712 100644 --- a/model_nested_contact_group.go +++ b/model_nested_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedContactGroup{} type NestedContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedContactGroup NestedContactGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedContactGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedContactGroup { +func NewNestedContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedContactGroup { this := NestedContactGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedContactGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedContactGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go index f275f723db..727aba59fa 100644 --- a/model_nested_contact_group_request.go +++ b/model_nested_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_device.go b/model_nested_device.go index b37d25f5ed..b0e2541859 100644 --- a/model_nested_device.go +++ b/model_nested_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedDevice{} type NestedDevice struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedDevice NestedDevice // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedDevice(id int32, url string, display string) *NestedDevice { +func NewNestedDevice(id int32, url string, displayUrl string, display string) *NestedDevice { this := NestedDevice{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display return &this } @@ -97,6 +99,30 @@ func (o *NestedDevice) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedDevice) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedDevice) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedDevice) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedDevice) GetDisplay() string { if o == nil { @@ -176,6 +202,7 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -195,6 +222,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", } @@ -227,6 +255,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_device_request.go b/model_nested_device_request.go index 3d4692d865..648e65cef0 100644 --- a/model_nested_device_request.go +++ b/model_nested_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_group.go b/model_nested_group.go index 434d1679e3..016fa9b419 100644 --- a/model_nested_group.go +++ b/model_nested_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedGroup{} type NestedGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedGroup NestedGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedGroup(id int32, url string, display string, name string) *NestedGroup { +func NewNestedGroup(id int32, url string, displayUrl string, display string, name string) *NestedGroup { this := NestedGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -98,6 +100,30 @@ func (o *NestedGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedGroup) GetDisplay() string { if o == nil { @@ -158,6 +184,7 @@ func (o NestedGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -175,6 +202,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -208,6 +236,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_interface.go b/model_nested_interface.go index fd6230adfd..23b32113a4 100644 --- a/model_nested_interface.go +++ b/model_nested_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedInterface{} type NestedInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Device NestedDevice `json:"device"` Name string `json:"name"` @@ -36,10 +37,11 @@ type _NestedInterface NestedInterface // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { +func NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { this := NestedInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -103,6 +105,30 @@ func (o *NestedInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedInterface) GetDisplay() string { if o == nil { @@ -254,6 +280,7 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -276,6 +303,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -311,6 +339,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go index ddb108ba79..530a6c2da7 100644 --- a/model_nested_interface_request.go +++ b/model_nested_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go index af9322a663..6b9017737a 100644 --- a/model_nested_interface_template.go +++ b/model_nested_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go index db741a1b66..88221e71e7 100644 --- a/model_nested_interface_template_request.go +++ b/model_nested_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go new file mode 100644 index 0000000000..111eec2fd7 --- /dev/null +++ b/model_nested_ip_address.go @@ -0,0 +1,311 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedIPAddress{} + +// NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedIPAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddress NestedIPAddress + +// NewNestedIPAddress instantiates a new NestedIPAddress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string) *NestedIPAddress { + this := NestedIPAddress{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedIPAddressWithDefaults() *NestedIPAddress { + this := NestedIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *NestedIPAddress) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedIPAddress) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedIPAddress) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedIPAddress) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedIPAddress) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedIPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedIPAddress) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedIPAddress) SetDisplay(v string) { + o.Display = v +} + +// GetFamily returns the Family field value +func (o *NestedIPAddress) GetFamily() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetFamilyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *NestedIPAddress) SetFamily(v int32) { + o.Family = v +} + +// GetAddress returns the Address field value +func (o *NestedIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddress) SetAddress(v string) { + o.Address = v +} + +func (o NestedIPAddress) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "family", + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedIPAddress := _NestedIPAddress{} + + err = json.Unmarshal(data, &varNestedIPAddress) + + if err != nil { + return err + } + + *o = NestedIPAddress(varNestedIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddress struct { + value *NestedIPAddress + isSet bool +} + +func (v NullableNestedIPAddress) Get() *NestedIPAddress { + return v.value +} + +func (v *NullableNestedIPAddress) Set(val *NestedIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddress(val *NestedIPAddress) *NullableNestedIPAddress { + return &NullableNestedIPAddress{value: val, isSet: true} +} + +func (v NullableNestedIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedIPAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go new file mode 100644 index 0000000000..04c6e1e0d2 --- /dev/null +++ b/model_nested_ip_address_request.go @@ -0,0 +1,166 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedIPAddressRequest{} + +// NestedIPAddressRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedIPAddressRequest struct { + Address string `json:"address"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddressRequest NestedIPAddressRequest + +// NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedIPAddressRequest(address string) *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + this.Address = address + return &this +} + +// NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *NestedIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddressRequest) SetAddress(v string) { + o.Address = v +} + +func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedIPAddressRequest := _NestedIPAddressRequest{} + + err = json.Unmarshal(data, &varNestedIPAddressRequest) + + if err != nil { + return err + } + + *o = NestedIPAddressRequest(varNestedIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddressRequest struct { + value *NestedIPAddressRequest + isSet bool +} + +func (v NullableNestedIPAddressRequest) Get() *NestedIPAddressRequest { + return v.value +} + +func (v *NullableNestedIPAddressRequest) Set(val *NestedIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddressRequest(val *NestedIPAddressRequest) *NullableNestedIPAddressRequest { + return &NullableNestedIPAddressRequest{value: val, isSet: true} +} + +func (v NullableNestedIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedIPAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_location.go b/model_nested_location.go new file mode 100644 index 0000000000..7969efa5d0 --- /dev/null +++ b/model_nested_location.go @@ -0,0 +1,340 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedLocation{} + +// NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedLocation struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocation NestedLocation + +// NewNestedLocation instantiates a new NestedLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedLocation(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedLocation { + this := NestedLocation{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedLocationWithDefaults instantiates a new NestedLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedLocationWithDefaults() *NestedLocation { + this := NestedLocation{} + return &this +} + +// GetId returns the Id field value +func (o *NestedLocation) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedLocation) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedLocation) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedLocation) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedLocation) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedLocation) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedLocation) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedLocation) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *NestedLocation) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocation) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedLocation) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocation) SetSlug(v string) { + o.Slug = v +} + +// GetDepth returns the Depth field value +func (o *NestedLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedLocation) SetDepth(v int32) { + o.Depth = v +} + +func (o NestedLocation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedLocation := _NestedLocation{} + + err = json.Unmarshal(data, &varNestedLocation) + + if err != nil { + return err + } + + *o = NestedLocation(varNestedLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocation struct { + value *NestedLocation + isSet bool +} + +func (v NullableNestedLocation) Get() *NestedLocation { + return v.value +} + +func (v *NullableNestedLocation) Set(val *NestedLocation) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocation(val *NestedLocation) *NullableNestedLocation { + return &NullableNestedLocation{value: val, isSet: true} +} + +func (v NullableNestedLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_location_request.go b/model_nested_location_request.go new file mode 100644 index 0000000000..467e1f8a80 --- /dev/null +++ b/model_nested_location_request.go @@ -0,0 +1,195 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedLocationRequest{} + +// NestedLocationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedLocationRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocationRequest NestedLocationRequest + +// NewNestedLocationRequest instantiates a new NestedLocationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedLocationRequest(name string, slug string) *NestedLocationRequest { + this := NestedLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedLocationRequestWithDefaults() *NestedLocationRequest { + this := NestedLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NestedLocationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocationRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedLocationRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocationRequest) SetSlug(v string) { + o.Slug = v +} + +func (o NestedLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedLocationRequest := _NestedLocationRequest{} + + err = json.Unmarshal(data, &varNestedLocationRequest) + + if err != nil { + return err + } + + *o = NestedLocationRequest(varNestedLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocationRequest struct { + value *NestedLocationRequest + isSet bool +} + +func (v NullableNestedLocationRequest) Get() *NestedLocationRequest { + return v.value +} + +func (v *NullableNestedLocationRequest) Set(val *NestedLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocationRequest(val *NestedLocationRequest) *NullableNestedLocationRequest { + return &NullableNestedLocationRequest{value: val, isSet: true} +} + +func (v NullableNestedLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedLocationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go index c217493c73..b149afac99 100644 --- a/model_nested_module_bay.go +++ b/model_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &NestedModuleBay{} // NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -34,10 +34,11 @@ type _NestedModuleBay NestedModuleBay // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedModuleBay(id int32, url string, display string, name string) *NestedModuleBay { +func NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string) *NestedModuleBay { this := NestedModuleBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -99,71 +100,52 @@ func (o *NestedModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplay returns the Display field value -func (o *NestedModuleBay) GetDisplay() string { +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedModuleBay) GetDisplayUrl() string { if o == nil { var ret string return ret } - return o.Display + return o.DisplayUrl } -// GetDisplayOk returns a tuple with the Display field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { +func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool) { if o == nil { return nil, false } - return &o.Display, true + return &o.DisplayUrl, true } -// SetDisplay sets field value -func (o *NestedModuleBay) SetDisplay(v string) { - o.Display = v +// SetDisplayUrl sets field value +func (o *NestedModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = v } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModule +// GetDisplay returns the Display field value +func (o *NestedModuleBay) GetDisplay() string { + if o == nil { + var ret string return ret } - return *o.InstalledModule.Get() + + return o.Display } -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise +// GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool) { +func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBay) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field. -func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBay) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) + return &o.Display, true } -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBay) UnsetInstalledModule() { - o.InstalledModule.Unset() +// SetDisplay sets field value +func (o *NestedModuleBay) SetDisplay(v string) { + o.Display = v } // GetName returns the Name field value @@ -202,10 +184,8 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -222,6 +202,7 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -255,8 +236,8 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go index cda6e8c0c2..cc0d07f538 100644 --- a/model_nested_module_bay_request.go +++ b/model_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,7 @@ var _ MappedNullable = &NestedModuleBayRequest{} // NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBayRequest struct { - InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -45,49 +44,6 @@ func NewNestedModuleBayRequestWithDefaults() *NestedModuleBayRequest { return &this } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModuleRequest - return ret - } - return *o.InstalledModule.Get() -} - -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBayRequest) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field. -func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBayRequest) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) -} - -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBayRequest) UnsetInstalledModule() { - o.InstalledModule.Unset() -} - // GetName returns the Name field value func (o *NestedModuleBayRequest) GetName() string { if o == nil { @@ -122,9 +78,6 @@ func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -169,7 +122,6 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go new file mode 100644 index 0000000000..b13aaaeafe --- /dev/null +++ b/model_nested_provider_account.go @@ -0,0 +1,319 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedProviderAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedProviderAccount{} + +// NestedProviderAccount Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedProviderAccount struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + AdditionalProperties map[string]interface{} +} + +type _NestedProviderAccount NestedProviderAccount + +// NewNestedProviderAccount instantiates a new NestedProviderAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string) *NestedProviderAccount { + this := NestedProviderAccount{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Account = account + return &this +} + +// NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedProviderAccountWithDefaults() *NestedProviderAccount { + this := NestedProviderAccount{} + return &this +} + +// GetId returns the Id field value +func (o *NestedProviderAccount) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedProviderAccount) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedProviderAccount) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedProviderAccount) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedProviderAccount) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedProviderAccount) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedProviderAccount) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *NestedProviderAccount) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *NestedProviderAccount) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *NestedProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *NestedProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *NestedProviderAccount) SetAccount(v string) { + o.Account = v +} + +func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedProviderAccount := _NestedProviderAccount{} + + err = json.Unmarshal(data, &varNestedProviderAccount) + + if err != nil { + return err + } + + *o = NestedProviderAccount(varNestedProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedProviderAccount struct { + value *NestedProviderAccount + isSet bool +} + +func (v NullableNestedProviderAccount) Get() *NestedProviderAccount { + return v.value +} + +func (v *NullableNestedProviderAccount) Set(val *NestedProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableNestedProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedProviderAccount(val *NestedProviderAccount) *NullableNestedProviderAccount { + return &NullableNestedProviderAccount{value: val, isSet: true} +} + +func (v NullableNestedProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedProviderAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_region.go b/model_nested_region.go index 4282f5dd65..4d1fa217b6 100644 --- a/model_nested_region.go +++ b/model_nested_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedRegion{} type NestedRegion struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedRegion NestedRegion // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedRegion(id int32, url string, display string, name string, slug string, depth int32) *NestedRegion { +func NewNestedRegion(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedRegion { this := NestedRegion{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedRegion) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedRegion) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedRegion) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedRegion) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedRegion) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_region_request.go b/model_nested_region_request.go index 945e3f6506..6a1fe4279d 100644 --- a/model_nested_region_request.go +++ b/model_nested_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_site_group.go b/model_nested_site_group.go index 1b288b1682..5d45772a09 100644 --- a/model_nested_site_group.go +++ b/model_nested_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedSiteGroup{} type NestedSiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedSiteGroup NestedSiteGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedSiteGroup { +func NewNestedSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedSiteGroup { this := NestedSiteGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedSiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedSiteGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedSiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedSiteGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go index e0fbe632a6..eeaf37cc07 100644 --- a/model_nested_site_group_request.go +++ b/model_nested_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tag.go b/model_nested_tag.go index f03a0a999c..93b75f8087 100644 --- a/model_nested_tag.go +++ b/model_nested_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedTag{} type NestedTag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedTag NestedTag // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedTag(id int32, url string, display string, name string, slug string) *NestedTag { +func NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string) *NestedTag { this := NestedTag{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -101,6 +103,30 @@ func (o *NestedTag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedTag) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedTag) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedTag) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedTag) GetDisplay() string { if o == nil { @@ -217,6 +243,7 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -238,6 +265,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -272,6 +300,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go index f0d7d61b44..c10ab5ab6d 100644 --- a/model_nested_tag_request.go +++ b/model_nested_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go index a157ee354c..5814c2c372 100644 --- a/model_nested_tenant_group.go +++ b/model_nested_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedTenantGroup{} type NestedTenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedTenantGroup NestedTenantGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedTenantGroup { +func NewNestedTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedTenantGroup { this := NestedTenantGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedTenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedTenantGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedTenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedTenantGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go index c5ecbf890e..a16ab558b9 100644 --- a/model_nested_tenant_group_request.go +++ b/model_nested_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_user.go b/model_nested_user.go index 470de1affe..e7396b1a3f 100644 --- a/model_nested_user.go +++ b/model_nested_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ 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"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Username string `json:"username"` AdditionalProperties map[string]interface{} @@ -34,10 +35,11 @@ type _NestedUser NestedUser // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedUser(id int32, url string, display string, username string) *NestedUser { +func NewNestedUser(id int32, url string, displayUrl string, display string, username string) *NestedUser { this := NestedUser{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -99,6 +101,30 @@ func (o *NestedUser) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedUser) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedUser) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedUser) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedUser) GetDisplay() string { if o == nil { @@ -159,6 +185,7 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username @@ -176,6 +203,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "username", } @@ -209,6 +237,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go index e19da59db9..917467ab5c 100644 --- a/model_nested_virtual_machine.go +++ b/model_nested_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedVirtualMachine{} type NestedVirtualMachine struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedVirtualMachine NestedVirtualMachine // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedVirtualMachine(id int32, url string, display string, name string) *NestedVirtualMachine { +func NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string) *NestedVirtualMachine { this := NestedVirtualMachine{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -98,6 +100,30 @@ func (o *NestedVirtualMachine) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedVirtualMachine) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedVirtualMachine) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedVirtualMachine) GetDisplay() string { if o == nil { @@ -158,6 +184,7 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -175,6 +202,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -208,6 +236,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go index 7fb0d2b036..3a71f40e27 100644 --- a/model_nested_virtual_machine_request.go +++ b/model_nested_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go index be16224316..5d4c419e00 100644 --- a/model_nested_vm_interface.go +++ b/model_nested_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedVMInterface{} type NestedVMInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` VirtualMachine NestedVirtualMachine `json:"virtual_machine"` Name string `json:"name"` @@ -34,10 +35,11 @@ type _NestedVMInterface NestedVMInterface // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { +func NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { this := NestedVMInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -100,6 +102,30 @@ func (o *NestedVMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedVMInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedVMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedVMInterface) GetDisplay() string { if o == nil { @@ -184,6 +210,7 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -202,6 +229,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -236,6 +264,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go index ee8ecb2a32..5c31e855ba 100644 --- a/model_nested_vm_interface_request.go +++ b/model_nested_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go new file mode 100644 index 0000000000..bb782742de --- /dev/null +++ b/model_nested_wireless_lan_group.go @@ -0,0 +1,340 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedWirelessLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedWirelessLANGroup{} + +// NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedWirelessLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedWirelessLANGroup NestedWirelessLANGroup + +// NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NestedWirelessLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedWirelessLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedWirelessLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedWirelessLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedWirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedWirelessLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *NestedWirelessLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedWirelessLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedWirelessLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDepth returns the Depth field value +func (o *NestedWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedWirelessLANGroup := _NestedWirelessLANGroup{} + + err = json.Unmarshal(data, &varNestedWirelessLANGroup) + + if err != nil { + return err + } + + *o = NestedWirelessLANGroup(varNestedWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedWirelessLANGroup struct { + value *NestedWirelessLANGroup + isSet bool +} + +func (v NullableNestedWirelessLANGroup) Get() *NestedWirelessLANGroup { + return v.value +} + +func (v *NullableNestedWirelessLANGroup) Set(val *NestedWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNestedWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedWirelessLANGroup(val *NestedWirelessLANGroup) *NullableNestedWirelessLANGroup { + return &NullableNestedWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableNestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedWirelessLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go index 8e8b204a17..304b68ce8b 100644 --- a/model_nested_wireless_lan_group_request.go +++ b/model_nested_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go index bc6328e76d..1bb94fc280 100644 --- a/model_nested_wireless_link.go +++ b/model_nested_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedWirelessLink{} type NestedWirelessLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedWirelessLink NestedWirelessLink // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewNestedWirelessLink(id int32, url string, display string) *NestedWirelessLink { +func NewNestedWirelessLink(id int32, url string, displayUrl string, display string) *NestedWirelessLink { this := NestedWirelessLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display return &this } @@ -97,6 +99,30 @@ func (o *NestedWirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedWirelessLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedWirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedWirelessLink) GetDisplay() string { if o == nil { @@ -165,6 +191,7 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid @@ -184,6 +211,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", } @@ -216,6 +244,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") o.AdditionalProperties = additionalProperties diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go index 49e5860282..97c39ec106 100644 --- a/model_nested_wireless_link_request.go +++ b/model_nested_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification.go b/model_notification.go new file mode 100644 index 0000000000..c2abe13bc2 --- /dev/null +++ b/model_notification.go @@ -0,0 +1,451 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Notification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Notification{} + +// Notification Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type Notification struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _Notification Notification + +// NewNotification instantiates a new Notification object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotification(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, eventType Event) *Notification { + this := Notification{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + this.User = user + this.Created = created + this.EventType = eventType + return &this +} + +// NewNotificationWithDefaults instantiates a new Notification object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationWithDefaults() *Notification { + this := Notification{} + return &this +} + +// GetId returns the Id field value +func (o *Notification) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Notification) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Notification) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *Notification) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Notification) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Notification) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *Notification) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Notification) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Notification) SetDisplay(v string) { + o.Display = v +} + +// GetObjectType returns the ObjectType field value +func (o *Notification) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *Notification) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Notification) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *Notification) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *Notification) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Notification) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *Notification) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Notification) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *Notification) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Notification) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *Notification) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Notification) SetUser(v BriefUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *Notification) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Notification) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Notification) SetCreated(v time.Time) { + o.Created = v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Notification) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Notification) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *Notification) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *Notification) SetRead(v time.Time) { + o.Read.Set(&v) +} + +// SetReadNil sets the value for Read to be an explicit nil +func (o *Notification) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *Notification) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *Notification) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *Notification) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *Notification) SetEventType(v Event) { + o.EventType = v +} + +func (o Notification) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Notification) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Notification) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "object", + "user", + "created", + "event_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotification := _Notification{} + + err = json.Unmarshal(data, &varNotification) + + if err != nil { + return err + } + + *o = Notification(varNotification) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotification struct { + value *Notification + isSet bool +} + +func (v NullableNotification) Get() *Notification { + return v.value +} + +func (v *NullableNotification) Set(val *Notification) { + v.value = val + v.isSet = true +} + +func (v NullableNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotification(val *Notification) *NullableNotification { + return &NullableNotification{value: val, isSet: true} +} + +func (v NullableNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_notification_group.go b/model_notification_group.go new file mode 100644 index 0000000000..9d6f702c0a --- /dev/null +++ b/model_notification_group.go @@ -0,0 +1,393 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroup{} + +// NotificationGroup Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DisplayUrl string `json:"display_url"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []Group `json:"groups,omitempty"` + Users []User `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroup NotificationGroup + +// NewNotificationGroup instantiates a new NotificationGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationGroup(id int32, url string, display string, displayUrl string, name string) *NotificationGroup { + this := NotificationGroup{} + this.Id = id + this.Url = url + this.Display = display + this.DisplayUrl = displayUrl + this.Name = name + return &this +} + +// NewNotificationGroupWithDefaults instantiates a new NotificationGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationGroupWithDefaults() *NotificationGroup { + this := NotificationGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NotificationGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NotificationGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NotificationGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NotificationGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *NotificationGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NotificationGroup) SetDisplay(v string) { + o.Display = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NotificationGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NotificationGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetName returns the Name field value +func (o *NotificationGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroup) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *NotificationGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NotificationGroup) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroup) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroup) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *NotificationGroup) SetGroups(v []Group) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroup) GetUsers() []User { + if o == nil || IsNil(o.Users) { + var ret []User + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetUsersOk() ([]User, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroup) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []User and assigns it to the Users field. +func (o *NotificationGroup) SetUsers(v []User) { + o.Users = v +} + +func (o NotificationGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["display_url"] = o.DisplayUrl + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "display_url", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationGroup := _NotificationGroup{} + + err = json.Unmarshal(data, &varNotificationGroup) + + if err != nil { + return err + } + + *o = NotificationGroup(varNotificationGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "display_url") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroup struct { + value *NotificationGroup + isSet bool +} + +func (v NullableNotificationGroup) Get() *NotificationGroup { + return v.value +} + +func (v *NullableNotificationGroup) Set(val *NotificationGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroup(val *NotificationGroup) *NullableNotificationGroup { + return &NullableNotificationGroup{value: val, isSet: true} +} + +func (v NullableNotificationGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_notification_group_request.go b/model_notification_group_request.go new file mode 100644 index 0000000000..8a04b26b31 --- /dev/null +++ b/model_notification_group_request.go @@ -0,0 +1,277 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroupRequest{} + +// NotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationGroupRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroupRequest NotificationGroupRequest + +// NewNotificationGroupRequest instantiates a new NotificationGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationGroupRequest(name string) *NotificationGroupRequest { + this := NotificationGroupRequest{} + this.Name = name + return &this +} + +// NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest { + this := NotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NotificationGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroupRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *NotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *NotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o NotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationGroupRequest := _NotificationGroupRequest{} + + err = json.Unmarshal(data, &varNotificationGroupRequest) + + if err != nil { + return err + } + + *o = NotificationGroupRequest(varNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroupRequest struct { + value *NotificationGroupRequest + isSet bool +} + +func (v NullableNotificationGroupRequest) Get() *NotificationGroupRequest { + return v.value +} + +func (v *NullableNotificationGroupRequest) Set(val *NotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroupRequest(val *NotificationGroupRequest) *NullableNotificationGroupRequest { + return &NullableNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullableNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_notification_request.go b/model_notification_request.go new file mode 100644 index 0000000000..7a7f80a2e1 --- /dev/null +++ b/model_notification_request.go @@ -0,0 +1,302 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the NotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationRequest{} + +// NotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _NotificationRequest NotificationRequest + +// NewNotificationRequest instantiates a new NotificationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event) *NotificationRequest { + this := NotificationRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + this.EventType = eventType + return &this +} + +// NewNotificationRequestWithDefaults instantiates a new NotificationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationRequestWithDefaults() *NotificationRequest { + this := NotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *NotificationRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *NotificationRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *NotificationRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *NotificationRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *NotificationRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *NotificationRequest) SetUser(v BriefUserRequest) { + o.User = v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *NotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *NotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} + +// SetReadNil sets the value for Read to be an explicit nil +func (o *NotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *NotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *NotificationRequest) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *NotificationRequest) SetEventType(v Event) { + o.EventType = v +} + +func (o NotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + "event_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationRequest := _NotificationRequest{} + + err = json.Unmarshal(data, &varNotificationRequest) + + if err != nil { + return err + } + + *o = NotificationRequest(varNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationRequest struct { + value *NotificationRequest + isSet bool +} + +func (v NullableNotificationRequest) Get() *NotificationRequest { + return v.value +} + +func (v *NullableNotificationRequest) Set(val *NotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationRequest(val *NotificationRequest) *NullableNotificationRequest { + return &NullableNotificationRequest{value: val, isSet: true} +} + +func (v NullableNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_object_change.go b/model_object_change.go index 24b5c95cce..f82fb00cdd 100644 --- a/model_object_change.go +++ b/model_object_change.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,10 @@ var _ MappedNullable = &ObjectChange{} type ObjectChange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Time time.Time `json:"time"` - User User `json:"user"` + User BriefUser `json:"user"` UserName string `json:"user_name"` RequestId string `json:"request_id"` Action ObjectChangeAction `json:"action"` @@ -43,10 +44,11 @@ type _ObjectChange ObjectChange // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { +func NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { this := ObjectChange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Time = time this.User = user @@ -117,6 +119,30 @@ func (o *ObjectChange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ObjectChange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ObjectChange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ObjectChange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ObjectChange) GetDisplay() string { if o == nil { @@ -166,9 +192,9 @@ func (o *ObjectChange) SetTime(v time.Time) { } // GetUser returns the User field value -func (o *ObjectChange) GetUser() User { +func (o *ObjectChange) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -177,7 +203,7 @@ func (o *ObjectChange) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *ObjectChange) GetUserOk() (*User, bool) { +func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -185,7 +211,7 @@ func (o *ObjectChange) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *ObjectChange) SetUser(v User) { +func (o *ObjectChange) SetUser(v BriefUser) { o.User = v } @@ -399,6 +425,7 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["time"] = o.Time toSerialize["user"] = o.User @@ -431,6 +458,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "time", "user", @@ -473,6 +501,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "time") delete(additionalProperties, "user") diff --git a/model_object_change_action.go b/model_object_change_action.go index 4e2bcdbc3c..6c35d4b596 100644 --- a/model_object_change_action.go +++ b/model_object_change_action.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go index ee7329967e..1a327631df 100644 --- a/model_object_change_action_label.go +++ b/model_object_change_action_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go index 59e9cd339d..5a8cadc061 100644 --- a/model_object_change_action_value.go +++ b/model_object_change_action_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_permission.go b/model_object_permission.go index 7835c2b8d1..1f592ea9ac 100644 --- a/model_object_permission.go +++ b/model_object_permission.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &ObjectPermission{} type ObjectPermission struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _ObjectPermission ObjectPermission // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { +func NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { this := ObjectPermission{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ObjectTypes = objectTypes @@ -109,6 +111,30 @@ func (o *ObjectPermission) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ObjectPermission) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ObjectPermission) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ObjectPermission) GetDisplay() string { if o == nil { @@ -378,6 +404,7 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -412,6 +439,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "object_types", @@ -447,6 +475,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_object_permission_request.go b/model_object_permission_request.go index 05e9aa4e20..eb669ac883 100644 --- a/model_object_permission_request.go +++ b/model_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_type.go b/model_object_type.go index f08d354c94..655aa37d2c 100644 --- a/model_object_type.go +++ b/model_object_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go index 81e2b86033..c6c83d1a71 100644 --- a/model_paginated_aggregate_list.go +++ b/model_paginated_aggregate_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go index 183c0353f5..7009e4608e 100644 --- a/model_paginated_asn_list.go +++ b/model_paginated_asn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go index d96366e065..1ee76f53b4 100644 --- a/model_paginated_asn_range_list.go +++ b/model_paginated_asn_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go index 64a4425b27..170b3c3da9 100644 --- a/model_paginated_bookmark_list.go +++ b/model_paginated_bookmark_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go index cc214c3b23..90859b01fc 100644 --- a/model_paginated_cable_list.go +++ b/model_paginated_cable_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go index 3a368c6b31..29b017aa0a 100644 --- a/model_paginated_cable_termination_list.go +++ b/model_paginated_cable_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go new file mode 100644 index 0000000000..d1dea9dd98 --- /dev/null +++ b/model_paginated_circuit_group_assignment_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupAssignmentList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupAssignmentList{} + +// PaginatedCircuitGroupAssignmentList struct for PaginatedCircuitGroupAssignmentList +type PaginatedCircuitGroupAssignmentList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroupAssignment `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupAssignmentList PaginatedCircuitGroupAssignmentList + +// NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment) *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupAssignmentList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupAssignmentList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupAssignmentList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupAssignmentList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupAssignmentList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupAssignmentList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment { + if o == nil { + var ret []CircuitGroupAssignment + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() ([]CircuitGroupAssignment, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment) { + o.Results = v +} + +func (o PaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupAssignmentList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupAssignmentList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedCircuitGroupAssignmentList := _PaginatedCircuitGroupAssignmentList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupAssignmentList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupAssignmentList(varPaginatedCircuitGroupAssignmentList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupAssignmentList struct { + value *PaginatedCircuitGroupAssignmentList + isSet bool +} + +func (v NullablePaginatedCircuitGroupAssignmentList) Get() *PaginatedCircuitGroupAssignmentList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Set(val *PaginatedCircuitGroupAssignmentList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupAssignmentList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupAssignmentList(val *PaginatedCircuitGroupAssignmentList) *NullablePaginatedCircuitGroupAssignmentList { + return &NullablePaginatedCircuitGroupAssignmentList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go new file mode 100644 index 0000000000..06997e5d29 --- /dev/null +++ b/model_paginated_circuit_group_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupList{} + +// PaginatedCircuitGroupList struct for PaginatedCircuitGroupList +type PaginatedCircuitGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupList PaginatedCircuitGroupList + +// NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCircuitGroupList(count int32, results []CircuitGroup) *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedCircuitGroupList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedCircuitGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup { + if o == nil { + var ret []CircuitGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetResultsOk() ([]CircuitGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup) { + o.Results = v +} + +func (o PaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedCircuitGroupList := _PaginatedCircuitGroupList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupList(varPaginatedCircuitGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupList struct { + value *PaginatedCircuitGroupList + isSet bool +} + +func (v NullablePaginatedCircuitGroupList) Get() *PaginatedCircuitGroupList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupList) Set(val *PaginatedCircuitGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupList(val *PaginatedCircuitGroupList) *NullablePaginatedCircuitGroupList { + return &NullablePaginatedCircuitGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go index d2a32fd8a9..0c58ed2d3a 100644 --- a/model_paginated_circuit_list.go +++ b/model_paginated_circuit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go index 71138eab95..b50164eb85 100644 --- a/model_paginated_circuit_termination_list.go +++ b/model_paginated_circuit_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go index 1487938304..6d9f9c3e9e 100644 --- a/model_paginated_circuit_type_list.go +++ b/model_paginated_circuit_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go index 2263a7dfb5..f5b36990d6 100644 --- a/model_paginated_cluster_group_list.go +++ b/model_paginated_cluster_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go index da077b2c64..34228b3d7d 100644 --- a/model_paginated_cluster_list.go +++ b/model_paginated_cluster_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go index 7243ef83d4..2ec2342fbe 100644 --- a/model_paginated_cluster_type_list.go +++ b/model_paginated_cluster_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go index 4db50833df..c71d1c37c9 100644 --- a/model_paginated_config_context_list.go +++ b/model_paginated_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go index 36f8990fff..09d4ffe971 100644 --- a/model_paginated_config_template_list.go +++ b/model_paginated_config_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go index 7d8bb83676..d28bfe8f02 100644 --- a/model_paginated_console_port_list.go +++ b/model_paginated_console_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go index b424049c9a..4a4c094287 100644 --- a/model_paginated_console_port_template_list.go +++ b/model_paginated_console_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go index adfb94743a..0ad87ae00c 100644 --- a/model_paginated_console_server_port_list.go +++ b/model_paginated_console_server_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go index 51278f9f82..f3b9785c46 100644 --- a/model_paginated_console_server_port_template_list.go +++ b/model_paginated_console_server_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go index ea9e239461..18bed698f8 100644 --- a/model_paginated_contact_assignment_list.go +++ b/model_paginated_contact_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go index 77bd6c70f2..5258ff5398 100644 --- a/model_paginated_contact_group_list.go +++ b/model_paginated_contact_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go index 72294eba7b..3cf70ac193 100644 --- a/model_paginated_contact_list.go +++ b/model_paginated_contact_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go index fc486241c6..5c5873c960 100644 --- a/model_paginated_contact_role_list.go +++ b/model_paginated_contact_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go index 48e25bb94b..b5d9571e2f 100644 --- a/model_paginated_custom_field_choice_set_list.go +++ b/model_paginated_custom_field_choice_set_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go index 1f0c58fc05..293ca2b857 100644 --- a/model_paginated_custom_field_list.go +++ b/model_paginated_custom_field_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go index 00815cc84c..9ed4a2176a 100644 --- a/model_paginated_custom_link_list.go +++ b/model_paginated_custom_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go index 260f045b2d..86ff12069f 100644 --- a/model_paginated_data_file_list.go +++ b/model_paginated_data_file_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go index 326295e6d9..2cc611ddb6 100644 --- a/model_paginated_data_source_list.go +++ b/model_paginated_data_source_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go index c83d4e2c60..107345ef7a 100644 --- a/model_paginated_device_bay_list.go +++ b/model_paginated_device_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go index 45928db4d5..0c9c4eadbd 100644 --- a/model_paginated_device_bay_template_list.go +++ b/model_paginated_device_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go index 15f1f91b8c..61925657cb 100644 --- a/model_paginated_device_role_list.go +++ b/model_paginated_device_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go index 66636b1bf8..cd489ed9af 100644 --- a/model_paginated_device_type_list.go +++ b/model_paginated_device_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go index 654c3dff0b..65b7e11271 100644 --- a/model_paginated_device_with_config_context_list.go +++ b/model_paginated_device_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go index 0d05d05cdb..7eba5e299f 100644 --- a/model_paginated_event_rule_list.go +++ b/model_paginated_event_rule_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go index d1160be70a..ebd3f4e61f 100644 --- a/model_paginated_export_template_list.go +++ b/model_paginated_export_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go index 45ede081cc..a8c732e576 100644 --- a/model_paginated_fhrp_group_assignment_list.go +++ b/model_paginated_fhrp_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go index a0faea7598..0f846f23e2 100644 --- a/model_paginated_fhrp_group_list.go +++ b/model_paginated_fhrp_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go index 4e6f4d89fb..f63523553e 100644 --- a/model_paginated_front_port_list.go +++ b/model_paginated_front_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go index 66bfe434b8..8ac3ee81b9 100644 --- a/model_paginated_front_port_template_list.go +++ b/model_paginated_front_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go index 4c9d727810..e9b21094ff 100644 --- a/model_paginated_group_list.go +++ b/model_paginated_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go index f49bbcfd25..653b7c0c34 100644 --- a/model_paginated_ike_policy_list.go +++ b/model_paginated_ike_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go index 7a9cb122bb..5b662299c7 100644 --- a/model_paginated_ike_proposal_list.go +++ b/model_paginated_ike_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go index 0dcc7260c8..f11189e588 100644 --- a/model_paginated_image_attachment_list.go +++ b/model_paginated_image_attachment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go index 9ea763c865..e50226c193 100644 --- a/model_paginated_interface_list.go +++ b/model_paginated_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go index c7f17dff34..1ae3a254e2 100644 --- a/model_paginated_interface_template_list.go +++ b/model_paginated_interface_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go index 8eae06c5de..84c5220e62 100644 --- a/model_paginated_inventory_item_list.go +++ b/model_paginated_inventory_item_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go index 7a3dfa86ab..b9bd492c32 100644 --- a/model_paginated_inventory_item_role_list.go +++ b/model_paginated_inventory_item_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go index 8e1ebbaad3..0232fa0b99 100644 --- a/model_paginated_inventory_item_template_list.go +++ b/model_paginated_inventory_item_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go index 71c624ba55..6d63f492c2 100644 --- a/model_paginated_ip_address_list.go +++ b/model_paginated_ip_address_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go index 64b6c2ca53..b193d7bbfc 100644 --- a/model_paginated_ip_range_list.go +++ b/model_paginated_ip_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go index 3904a40213..5e2227e4a8 100644 --- a/model_paginated_ip_sec_policy_list.go +++ b/model_paginated_ip_sec_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go index 13e5dc8cc0..0fd4a0272c 100644 --- a/model_paginated_ip_sec_profile_list.go +++ b/model_paginated_ip_sec_profile_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go index 562d884cfd..f313018fff 100644 --- a/model_paginated_ip_sec_proposal_list.go +++ b/model_paginated_ip_sec_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go index 9c5266b906..26a4d5715b 100644 --- a/model_paginated_job_list.go +++ b/model_paginated_job_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go index 39deffe63b..7139b196ec 100644 --- a/model_paginated_journal_entry_list.go +++ b/model_paginated_journal_entry_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go index 130fb6318e..64e0ed7cda 100644 --- a/model_paginated_l2_vpn_list.go +++ b/model_paginated_l2_vpn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go index 6fdc179aeb..9661701e50 100644 --- a/model_paginated_l2_vpn_termination_list.go +++ b/model_paginated_l2_vpn_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go index 303ddb6f14..f809c4a099 100644 --- a/model_paginated_location_list.go +++ b/model_paginated_location_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go index 1642d70e38..de01bdd8ae 100644 --- a/model_paginated_manufacturer_list.go +++ b/model_paginated_manufacturer_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go index 70cca7b2d2..cca78ae533 100644 --- a/model_paginated_module_bay_list.go +++ b/model_paginated_module_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go index af3faa856f..551d96ead5 100644 --- a/model_paginated_module_bay_template_list.go +++ b/model_paginated_module_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go index af55ae2928..af8c0f8653 100644 --- a/model_paginated_module_list.go +++ b/model_paginated_module_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go index 375f3b8f4d..073d014430 100644 --- a/model_paginated_module_type_list.go +++ b/model_paginated_module_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go new file mode 100644 index 0000000000..7ecd87d9a6 --- /dev/null +++ b/model_paginated_notification_group_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationGroupList{} + +// PaginatedNotificationGroupList struct for PaginatedNotificationGroupList +type PaginatedNotificationGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []NotificationGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationGroupList PaginatedNotificationGroupList + +// NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedNotificationGroupList(count int32, results []NotificationGroup) *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationGroupList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationGroupList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationGroupList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedNotificationGroupList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedNotificationGroupList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationGroupList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationGroupList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationGroupList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedNotificationGroupList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedNotificationGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup { + if o == nil { + var ret []NotificationGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetResultsOk() ([]NotificationGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup) { + o.Results = v +} + +func (o PaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedNotificationGroupList := _PaginatedNotificationGroupList{} + + err = json.Unmarshal(data, &varPaginatedNotificationGroupList) + + if err != nil { + return err + } + + *o = PaginatedNotificationGroupList(varPaginatedNotificationGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationGroupList struct { + value *PaginatedNotificationGroupList + isSet bool +} + +func (v NullablePaginatedNotificationGroupList) Get() *PaginatedNotificationGroupList { + return v.value +} + +func (v *NullablePaginatedNotificationGroupList) Set(val *PaginatedNotificationGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationGroupList(val *PaginatedNotificationGroupList) *NullablePaginatedNotificationGroupList { + return &NullablePaginatedNotificationGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go new file mode 100644 index 0000000000..1d663dee5f --- /dev/null +++ b/model_paginated_notification_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationList{} + +// PaginatedNotificationList struct for PaginatedNotificationList +type PaginatedNotificationList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Notification `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationList PaginatedNotificationList + +// NewPaginatedNotificationList instantiates a new PaginatedNotificationList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedNotificationList(count int32, results []Notification) *PaginatedNotificationList { + this := PaginatedNotificationList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList { + this := PaginatedNotificationList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedNotificationList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedNotificationList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedNotificationList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedNotificationList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationList) GetResults() []Notification { + if o == nil { + var ret []Notification + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetResultsOk() ([]Notification, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationList) SetResults(v []Notification) { + o.Results = v +} + +func (o PaginatedNotificationList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedNotificationList := _PaginatedNotificationList{} + + err = json.Unmarshal(data, &varPaginatedNotificationList) + + if err != nil { + return err + } + + *o = PaginatedNotificationList(varPaginatedNotificationList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationList struct { + value *PaginatedNotificationList + isSet bool +} + +func (v NullablePaginatedNotificationList) Get() *PaginatedNotificationList { + return v.value +} + +func (v *NullablePaginatedNotificationList) Set(val *PaginatedNotificationList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationList(val *PaginatedNotificationList) *NullablePaginatedNotificationList { + return &NullablePaginatedNotificationList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go index c4cd994e46..f330a9698f 100644 --- a/model_paginated_object_change_list.go +++ b/model_paginated_object_change_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go index 2484322f10..11fc0ae286 100644 --- a/model_paginated_object_permission_list.go +++ b/model_paginated_object_permission_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go index 1a24ef8877..522eb2cf71 100644 --- a/model_paginated_object_type_list.go +++ b/model_paginated_object_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go index a5637f7863..2a488d7547 100644 --- a/model_paginated_platform_list.go +++ b/model_paginated_platform_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go index a90726d50f..fb3d7670c1 100644 --- a/model_paginated_power_feed_list.go +++ b/model_paginated_power_feed_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go index 42cc10417d..26425b036e 100644 --- a/model_paginated_power_outlet_list.go +++ b/model_paginated_power_outlet_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go index dabff54c76..614cc6f751 100644 --- a/model_paginated_power_outlet_template_list.go +++ b/model_paginated_power_outlet_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go index a84ec93630..308656a761 100644 --- a/model_paginated_power_panel_list.go +++ b/model_paginated_power_panel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go index a1b1474205..0ab6a3cafa 100644 --- a/model_paginated_power_port_list.go +++ b/model_paginated_power_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go index d8e7091525..d374c87c5c 100644 --- a/model_paginated_power_port_template_list.go +++ b/model_paginated_power_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go index 07147ed992..7ddb16c838 100644 --- a/model_paginated_prefix_list.go +++ b/model_paginated_prefix_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go index c485850387..48d72dc61f 100644 --- a/model_paginated_provider_account_list.go +++ b/model_paginated_provider_account_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go index 5b180ac542..cfe0f17db0 100644 --- a/model_paginated_provider_list.go +++ b/model_paginated_provider_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go index b97c267f7e..c4859849b5 100644 --- a/model_paginated_provider_network_list.go +++ b/model_paginated_provider_network_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go index f7bdd10a2a..86069f2773 100644 --- a/model_paginated_rack_list.go +++ b/model_paginated_rack_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go index 20a7994644..b191e703ae 100644 --- a/model_paginated_rack_reservation_list.go +++ b/model_paginated_rack_reservation_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go index e15fd7e27b..602f029905 100644 --- a/model_paginated_rack_role_list.go +++ b/model_paginated_rack_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go new file mode 100644 index 0000000000..9a16db96bc --- /dev/null +++ b/model_paginated_rack_type_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedRackTypeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedRackTypeList{} + +// PaginatedRackTypeList struct for PaginatedRackTypeList +type PaginatedRackTypeList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackType `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedRackTypeList PaginatedRackTypeList + +// NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedRackTypeList(count int32, results []RackType) *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedRackTypeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedRackTypeList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedRackTypeList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedRackTypeList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedRackTypeList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedRackTypeList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedRackTypeList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedRackTypeList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedRackTypeList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedRackTypeList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedRackTypeList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedRackTypeList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedRackTypeList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedRackTypeList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedRackTypeList) GetResults() []RackType { + if o == nil { + var ret []RackType + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetResultsOk() ([]RackType, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedRackTypeList) SetResults(v []RackType) { + o.Results = v +} + +func (o PaginatedRackTypeList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedRackTypeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedRackTypeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedRackTypeList := _PaginatedRackTypeList{} + + err = json.Unmarshal(data, &varPaginatedRackTypeList) + + if err != nil { + return err + } + + *o = PaginatedRackTypeList(varPaginatedRackTypeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedRackTypeList struct { + value *PaginatedRackTypeList + isSet bool +} + +func (v NullablePaginatedRackTypeList) Get() *PaginatedRackTypeList { + return v.value +} + +func (v *NullablePaginatedRackTypeList) Set(val *PaginatedRackTypeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedRackTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedRackTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedRackTypeList(val *PaginatedRackTypeList) *NullablePaginatedRackTypeList { + return &NullablePaginatedRackTypeList{value: val, isSet: true} +} + +func (v NullablePaginatedRackTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedRackTypeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go index 6aaf2e9d78..3a55e32c7e 100644 --- a/model_paginated_rack_unit_list.go +++ b/model_paginated_rack_unit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go index c365786aad..b972303546 100644 --- a/model_paginated_rear_port_list.go +++ b/model_paginated_rear_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go index 72c089dfbb..d6f4cbb722 100644 --- a/model_paginated_rear_port_template_list.go +++ b/model_paginated_rear_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go index 3107d80079..de3e804811 100644 --- a/model_paginated_region_list.go +++ b/model_paginated_region_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go index 87507a75df..3eb1ba8f73 100644 --- a/model_paginated_rir_list.go +++ b/model_paginated_rir_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go index c22ab93d15..60ae46699c 100644 --- a/model_paginated_role_list.go +++ b/model_paginated_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go index b6f02c9060..28a024800f 100644 --- a/model_paginated_route_target_list.go +++ b/model_paginated_route_target_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go index 485e610813..1138351ad5 100644 --- a/model_paginated_saved_filter_list.go +++ b/model_paginated_saved_filter_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go index 72fec520fb..7cb07d00d3 100644 --- a/model_paginated_script_list.go +++ b/model_paginated_script_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go index 08b5508bec..f1d11e59a2 100644 --- a/model_paginated_service_list.go +++ b/model_paginated_service_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go index e86b9abb98..3dcd1650ea 100644 --- a/model_paginated_service_template_list.go +++ b/model_paginated_service_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go index ddcd397c90..40435aaede 100644 --- a/model_paginated_site_group_list.go +++ b/model_paginated_site_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go index a580aaedaa..1934e59f5d 100644 --- a/model_paginated_site_list.go +++ b/model_paginated_site_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go new file mode 100644 index 0000000000..1402263c45 --- /dev/null +++ b/model_paginated_subscription_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedSubscriptionList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedSubscriptionList{} + +// PaginatedSubscriptionList struct for PaginatedSubscriptionList +type PaginatedSubscriptionList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Subscription `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedSubscriptionList PaginatedSubscriptionList + +// NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedSubscriptionList(count int32, results []Subscription) *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedSubscriptionList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedSubscriptionList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedSubscriptionList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedSubscriptionList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedSubscriptionList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedSubscriptionList) SetNext(v string) { + o.Next.Set(&v) +} + +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedSubscriptionList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedSubscriptionList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedSubscriptionList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedSubscriptionList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedSubscriptionList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedSubscriptionList) SetPrevious(v string) { + o.Previous.Set(&v) +} + +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedSubscriptionList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedSubscriptionList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedSubscriptionList) GetResults() []Subscription { + if o == nil { + var ret []Subscription + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetResultsOk() ([]Subscription, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedSubscriptionList) SetResults(v []Subscription) { + o.Results = v +} + +func (o PaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedSubscriptionList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedSubscriptionList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedSubscriptionList := _PaginatedSubscriptionList{} + + err = json.Unmarshal(data, &varPaginatedSubscriptionList) + + if err != nil { + return err + } + + *o = PaginatedSubscriptionList(varPaginatedSubscriptionList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedSubscriptionList struct { + value *PaginatedSubscriptionList + isSet bool +} + +func (v NullablePaginatedSubscriptionList) Get() *PaginatedSubscriptionList { + return v.value +} + +func (v *NullablePaginatedSubscriptionList) Set(val *PaginatedSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedSubscriptionList(val *PaginatedSubscriptionList) *NullablePaginatedSubscriptionList { + return &NullablePaginatedSubscriptionList{value: val, isSet: true} +} + +func (v NullablePaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go index 129bb69b60..8396766c38 100644 --- a/model_paginated_tag_list.go +++ b/model_paginated_tag_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go index 5fcddc5435..28f7a94790 100644 --- a/model_paginated_tenant_group_list.go +++ b/model_paginated_tenant_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go index 812dfe3864..47171d67de 100644 --- a/model_paginated_tenant_list.go +++ b/model_paginated_tenant_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go index 9a4bd2ab94..ef4ffa5ad2 100644 --- a/model_paginated_token_list.go +++ b/model_paginated_token_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go index df1b972fb6..62e15f8115 100644 --- a/model_paginated_tunnel_group_list.go +++ b/model_paginated_tunnel_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go index 768bdd00e9..f1573f68ba 100644 --- a/model_paginated_tunnel_list.go +++ b/model_paginated_tunnel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go index f81a84ee00..0016390f72 100644 --- a/model_paginated_tunnel_termination_list.go +++ b/model_paginated_tunnel_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go index 2d6a259134..60158a9c2b 100644 --- a/model_paginated_user_list.go +++ b/model_paginated_user_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go index 6971b8d292..669c94054c 100644 --- a/model_paginated_virtual_chassis_list.go +++ b/model_paginated_virtual_chassis_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go index 3c5f35c090..43b8f5f94f 100644 --- a/model_paginated_virtual_device_context_list.go +++ b/model_paginated_virtual_device_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go index 1a16c146d7..0fe3e2fbff 100644 --- a/model_paginated_virtual_disk_list.go +++ b/model_paginated_virtual_disk_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go index a4ee1f21d9..c4999c5129 100644 --- a/model_paginated_virtual_machine_with_config_context_list.go +++ b/model_paginated_virtual_machine_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go index cd2ac49512..7dbf5849b3 100644 --- a/model_paginated_vlan_group_list.go +++ b/model_paginated_vlan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go index 28d8921ca7..902c4214f8 100644 --- a/model_paginated_vlan_list.go +++ b/model_paginated_vlan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go index c7d824fa8f..45a4ea1b72 100644 --- a/model_paginated_vm_interface_list.go +++ b/model_paginated_vm_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go index 95d2794d7f..71e41b578f 100644 --- a/model_paginated_vrf_list.go +++ b/model_paginated_vrf_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go index 2428042434..c251bc5c79 100644 --- a/model_paginated_webhook_list.go +++ b/model_paginated_webhook_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go index c311ebbe7a..9fd07a72c8 100644 --- a/model_paginated_wireless_lan_group_list.go +++ b/model_paginated_wireless_lan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go index cc98bc1708..cc1d912704 100644 --- a/model_paginated_wireless_lan_list.go +++ b/model_paginated_wireless_lan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go index 6fb1c17dfc..c2968f5501 100644 --- a/model_paginated_wireless_link_list.go +++ b/model_paginated_wireless_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status.go b/model_parent_child_status.go index 06c4e1b126..ffabaf9586 100644 --- a/model_parent_child_status.go +++ b/model_parent_child_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go index cb1bfa7039..a081ba05cb 100644 --- a/model_parent_child_status_1.go +++ b/model_parent_child_status_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go index 1b27ab6437..5ddf4cf013 100644 --- a/model_patched_asn_range_request.go +++ b/model_patched_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{} // PatchedASNRangeRequest Adds support for custom fields and tags. type PatchedASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedASNRangeRequest) GetRir() RIRRequest { +func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } @@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { +func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -238,8 +238,8 @@ func (o *PatchedASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go index 141b3513fa..82e9f5ff13 100644 --- a/model_patched_asn_request.go +++ b/model_patched_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{} // PatchedASNRequest Adds support for custom fields and tags. type PatchedASNRequest struct { // 16- or 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn *int64 `json:"asn,omitempty"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetRir() RIRRequest { +func (o *PatchedASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -125,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() TenantRequest { +func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -136,7 +136,7 @@ func (o *PatchedASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *PatchedASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go index 77f3b9cf41..f010f0f432 100644 --- a/model_patched_bookmark_request.go +++ b/model_patched_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{} // PatchedBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedBookmarkRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *UserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedBookmarkRequest) GetUser() UserRequest { +func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -135,8 +135,8 @@ func (o *PatchedBookmarkRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedBookmarkRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go index f7377564b0..d1b0848624 100644 --- a/model_patched_cable_termination_request.go +++ b/model_patched_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go new file mode 100644 index 0000000000..10f887d38b --- /dev/null +++ b/model_patched_circuit_group_request.go @@ -0,0 +1,349 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedCircuitGroupRequest{} + +// PatchedCircuitGroupRequest Adds support for custom fields and tags. +type PatchedCircuitGroupRequest struct { + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedCircuitGroupRequest PatchedCircuitGroupRequest + +// NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedCircuitGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedCircuitGroupRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedCircuitGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PatchedCircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PatchedCircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedCircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedCircuitGroupRequest := _PatchedCircuitGroupRequest{} + + err = json.Unmarshal(data, &varPatchedCircuitGroupRequest) + + if err != nil { + return err + } + + *o = PatchedCircuitGroupRequest(varPatchedCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedCircuitGroupRequest struct { + value *PatchedCircuitGroupRequest + isSet bool +} + +func (v NullablePatchedCircuitGroupRequest) Get() *PatchedCircuitGroupRequest { + return v.value +} + +func (v *NullablePatchedCircuitGroupRequest) Set(val *PatchedCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedCircuitGroupRequest(val *PatchedCircuitGroupRequest) *NullablePatchedCircuitGroupRequest { + return &NullablePatchedCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go index 5367122df5..a38ffcee8d 100644 --- a/model_patched_circuit_termination_request.go +++ b/model_patched_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{} // PatchedCircuitTerminationRequest Adds support for custom fields and tags. type PatchedCircuitTerminationRequest struct { - Circuit *CircuitRequest `json:"circuit,omitempty"` - TermSide *Termination1 `json:"term_side,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + TermSide *Termination1 `json:"term_side,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio } // GetCircuit returns the Circuit field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil || IsNil(o.Circuit) { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } return *o.Circuit @@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil || IsNil(o.Circuit) { return nil, false } @@ -85,8 +85,8 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool { return false } -// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field. -func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) { +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = &v } @@ -123,9 +123,9 @@ func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { +func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -134,7 +134,7 @@ func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -150,8 +150,8 @@ func (o *PatchedCircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -166,9 +166,9 @@ func (o *PatchedCircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -177,7 +177,7 @@ func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkR // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go index cfb64cab6f..6ad1ce4db7 100644 --- a/model_patched_circuit_type_request.go +++ b/model_patched_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go index 10b1fdbac5..d5c1320888 100644 --- a/model_patched_cluster_group_request.go +++ b/model_patched_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go index bcb47d3cdb..f9e3c0441f 100644 --- a/model_patched_cluster_type_request.go +++ b/model_patched_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go index f8665cfe67..a52336ac57 100644 --- a/model_patched_config_context_request.go +++ b/model_patched_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{} // PatchedConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data,omitempty"` + Name *string `json:"name,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go index f4db50b416..49c775dd9b 100644 --- a/model_patched_config_template_request.go +++ b/model_patched_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,9 +24,9 @@ type PatchedConfigTemplateRequest struct { // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode *string `json:"template_code,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode *string `json:"template_code,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -189,7 +189,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go index d5baee7b44..ebf63f0503 100644 --- a/model_patched_contact_request.go +++ b/model_patched_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{} // PatchedContactRequest Adds support for custom fields and tags. type PatchedContactRequest struct { - Group NullableContactGroupRequest `json:"group,omitempty"` - Name *string `json:"name,omitempty"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +53,9 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { +func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ContactGroupRequest + var ret BriefContactGroupRequest return ret } return *o.Group.Get() @@ -64,7 +64,7 @@ func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) { +func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { if o == nil { return nil, false } @@ -80,8 +80,8 @@ func (o *PatchedContactRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field. -func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) { +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go index 70f7689543..f8c0a6226e 100644 --- a/model_patched_contact_role_request.go +++ b/model_patched_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go index 19833836fe..197bd4037e 100644 --- a/model_patched_custom_link_request.go +++ b/model_patched_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go index eeef729d4a..cfcf636b00 100644 --- a/model_patched_dashboard_request.go +++ b/model_patched_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go index a9acadd794..fecd6adad2 100644 --- a/model_patched_device_bay_request.go +++ b/model_patched_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{} // PatchedDeviceBayRequest Adds support for custom fields and tags. type PatchedDeviceBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go index 0bb253897b..7ca91202e7 100644 --- a/model_patched_device_bay_template_request.go +++ b/model_patched_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{} // PatchedDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedDeviceBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go index f2ef464b9e..97a30aaa56 100644 --- a/model_patched_device_role_request.go +++ b/model_patched_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,11 @@ type PatchedDeviceRoleRequest struct { Slug *string `json:"slug,omitempty"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -190,7 +190,7 @@ func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go index db7c07934f..aea76a28a7 100644 --- a/model_patched_export_template_request.go +++ b/model_patched_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,8 @@ type PatchedExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -278,9 +278,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -288,7 +288,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -304,8 +304,8 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go index de95655e2e..10b0f32755 100644 --- a/model_patched_fhrp_group_assignment_request.go +++ b/model_patched_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{} // PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedFHRPGroupAssignmentRequest struct { - Group *FHRPGroupRequest `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *BriefFHRPGroupRequest `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm } // GetGroup returns the Group field value if set, zero value otherwise. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil || IsNil(o.Group) { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } return *o.Group @@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil || IsNil(o.Group) { return nil, false } @@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field. -func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field. +func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = &v } diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go index 1d2151449b..adec461c29 100644 --- a/model_patched_fhrp_group_request.go +++ b/model_patched_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{} // PatchedFHRPGroupRequest Adds support for custom fields and tags. type PatchedFHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol *FHRPGroupProtocol `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) { } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil || IsNil(o.Protocol) { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } return *o.Protocol @@ -93,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool { return false } -// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field. -func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +// SetProtocol gets a reference to the given BriefFHRPGroupProtocol and assigns it to the Protocol field. +func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = &v } diff --git a/model_patched_group_request.go b/model_patched_group_request.go index 5d42e7f8d0..058fe7fea4 100644 --- a/model_patched_group_request.go +++ b/model_patched_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go index 0544fcc6fb..d36b4493f2 100644 --- a/model_patched_image_attachment_request.go +++ b/model_patched_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,8 +24,6 @@ type PatchedImageAttachmentRequest struct { ObjectId *int64 `json:"object_id,omitempty"` Name *string `json:"name,omitempty"` Image **os.File `json:"image,omitempty"` - ImageHeight *int32 `json:"image_height,omitempty"` - ImageWidth *int32 `json:"image_width,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,70 +174,6 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) { o.Image = &v } -// GetImageHeight returns the ImageHeight field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageHeight() int32 { - if o == nil || IsNil(o.ImageHeight) { - var ret int32 - return ret - } - return *o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil || IsNil(o.ImageHeight) { - return nil, false - } - return o.ImageHeight, true -} - -// HasImageHeight returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageHeight() bool { - if o != nil && !IsNil(o.ImageHeight) { - return true - } - - return false -} - -// SetImageHeight gets a reference to the given int32 and assigns it to the ImageHeight field. -func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = &v -} - -// GetImageWidth returns the ImageWidth field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageWidth() int32 { - if o == nil || IsNil(o.ImageWidth) { - var ret int32 - return ret - } - return *o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil || IsNil(o.ImageWidth) { - return nil, false - } - return o.ImageWidth, true -} - -// HasImageWidth returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageWidth() bool { - if o != nil && !IsNil(o.ImageWidth) { - return true - } - - return false -} - -// SetImageWidth gets a reference to the given int32 and assigns it to the ImageWidth field. -func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = &v -} - func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -262,12 +196,6 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Image) { toSerialize["image"] = o.Image } - if !IsNil(o.ImageHeight) { - toSerialize["image_height"] = o.ImageHeight - } - if !IsNil(o.ImageWidth) { - toSerialize["image_width"] = o.ImageWidth - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -294,8 +222,6 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_inventory_item_request.go b/model_patched_inventory_item_request.go index 399e6ab592..3f91fbade2 100644 --- a/model_patched_inventory_item_request.go +++ b/model_patched_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedInventoryItemRequest{} // PatchedInventoryItemRequest Adds support for custom fields and tags. type PatchedInventoryItemRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { +func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,8 +87,8 @@ func (o *PatchedInventoryItemRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -200,9 +200,9 @@ func (o *PatchedInventoryItemRequest) 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 *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -211,7 +211,7 @@ func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -227,8 +227,8 @@ func (o *PatchedInventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -243,9 +243,9 @@ func (o *PatchedInventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -254,7 +254,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -270,8 +270,8 @@ func (o *PatchedInventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go index f3abd36d01..9e585d79f5 100644 --- a/model_patched_inventory_item_role_request.go +++ b/model_patched_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go index 070c2170d4..7fe7d8886f 100644 --- a/model_patched_inventory_item_template_request.go +++ b/model_patched_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{} // PatchedInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedInventoryItemTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } @@ -194,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() InventoryItemRoleRequest { +func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -205,7 +205,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -221,8 +221,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -237,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() ManufacturerRequest { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -248,7 +248,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequ // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -264,8 +264,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go index 73cb0720e5..6329db2c84 100644 --- a/model_patched_l2_vpn_termination_request.go +++ b/model_patched_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{} // PatchedL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedL2VPNTerminationRequest struct { - L2vpn *L2VPNRequest `json:"l2vpn,omitempty"` + L2vpn *BriefL2VPNRequest `json:"l2vpn,omitempty"` AssignedObjectType *string `json:"assigned_object_type,omitempty"` AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq } // GetL2vpn returns the L2vpn field value if set, zero value otherwise. -func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil || IsNil(o.L2vpn) { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } return *o.L2vpn @@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil || IsNil(o.L2vpn) { return nil, false } @@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool { return false } -// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field. -func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field. +func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = &v } diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 7a325529e9..735f0a2fb5 100644 --- a/model_patched_manufacturer_request.go +++ b/model_patched_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go index 8a6147e440..7aba1f58bf 100644 --- a/model_patched_module_bay_request.go +++ b/model_patched_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,10 @@ var _ MappedNullable = &PatchedModuleBayRequest{} // PatchedModuleBayRequest Adds support for custom fields and tags. type PatchedModuleBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -52,9 +53,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { +func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -62,7 +63,7 @@ func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -78,11 +79,54 @@ func (o *PatchedModuleBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PatchedModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PatchedModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PatchedModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedModuleBayRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -116,9 +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() ModuleRequest { +func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -127,7 +171,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -143,8 +187,8 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -331,6 +375,9 @@ func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Device) { toSerialize["device"] = o.Device } + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -375,6 +422,7 @@ func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go index baeb07d2cb..30f78eafc9 100644 --- a/model_patched_module_bay_template_request.go +++ b/model_patched_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,8 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{} // PatchedModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedModuleBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -49,36 +50,90 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } - return *o.DeviceType + return *o.DeviceType.Get() } // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { - if o == nil || IsNil(o.DeviceType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { return nil, false } - return o.DeviceType, true + return o.DeviceType.Get(), o.DeviceType.IsSet() } // HasDeviceType returns a boolean if a field has been set. func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && !IsNil(o.DeviceType) { + if o != nil && o.DeviceType.IsSet() { return true } return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = &v +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value if set, zero value otherwise. @@ -219,8 +274,11 @@ func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DeviceType) { - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -257,6 +315,7 @@ func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go new file mode 100644 index 0000000000..6abb9f42c0 --- /dev/null +++ b/model_patched_notification_group_request.go @@ -0,0 +1,264 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedNotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationGroupRequest{} + +// PatchedNotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedNotificationGroupRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationGroupRequest PatchedNotificationGroupRequest + +// NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedNotificationGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedNotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *PatchedNotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *PatchedNotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o PatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationGroupRequest := _PatchedNotificationGroupRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationGroupRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationGroupRequest(varPatchedNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationGroupRequest struct { + value *PatchedNotificationGroupRequest + isSet bool +} + +func (v NullablePatchedNotificationGroupRequest) Get() *PatchedNotificationGroupRequest { + return v.value +} + +func (v *NullablePatchedNotificationGroupRequest) Set(val *PatchedNotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationGroupRequest(val *PatchedNotificationGroupRequest) *NullablePatchedNotificationGroupRequest { + return &NullablePatchedNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go new file mode 100644 index 0000000000..ed3fc13c23 --- /dev/null +++ b/model_patched_notification_request.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedNotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationRequest{} + +// PatchedNotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedNotificationRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Read NullableTime `json:"read,omitempty"` + EventType *Event `json:"event_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationRequest PatchedNotificationRequest + +// NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedNotificationRequest() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *PatchedNotificationRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetObjectId() int64 { + if o == nil || IsNil(o.ObjectId) { + var ret int64 + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetObjectIdOk() (*int64, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field. +func (o *PatchedNotificationRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedNotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedNotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *PatchedNotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} + +// SetReadNil sets the value for Read to be an explicit nil +func (o *PatchedNotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *PatchedNotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetEventType() Event { + if o == nil || IsNil(o.EventType) { + var ret Event + return ret + } + return *o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil || IsNil(o.EventType) { + return nil, false + } + return o.EventType, true +} + +// HasEventType returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasEventType() bool { + if o != nil && !IsNil(o.EventType) { + return true + } + + return false +} + +// SetEventType gets a reference to the given Event and assigns it to the EventType field. +func (o *PatchedNotificationRequest) SetEventType(v Event) { + o.EventType = &v +} + +func (o PatchedNotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + if !IsNil(o.EventType) { + toSerialize["event_type"] = o.EventType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationRequest := _PatchedNotificationRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationRequest(varPatchedNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationRequest struct { + value *PatchedNotificationRequest + isSet bool +} + +func (v NullablePatchedNotificationRequest) Get() *PatchedNotificationRequest { + return v.value +} + +func (v *NullablePatchedNotificationRequest) Set(val *PatchedNotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationRequest(val *PatchedNotificationRequest) *NullablePatchedNotificationRequest { + return &NullablePatchedNotificationRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go index 39a1c0ffd2..42a8b2b0b7 100644 --- a/model_patched_object_permission_request.go +++ b/model_patched_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go index 2b69b6bb30..a41cebf886 100644 --- a/model_patched_platform_request.go +++ b/model_patched_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{} // PatchedPlatformRequest Adds support for custom fields and tags. type PatchedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } @@ -156,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() ConfigTemplateRequest { +func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -167,7 +167,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -183,8 +183,8 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go index 855e8aea4e..f6bd114042 100644 --- a/model_patched_power_panel_request.go +++ b/model_patched_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{} // PatchedPowerPanelRequest Adds support for custom fields and tags. type PatchedPowerPanelRequest struct { - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { +func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { +func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go index e413eac6c9..fad367cc6f 100644 --- a/model_patched_provider_account_request.go +++ b/model_patched_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderAccountRequest{} // PatchedProviderAccountRequest Adds support for custom fields and tags. type PatchedProviderAccountRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` Account *string `json:"account,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go index f25971cb96..ba7e9e84e1 100644 --- a/model_patched_provider_network_request.go +++ b/model_patched_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{} // PatchedProviderNetworkRequest Adds support for custom fields and tags. type PatchedProviderNetworkRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` ServiceId *string `json:"service_id,omitempty"` Description *string `json:"description,omitempty"` @@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go index 1c4432678d..ad5dab6265 100644 --- a/model_patched_provider_request.go +++ b/model_patched_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go index c5e404cb38..6654331fa6 100644 --- a/model_patched_rack_reservation_request.go +++ b/model_patched_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{} // PatchedRackReservationRequest Adds support for custom fields and tags. type PatchedRackReservationRequest struct { - Rack *RackRequest `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *UserRequest `json:"user,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack *BriefRackRequest `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque } // GetRack returns the Rack field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetRack() RackRequest { +func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack @@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil || IsNil(o.Rack) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool { return false } -// SetRack gets a reference to the given RackRequest and assigns it to the Rack field. -func (o *PatchedRackReservationRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field. +func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = &v } @@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetUser() UserRequest { +func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedRackReservationRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) { o.User = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { +func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -173,8 +173,8 @@ func (o *PatchedRackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go index 6d892aa821..ed79eaaa82 100644 --- a/model_patched_rack_role_request.go +++ b/model_patched_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go index 0b99fe5290..e5b3aaf714 100644 --- a/model_patched_rir_request.go +++ b/model_patched_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_role_request.go b/model_patched_role_request.go index 7352ad89e9..40600e5548 100644 --- a/model_patched_role_request.go +++ b/model_patched_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go index b2a367b400..6872dfc473 100644 --- a/model_patched_route_target_request.go +++ b/model_patched_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{} // PatchedRouteTargetRequest Adds support for custom fields and tags. type PatchedRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { +func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go index 0f76328b37..e89d8c7561 100644 --- a/model_patched_saved_filter_request.go +++ b/model_patched_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go new file mode 100644 index 0000000000..c9e282a827 --- /dev/null +++ b/model_patched_script_input_request.go @@ -0,0 +1,288 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedScriptInputRequest{} + +// PatchedScriptInputRequest struct for PatchedScriptInputRequest +type PatchedScriptInputRequest struct { + Data interface{} `json:"data,omitempty"` + Commit *bool `json:"commit,omitempty"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedScriptInputRequest PatchedScriptInputRequest + +// NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedScriptInputRequest() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *PatchedScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + +// GetCommit returns the Commit field value if set, zero value otherwise. +func (o *PatchedScriptInputRequest) GetCommit() bool { + if o == nil || IsNil(o.Commit) { + var ret bool + return ret + } + return *o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil || IsNil(o.Commit) { + return nil, false + } + return o.Commit, true +} + +// HasCommit returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasCommit() bool { + if o != nil && !IsNil(o.Commit) { + return true + } + + return false +} + +// SetCommit gets a reference to the given bool and assigns it to the Commit field. +func (o *PatchedScriptInputRequest) SetCommit(v bool) { + o.Commit = &v +} + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} + +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *PatchedScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *PatchedScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} + +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *PatchedScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o PatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !IsNil(o.Commit) { + toSerialize["commit"] = o.Commit + } + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedScriptInputRequest := _PatchedScriptInputRequest{} + + err = json.Unmarshal(data, &varPatchedScriptInputRequest) + + if err != nil { + return err + } + + *o = PatchedScriptInputRequest(varPatchedScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedScriptInputRequest struct { + value *PatchedScriptInputRequest + isSet bool +} + +func (v NullablePatchedScriptInputRequest) Get() *PatchedScriptInputRequest { + return v.value +} + +func (v *NullablePatchedScriptInputRequest) Set(val *PatchedScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedScriptInputRequest(val *PatchedScriptInputRequest) *NullablePatchedScriptInputRequest { + return &NullablePatchedScriptInputRequest{value: val, isSet: true} +} + +func (v NullablePatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go new file mode 100644 index 0000000000..065fca25d3 --- /dev/null +++ b/model_patched_subscription_request.go @@ -0,0 +1,227 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedSubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedSubscriptionRequest{} + +// PatchedSubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedSubscriptionRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedSubscriptionRequest PatchedSubscriptionRequest + +// NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *PatchedSubscriptionRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetObjectId() int64 { + if o == nil || IsNil(o.ObjectId) { + var ret int64 + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetObjectIdOk() (*int64, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field. +func (o *PatchedSubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +func (o PatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedSubscriptionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedSubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedSubscriptionRequest := _PatchedSubscriptionRequest{} + + err = json.Unmarshal(data, &varPatchedSubscriptionRequest) + + if err != nil { + return err + } + + *o = PatchedSubscriptionRequest(varPatchedSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedSubscriptionRequest struct { + value *PatchedSubscriptionRequest + isSet bool +} + +func (v NullablePatchedSubscriptionRequest) Get() *PatchedSubscriptionRequest { + return v.value +} + +func (v *NullablePatchedSubscriptionRequest) Set(val *PatchedSubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedSubscriptionRequest(val *PatchedSubscriptionRequest) *NullablePatchedSubscriptionRequest { + return &NullablePatchedSubscriptionRequest{value: val, isSet: true} +} + +func (v NullablePatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go index df4b1fd5be..10aaa4e3f0 100644 --- a/model_patched_tag_request.go +++ b/model_patched_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go index 3948518419..dd31e2f10a 100644 --- a/model_patched_tenant_request.go +++ b/model_patched_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{} // PatchedTenantRequest Adds support for custom fields and tags. type PatchedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { +func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TenantGroupRequest + var ret BriefTenantGroupRequest return ret } return *o.Group.Get() @@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) { +func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedTenantRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field. -func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_token_request.go b/model_patched_token_request.go index 87277f4960..e9ac649b06 100644 --- a/model_patched_token_request.go +++ b/model_patched_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedTokenRequest{} // PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTokenRequest struct { - User *UserRequest `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User *BriefUserRequest `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"` @@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedTokenRequest) GetUser() UserRequest { +func (o *PatchedTokenRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedTokenRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go index d01b7dc833..82e56512bc 100644 --- a/model_patched_tunnel_group_request.go +++ b/model_patched_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_user_request.go b/model_patched_user_request.go index b035309876..7f6a0cd349 100644 --- a/model_patched_user_request.go +++ b/model_patched_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go index 17afe0ffad..eb625f0ebf 100644 --- a/model_patched_virtual_disk_request.go +++ b/model_patched_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{} // PatchedVirtualDiskRequest Adds support for custom fields and tags. type PatchedVirtualDiskRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Size *int32 `json:"size,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Size *int32 `json:"size,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } diff --git a/model_patched_vlan_group_request.go b/model_patched_vlan_group_request.go index 39f5d4933f..c1ce1b6c79 100644 --- a/model_patched_vlan_group_request.go +++ b/model_patched_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,10 @@ var _ MappedNullable = &PatchedVLANGroupRequest{} // PatchedVLANGroupRequest Adds support for custom fields and tags. type PatchedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + 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"` @@ -202,70 +198,6 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *PatchedVLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *PatchedVLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedVLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -384,12 +316,6 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -425,8 +351,6 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go index 9dfb98881a..24dc48de85 100644 --- a/model_patched_vrf_request.go +++ b/model_patched_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &PatchedVRFRequest{} type PatchedVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF EnforceUnique *bool `json:"enforce_unique,omitempty"` Description *string `json:"description,omitempty"` @@ -129,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() TenantRequest { +func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -140,7 +140,7 @@ func (o *PatchedVRFRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -156,8 +156,8 @@ func (o *PatchedVRFRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedVRFRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go index 5c726471e4..e9531a4af8 100644 --- a/model_patched_webhook_request.go +++ b/model_patched_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go index 184b35a71c..4811b97cbb 100644 --- a/model_patched_webhook_request_http_method.go +++ b/model_patched_webhook_request_http_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go index 0c3c8d591b..016b76fdc8 100644 --- a/model_patched_writable_aggregate_request.go +++ b/model_patched_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} // PatchedWritableAggregateRequest Adds support for custom fields and tags. type PatchedWritableAggregateRequest struct { - Prefix *string `json:"prefix,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { +func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { +func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go index 158155396e..a1cb154015 100644 --- a/model_patched_writable_cable_request.go +++ b/model_patched_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `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"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *PatchedWritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *PatchedWritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest) } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableReques // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go new file mode 100644 index 0000000000..b58eb53684 --- /dev/null +++ b/model_patched_writable_circuit_group_assignment_request.go @@ -0,0 +1,264 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableCircuitGroupAssignmentRequest{} + +// PatchedWritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type PatchedWritableCircuitGroupAssignmentRequest struct { + Group *BriefCircuitGroupRequest `json:"group,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest + +// NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil || IsNil(o.Group) { + var ret BriefCircuitGroupRequest + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given BriefCircuitGroupRequest and assigns it to the Group field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = &v +} + +// GetCircuit returns the Circuit field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil || IsNil(o.Circuit) { + var ret BriefCircuitRequest + return ret + } + return *o.Circuit +} + +// 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 *PatchedWritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil || IsNil(o.Circuit) { + return nil, false + } + return o.Circuit, true +} + +// HasCircuit returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasCircuit() bool { + if o != nil && !IsNil(o.Circuit) { + return true + } + + return false +} + +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.Circuit) { + toSerialize["circuit"] = o.Circuit + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableCircuitGroupAssignmentRequest := _PatchedWritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varPatchedWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = PatchedWritableCircuitGroupAssignmentRequest(varPatchedWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableCircuitGroupAssignmentRequest struct { + value *PatchedWritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) Get() *PatchedWritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Set(val *PatchedWritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableCircuitGroupAssignmentRequest(val *PatchedWritableCircuitGroupAssignmentRequest) *NullablePatchedWritableCircuitGroupAssignmentRequest { + return &NullablePatchedWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go index a9b2fa6439..9b68fb84bf 100644 --- a/model_patched_writable_circuit_request.go +++ b/model_patched_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,21 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *ProviderRequest `json:"provider,omitempty"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type *CircuitTypeRequest `json:"type,omitempty"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type *BriefCircuitTypeRequest `json:"type,omitempty"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,9 +90,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { +func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -99,7 +100,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -115,15 +116,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -132,7 +133,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequ // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -148,8 +149,8 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -164,9 +165,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil || IsNil(o.Type) { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } return *o.Type @@ -174,7 +175,7 @@ func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -190,15 +191,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool { return false } -// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field. -func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) { +// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -206,7 +207,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -222,15 +223,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -239,7 +240,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -255,8 +256,8 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -527,6 +528,38 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -576,6 +609,9 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -611,6 +647,7 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go index 686e115224..8c1ba9eb26 100644 --- a/model_patched_writable_cluster_request.go +++ b/model_patched_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *ClusterTypeRequest `json:"type,omitempty"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Type *BriefClusterTypeRequest `json:"type,omitempty"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,9 +84,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { +func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil || IsNil(o.Type) { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } return *o.Type @@ -94,7 +94,7 @@ func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -110,15 +110,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool { return false } -// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field. -func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) { +// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field. +func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = &v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -127,7 +127,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -185,15 +185,15 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { +func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { +func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go index 5e75fe1df9..8b646c3831 100644 --- a/model_patched_writable_console_port_request.go +++ b/model_patched_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go index 9fb31ae8e3..21e97fa708 100644 --- a/model_patched_writable_console_port_request_speed.go +++ b/model_patched_writable_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go index db1edadc39..4cd1da2d9a 100644 --- a/model_patched_writable_console_port_request_type.go +++ b/model_patched_writable_console_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go index a4c19d0c0e..e98b181150 100644 --- a/model_patched_writable_console_port_template_request.go +++ b/model_patched_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} // PatchedWritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go index c5a84421b1..f57ad98dd2 100644 --- a/model_patched_writable_console_server_port_request.go +++ b/model_patched_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go index 07402cdcd7..67a1600cab 100644 --- a/model_patched_writable_console_server_port_template_request.go +++ b/model_patched_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} // PatchedWritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() Device // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() Module // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go index 8a792f86be..0afcf3ba43 100644 --- a/model_patched_writable_contact_assignment_request.go +++ b/model_patched_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *ContactRequest `json:"contact,omitempty"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *BriefContactRequest `json:"contact,omitempty"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil || IsNil(o.Contact) { - var ret ContactRequest + var ret BriefContactRequest return ret } return *o.Contact @@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil || IsNil(o.Contact) { return nil, false } @@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool { return false } -// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field. -func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) { +// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field. +func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = &v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -172,8 +172,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -188,9 +188,9 @@ func (o *PatchedWritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -198,7 +198,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmen // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -214,8 +214,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go index b7868b9e76..19503e2558 100644 --- a/model_patched_writable_contact_group_request.go +++ b/model_patched_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go index 685a24ba2c..2a0321c112 100644 --- a/model_patched_writable_custom_field_choice_set_request.go +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go index 05ed85e77b..e0bba990d5 100644 --- a/model_patched_writable_custom_field_choice_set_request_base_choices.go +++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go index 4e6a76214e..5e5a7d9deb 100644 --- a/model_patched_writable_custom_field_request.go +++ b/model_patched_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,10 @@ type PatchedWritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -40,6 +42,8 @@ type PatchedWritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -47,9 +51,9 @@ type PatchedWritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -339,6 +343,38 @@ func (o *PatchedWritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -532,6 +568,39 @@ func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -683,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() CustomFieldChoiceSetRequest { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -694,7 +763,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetR // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -710,8 +779,8 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -791,6 +860,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -809,6 +881,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -857,12 +932,14 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go index 617a068559..b3b9850d6e 100644 --- a/model_patched_writable_custom_field_request_filter_logic.go +++ b/model_patched_writable_custom_field_request_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go index 3efb71f2cf..23559ae84e 100644 --- a/model_patched_writable_custom_field_request_type.go +++ b/model_patched_writable_custom_field_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go index 2ebd0d168a..400ecc5cfc 100644 --- a/model_patched_writable_custom_field_request_ui_editable.go +++ b/model_patched_writable_custom_field_request_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go index 2b26094231..a76b0d6ca0 100644 --- a/model_patched_writable_custom_field_request_ui_visible.go +++ b/model_patched_writable_custom_field_request_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go index 4446f37e84..a40196121a 100644 --- a/model_patched_writable_data_source_request.go +++ b/model_patched_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,10 +24,10 @@ type PatchedWritableDataSourceRequest struct { SourceUrl *string `json:"source_url,omitempty"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,38 +211,6 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PatchedWritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PatchedWritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PatchedWritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -308,6 +276,38 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -365,15 +365,15 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -404,9 +404,9 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go index e5906960d9..0b9e23402d 100644 --- a/model_patched_writable_device_type_request.go +++ b/model_patched_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -442,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -452,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -468,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go index 2594a9023b..2f394f858c 100644 --- a/model_patched_writable_device_with_config_context_request.go +++ b/model_patched_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,37 +19,37 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Role *DeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Role *BriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *RackFace1 `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *RackFace1 `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -120,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -130,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTy // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -146,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role @@ -162,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequ // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -178,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantReques // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -211,8 +211,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -227,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() PlatformRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -238,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRe // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -254,8 +254,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -345,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -355,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -371,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -388,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRe // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -404,8 +404,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -420,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() RackRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -431,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -447,8 +447,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -688,9 +688,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirfl } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -699,7 +699,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddres // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -715,8 +715,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -731,9 +731,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -742,7 +742,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddres // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -758,8 +758,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -774,9 +774,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -785,7 +785,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequ // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -801,8 +801,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -817,9 +817,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -828,7 +828,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequ // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -844,8 +844,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -860,9 +860,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -871,7 +871,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Virt // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -887,8 +887,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1053,9 +1053,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1064,7 +1064,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Conf // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1080,8 +1080,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go index 0251a39dc1..8972a8e433 100644 --- a/model_patched_writable_event_rule_request.go +++ b/model_patched_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,9 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{} type PatchedWritableEventRuleRequest struct { ObjectTypes []string `json:"object_types,omitempty"` Name *string `json:"name,omitempty"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + 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"` @@ -126,196 +118,68 @@ func (o *PatchedWritableEventRuleRequest) SetName(v string) { o.Name = &v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } - return *o.TypeJobEnd + return *o.Enabled } -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { +func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { return nil, false } - return o.TypeJobEnd, true + return o.Enabled, true } -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { +// HasEnabled returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { return true } return false } -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { + o.Enabled = &v } -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool +// GetEventTypes returns the EventTypes field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil || IsNil(o.EventTypes) { + var ret []EventRuleEventTypesInner return ret } - return *o.Enabled + return o.EventTypes } -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// GetEventTypesOk returns a tuple with the EventTypes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { +func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil || IsNil(o.EventTypes) { return nil, false } - return o.Enabled, true + return o.EventTypes, true } -// HasEnabled returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { +// HasEventTypes returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool { + if o != nil && !IsNil(o.EventTypes) { return true } return false } -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { - o.Enabled = &v +// SetEventTypes gets a reference to the given []EventRuleEventTypesInner and assigns it to the EventTypes field. +func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v } // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). @@ -570,24 +434,12 @@ func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + if !IsNil(o.EventTypes) { + toSerialize["event_types"] = o.EventTypes + } if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -633,12 +485,8 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go index 56a5a766f6..8c146788b6 100644 --- a/model_patched_writable_front_port_request.go +++ b/model_patched_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,15 +87,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go index a7e2d7d33e..205b7257c9 100644 --- a/model_patched_writable_front_port_template_request.go +++ b/model_patched_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} // PatchedWritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,9 +57,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() DeviceTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -68,7 +68,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -100,9 +100,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -271,9 +271,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil || IsNil(o.RearPort) { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } return *o.RearPort @@ -281,7 +281,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplate // GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil || IsNil(o.RearPort) { return nil, false } @@ -297,8 +297,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool { return false } -// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field. -func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field. +func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = &v } diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go index 58f359b1eb..a72ce90901 100644 --- a/model_patched_writable_ike_policy_request.go +++ b/model_patched_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go index 16fbd5659f..9b400ad000 100644 --- a/model_patched_writable_ike_policy_request_mode.go +++ b/model_patched_writable_ike_policy_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go index 2a6c5849cb..71a408f1bc 100644 --- a/model_patched_writable_ike_policy_request_version.go +++ b/model_patched_writable_ike_policy_request_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go index 6de0b3f452..29f372406f 100644 --- a/model_patched_writable_ike_proposal_request.go +++ b/model_patched_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go index 98ac12303d..0ccfcda63f 100644 --- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go +++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go index 89cee30812..51ffc74d2d 100644 --- a/model_patched_writable_ike_proposal_request_group.go +++ b/model_patched_writable_ike_proposal_request_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go index 16c8c59a08..a06f523aea 100644 --- a/model_patched_writable_interface_request.go +++ b/model_patched_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *InterfaceTypeValue `json:"type,omitempty"` @@ -46,16 +46,16 @@ type PatchedWritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,9 +79,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -89,7 +89,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -105,8 +105,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -143,9 +143,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { +func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -154,7 +154,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -170,8 +170,8 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -1011,9 +1011,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1022,7 +1022,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1038,8 +1038,8 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1150,9 +1150,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1161,7 +1161,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1177,8 +1177,8 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go index 8417725be5..92e0a858ba 100644 --- a/model_patched_writable_interface_request_mode.go +++ b/model_patched_writable_interface_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go index f88d3d2055..cef20a302c 100644 --- a/model_patched_writable_interface_template_request.go +++ b/model_patched_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} // PatchedWritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go index 8aced88b88..3b121ba285 100644 --- a/model_patched_writable_ip_address_request.go +++ b/model_patched_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { Address *string `json:"address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -89,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go index c50d402363..8e3ba0c0eb 100644 --- a/model_patched_writable_ip_address_request_role.go +++ b/model_patched_writable_ip_address_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go index aa05d1c780..483c89cb08 100644 --- a/model_patched_writable_ip_address_request_status.go +++ b/model_patched_writable_ip_address_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go index 3ae8f8a3b7..6c5ee83caa 100644 --- a/model_patched_writable_ip_range_request.go +++ b/model_patched_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{} type PatchedWritableIPRangeRequest struct { StartAddress *string `json:"start_address,omitempty"` EndAddress *string `json:"end_address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -161,9 +161,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { +func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go index c5cdba089a..f6fba2a7ec 100644 --- a/model_patched_writable_ip_range_request_status.go +++ b/model_patched_writable_ip_range_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go index 6c4c674f77..30eecae8e3 100644 --- a/model_patched_writable_ip_sec_policy_request.go +++ b/model_patched_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go index 8b81531d6f..acb893a491 100644 --- a/model_patched_writable_ip_sec_policy_request_pfs_group.go +++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go index 1c0acccc08..4a6af5dba3 100644 --- a/model_patched_writable_ip_sec_profile_request.go +++ b/model_patched_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{} // PatchedWritableIPSecProfileRequest Adds support for custom fields and tags. type PatchedWritableIPSecProfileRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Mode *IPSecProfileModeValue `json:"mode,omitempty"` - IkePolicy *IKEPolicyRequest `json:"ike_policy,omitempty"` - IpsecPolicy *IPSecPolicyRequest `json:"ipsec_policy,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Mode *IPSecProfileModeValue `json:"mode,omitempty"` + IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"` + IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil || IsNil(o.IkePolicy) { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } return *o.IkePolicy @@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil || IsNil(o.IkePolicy) { return nil, false } @@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool { return false } -// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = &v } // GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil || IsNil(o.IpsecPolicy) { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } return *o.IpsecPolicy @@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil || IsNil(o.IpsecPolicy) { return nil, false } @@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool { return false } -// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = &v } diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go index b79dc65d84..94c7feb861 100644 --- a/model_patched_writable_ip_sec_proposal_request.go +++ b/model_patched_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go index 97f19a1e79..0f350e592f 100644 --- a/model_patched_writable_journal_entry_request.go +++ b/model_patched_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go index 0cbb2327b3..841f1bef93 100644 --- a/model_patched_writable_l2_vpn_request.go +++ b/model_patched_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{} // PatchedWritableL2VPNRequest Adds support for custom fields and tags. type PatchedWritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *L2VPNTypeValue `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -160,9 +160,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -170,7 +170,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -186,8 +186,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } @@ -320,9 +320,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { +func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -331,7 +331,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -347,8 +347,8 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go index 338f115dd0..9d1d8cc522 100644 --- a/model_patched_writable_location_request.go +++ b/model_patched_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { +func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -127,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = &v } @@ -192,9 +192,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -202,7 +202,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequ // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -218,15 +218,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { +func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -235,7 +235,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go index 5d7316da71..ef38b38ef3 100644 --- a/model_patched_writable_module_request.go +++ b/model_patched_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` - ModuleType *ModuleTypeRequest `json:"module_type,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` + ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType @@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil || IsNil(o.ModuleType) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go index 284d2cda9a..767a1c3e42 100644 --- a/model_patched_writable_module_type_request.go +++ b/model_patched_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +53,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -62,7 +63,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -78,8 +79,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } @@ -147,6 +148,38 @@ func (o *PatchedWritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -191,9 +224,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -201,7 +234,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -217,8 +250,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -369,6 +402,9 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -412,6 +448,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go index cd730a4d06..59fe67cfb6 100644 --- a/model_patched_writable_power_feed_request.go +++ b/model_patched_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *PowerPanelRequest `json:"power_panel,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name *string `json:"name,omitempty"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -31,12 +31,12 @@ type PatchedWritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR } // GetPowerPanel returns the PowerPanel field value if set, zero value otherwise. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil || IsNil(o.PowerPanel) { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } return *o.PowerPanel @@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil || IsNil(o.PowerPanel) { return nil, false } @@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool { return false } -// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field. -func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field. +func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = &v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { +func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -119,8 +119,8 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -455,9 +455,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -466,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -482,8 +482,8 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go index 9a576dfa2f..9bb391b27c 100644 --- a/model_patched_writable_power_feed_request_phase.go +++ b/model_patched_writable_power_feed_request_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go index e83c0f2fa7..1f536c5f75 100644 --- a/model_patched_writable_power_feed_request_status.go +++ b/model_patched_writable_power_feed_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go index e8b5b27a3e..4c3ad86a31 100644 --- a/model_patched_writable_power_feed_request_supply.go +++ b/model_patched_writable_power_feed_request_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go index 6951215c40..419531ff02 100644 --- a/model_patched_writable_power_feed_request_type.go +++ b/model_patched_writable_power_feed_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go index 4a3f01b5d4..8d094a661b 100644 --- a/model_patched_writable_power_outlet_request.go +++ b/model_patched_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -55,9 +55,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -81,15 +81,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -98,7 +98,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -226,9 +226,9 @@ func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutlet } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -237,7 +237,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -253,8 +253,8 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go index bb994c1906..343fb92fcd 100644 --- a/model_patched_writable_power_outlet_request_feed_leg.go +++ b/model_patched_writable_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go index b71ce89bf3..3cf0cf726c 100644 --- a/model_patched_writable_power_outlet_request_type.go +++ b/model_patched_writable_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletRequestType string // List of PatchedWritablePowerOutletRequest_type @@ -81,6 +81,7 @@ const ( 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" @@ -182,6 +183,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go index 665ffab4ec..421e133c17 100644 --- a/model_patched_writable_power_outlet_template_request.go +++ b/model_patched_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} // PatchedWritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePow } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemp // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go index 1ca2917115..ab90308a47 100644 --- a/model_patched_writable_power_outlet_template_request_type.go +++ b/model_patched_writable_power_outlet_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletTemplateRequestType string // List of PatchedWritablePowerOutletTemplateRequest_type @@ -81,6 +81,7 @@ const ( 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" @@ -182,6 +183,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go index 1df1cacd17..66633f2c0e 100644 --- a/model_patched_writable_power_port_request.go +++ b/model_patched_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go index fd8a265b04..62de6fec2c 100644 --- a/model_patched_writable_power_port_request_type.go +++ b/model_patched_writable_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortRequestType string // List of PatchedWritablePowerPortRequest_type @@ -81,6 +81,7 @@ const ( 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" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go index 6598158be9..f07f9ab837 100644 --- a/model_patched_writable_power_port_template_request.go +++ b/model_patched_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} // PatchedWritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go index 554ee3f097..be2bcd2c59 100644 --- a/model_patched_writable_power_port_template_request_type.go +++ b/model_patched_writable_power_port_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortTemplateRequestType string // List of PatchedWritablePowerPortTemplateRequest_type @@ -81,6 +81,7 @@ const ( 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" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go index 4f5dc38b73..a95c8c4b22 100644 --- a/model_patched_writable_prefix_request.go +++ b/model_patched_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { Prefix *string `json:"prefix,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -89,9 +89,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { +func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { +func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -175,9 +175,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -186,7 +186,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -202,8 +202,8 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -218,9 +218,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { +func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -229,7 +229,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -245,8 +245,8 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -293,9 +293,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { +func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -304,7 +304,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -320,8 +320,8 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go index ecbeb236f0..73893bfbc8 100644 --- a/model_patched_writable_prefix_request_status.go +++ b/model_patched_writable_prefix_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go index 2b21e78d46..a634cef64e 100644 --- a/model_patched_writable_rack_request.go +++ b/model_patched_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,25 @@ var _ MappedNullable = &PatchedWritableRackRequest{} type PatchedWritableRackRequest struct { Name *string `json:"name,omitempty"` FacilityId NullableString `json:"facility_id,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -47,11 +48,12 @@ type PatchedWritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - 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 *PatchedWritableRackRequestAirflow `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{} } @@ -150,9 +152,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetSite() SiteRequest { +func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -160,7 +162,7 @@ func (o *PatchedWritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { +func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -225,9 +227,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { +func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -236,7 +238,7 @@ func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -252,8 +254,8 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -300,9 +302,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { +func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -311,7 +313,7 @@ func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -327,8 +329,8 @@ func (o *PatchedWritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -417,36 +419,79 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *PatchedWritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -632,9 +677,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -642,7 +687,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -658,8 +703,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -856,6 +901,38 @@ func (o *PatchedWritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1021,8 +1098,11 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1057,6 +1137,9 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1100,7 +1183,8 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1112,6 +1196,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go new file mode 100644 index 0000000000..bc860e7946 --- /dev/null +++ b/model_patched_writable_rack_request_airflow.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +type PatchedWritableRackRequestAirflow string + +// List of PatchedWritableRackRequest_airflow +const ( + PATCHEDWRITABLERACKREQUESTAIRFLOW_FRONT_TO_REAR PatchedWritableRackRequestAirflow = "front-to-rear" + PATCHEDWRITABLERACKREQUESTAIRFLOW_REAR_TO_FRONT PatchedWritableRackRequestAirflow = "rear-to-front" + PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = "" +) + +// All allowed values of PatchedWritableRackRequestAirflow enum +var AllowedPatchedWritableRackRequestAirflowEnumValues = []PatchedWritableRackRequestAirflow{ + "front-to-rear", + "rear-to-front", + "", +} + +func (v *PatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestAirflow(value) + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestAirflow", value) +} + +// NewPatchedWritableRackRequestAirflowFromValue returns a pointer to a valid PatchedWritableRackRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestAirflowFromValue(v string) (*PatchedWritableRackRequestAirflow, error) { + ev := PatchedWritableRackRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestAirflow: valid values are %v", v, AllowedPatchedWritableRackRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestAirflow) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_airflow value +func (v PatchedWritableRackRequestAirflow) Ptr() *PatchedWritableRackRequestAirflow { + return &v +} + +type NullablePatchedWritableRackRequestAirflow struct { + value *PatchedWritableRackRequestAirflow + isSet bool +} + +func (v NullablePatchedWritableRackRequestAirflow) Get() *PatchedWritableRackRequestAirflow { + return v.value +} + +func (v *NullablePatchedWritableRackRequestAirflow) Set(val *PatchedWritableRackRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestAirflow(val *PatchedWritableRackRequestAirflow) *NullablePatchedWritableRackRequestAirflow { + return &NullablePatchedWritableRackRequestAirflow{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go new file mode 100644 index 0000000000..b53dacc4fe --- /dev/null +++ b/model_patched_writable_rack_request_form_factor.go @@ -0,0 +1,122 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type PatchedWritableRackRequestFormFactor string + +// List of PatchedWritableRackRequest_form_factor +const ( + PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackRequestFormFactor = "wall-cabinet-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = "" +) + +// All allowed values of PatchedWritableRackRequestFormFactor enum +var AllowedPatchedWritableRackRequestFormFactorEnumValues = []PatchedWritableRackRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *PatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestFormFactor", value) +} + +// NewPatchedWritableRackRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestFormFactorFromValue(v string) (*PatchedWritableRackRequestFormFactor, error) { + ev := PatchedWritableRackRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_form_factor value +func (v PatchedWritableRackRequestFormFactor) Ptr() *PatchedWritableRackRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackRequestFormFactor struct { + value *PatchedWritableRackRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackRequestFormFactor) Get() *PatchedWritableRackRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Set(val *PatchedWritableRackRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestFormFactor(val *PatchedWritableRackRequestFormFactor) *NullablePatchedWritableRackRequestFormFactor { + return &NullablePatchedWritableRackRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go index 21a86adeda..a89a472095 100644 --- a/model_patched_writable_rack_request_outer_unit.go +++ b/model_patched_writable_rack_request_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go index 9dc9df3293..55ed8f1139 100644 --- a/model_patched_writable_rack_request_status.go +++ b/model_patched_writable_rack_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go index 19908dc01e..cc26611ef2 100644 --- a/model_patched_writable_rack_request_width.go +++ b/model_patched_writable_rack_request_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go new file mode 100644 index 0000000000..1f2fd36e55 --- /dev/null +++ b/model_patched_writable_rack_type_request.go @@ -0,0 +1,881 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableRackTypeRequest{} + +// PatchedWritableRackTypeRequest Adds support for custom fields and tags. +type PatchedWritableRackTypeRequest struct { + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableRackTypeRequest PatchedWritableRackTypeRequest + +// NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil || IsNil(o.Manufacturer) { + return nil, false + } + return o.Manufacturer, true +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool { + if o != nil && !IsNil(o.Manufacturer) { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = &v +} + +// GetModel returns the Model field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetModel() string { + if o == nil || IsNil(o.Model) { + var ret string + return ret + } + return *o.Model +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil || IsNil(o.Model) { + return nil, false + } + return o.Model, true +} + +// HasModel returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasModel() bool { + if o != nil && !IsNil(o.Model) { + return true + } + + return false +} + +// SetModel gets a reference to the given string and assigns it to the Model field. +func (o *PatchedWritableRackTypeRequest) SetModel(v string) { + o.Model = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedWritableRackTypeRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedWritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { + return nil, false + } + return o.FormFactor, true +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given PatchedWritableRackTypeRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = &v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *PatchedWritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.OuterUnit) { + return nil, false + } + return o.OuterUnit, true +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && !IsNil(o.OuterUnit) { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *PatchedWritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.WeightUnit) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.WeightUnit +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.WeightUnit) { + return nil, false + } + return o.WeightUnit, true +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && !IsNil(o.WeightUnit) { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { + o.WeightUnit = &v +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Manufacturer) { + toSerialize["manufacturer"] = o.Manufacturer + } + if !IsNil(o.Model) { + toSerialize["model"] = o.Model + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if !IsNil(o.OuterUnit) { + toSerialize["outer_unit"] = o.OuterUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if !IsNil(o.WeightUnit) { + toSerialize["weight_unit"] = o.WeightUnit + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableRackTypeRequest := _PatchedWritableRackTypeRequest{} + + err = json.Unmarshal(data, &varPatchedWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = PatchedWritableRackTypeRequest(varPatchedWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableRackTypeRequest struct { + value *PatchedWritableRackTypeRequest + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequest) Get() *PatchedWritableRackTypeRequest { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequest) Set(val *PatchedWritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequest(val *PatchedWritableRackTypeRequest) *NullablePatchedWritableRackTypeRequest { + return &NullablePatchedWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go new file mode 100644 index 0000000000..31d5b9af4b --- /dev/null +++ b/model_patched_writable_rack_type_request_form_factor.go @@ -0,0 +1,120 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackTypeRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type PatchedWritableRackTypeRequestFormFactor string + +// List of PatchedWritableRackTypeRequest_form_factor +const ( + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-cabinet-vertical" +) + +// All allowed values of PatchedWritableRackTypeRequestFormFactor enum +var AllowedPatchedWritableRackTypeRequestFormFactorEnumValues = []PatchedWritableRackTypeRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", +} + +func (v *PatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackTypeRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackTypeRequestFormFactor", value) +} + +// NewPatchedWritableRackTypeRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackTypeRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackTypeRequestFormFactorFromValue(v string) (*PatchedWritableRackTypeRequestFormFactor, error) { + ev := PatchedWritableRackTypeRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackTypeRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackTypeRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackTypeRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackTypeRequest_form_factor value +func (v PatchedWritableRackTypeRequestFormFactor) Ptr() *PatchedWritableRackTypeRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackTypeRequestFormFactor struct { + value *PatchedWritableRackTypeRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) Get() *PatchedWritableRackTypeRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Set(val *PatchedWritableRackTypeRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequestFormFactor(val *PatchedWritableRackTypeRequestFormFactor) *NullablePatchedWritableRackTypeRequestFormFactor { + return &NullablePatchedWritableRackTypeRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go index 881056212e..d830e3b391 100644 --- a/model_patched_writable_rear_port_request.go +++ b/model_patched_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -115,8 +115,8 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go index 5280e4ec8d..5de0461738 100644 --- a/model_patched_writable_rear_port_template_request.go +++ b/model_patched_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} // PatchedWritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeReque // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go index f2deb297b8..1d627a82fc 100644 --- a/model_patched_writable_region_request.go +++ b/model_patched_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go index 9f1abb8c1b..90396a9b03 100644 --- a/model_patched_writable_service_request.go +++ b/model_patched_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + 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"` @@ -52,9 +52,9 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineReques // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go index 4b7b5d491d..71f875d4c3 100644 --- a/model_patched_writable_service_request_protocol.go +++ b/model_patched_writable_service_request_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go index 182e8786dd..bf02b20753 100644 --- a/model_patched_writable_service_template_request.go +++ b/model_patched_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go index 784b865675..5e0c53952f 100644 --- a/model_patched_writable_site_group_request.go +++ b/model_patched_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go index 35523daf2d..b1971a3498 100644 --- a/model_patched_writable_site_request.go +++ b/model_patched_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritableSiteRequest{} // PatchedWritableSiteRequest Adds support for custom fields and tags. type PatchedWritableSiteRequest struct { // Full name of the site - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,15 +155,15 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { +func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -247,9 +247,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { +func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -258,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -274,8 +274,8 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go index 86547508dd..bd07aece20 100644 --- a/model_patched_writable_tenant_group_request.go +++ b/model_patched_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go index cac6687a18..8884064567 100644 --- a/model_patched_writable_tunnel_request.go +++ b/model_patched_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{} type PatchedWritableTunnelRequest struct { Name *string `json:"name,omitempty"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,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"` @@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -144,8 +144,8 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -192,9 +192,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -203,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -219,8 +219,8 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -235,9 +235,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { +func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -246,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -262,8 +262,8 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go index 54582c03d2..39e76f57ad 100644 --- a/model_patched_writable_tunnel_request_encapsulation.go +++ b/model_patched_writable_tunnel_request_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go index b4b020162d..4ec0956891 100644 --- a/model_patched_writable_tunnel_request_status.go +++ b/model_patched_writable_tunnel_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go index 3619913905..3e946c1725 100644 --- a/model_patched_writable_tunnel_termination_request.go +++ b/model_patched_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{} // PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags. type PatchedWritableTunnelTerminationRequest struct { - Tunnel *TunnelRequest `json:"tunnel,omitempty"` + Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType *string `json:"termination_type,omitempty"` TerminationId NullableInt64 `json:"termination_id,omitempty"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu } // GetTunnel returns the Tunnel field value if set, zero value otherwise. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil || IsNil(o.Tunnel) { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } return *o.Tunnel @@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil || IsNil(o.Tunnel) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool { return false } -// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field. -func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field. +func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = &v } @@ -188,9 +188,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -199,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressReques // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go index 8bc7b5eeab..7a730dd24f 100644 --- a/model_patched_writable_tunnel_termination_request_role.go +++ b/model_patched_writable_tunnel_termination_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go index f160befac7..890f613236 100644 --- a/model_patched_writable_virtual_chassis_request.go +++ b/model_patched_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go index 34ba5129c8..bb664e202d 100644 --- a/model_patched_writable_virtual_device_context_request.go +++ b/model_patched_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { Name *string `json:"name,omitempty"` - Device *DeviceRequest `json:"device,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + 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"` @@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -160,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() TenantRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -171,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -187,8 +187,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -203,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() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -214,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRe // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -230,8 +230,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -246,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() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -257,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRe // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -273,8 +273,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go index 9bed2f9137..bb51c52138 100644 --- a/model_patched_writable_virtual_device_context_request_status.go +++ b/model_patched_writable_virtual_device_context_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go index e9006bf847..3b53ff6533 100644 --- a/model_patched_writable_virtual_machine_with_config_context_request.go +++ b/model_patched_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,23 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} // PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name *string `json:"name,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -94,9 +95,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -104,7 +105,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Patc // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -120,15 +121,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -137,7 +138,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRe // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -153,8 +154,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -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() ClusterRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -180,7 +181,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Clu // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -196,8 +197,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -212,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() DeviceRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -223,7 +224,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Devi // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -239,8 +240,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -254,10 +255,42 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -266,7 +299,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() Device // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -282,8 +315,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -298,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() TenantRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -309,7 +342,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Tena // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -325,8 +358,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -341,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() PlatformRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -352,7 +385,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Pl // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -368,8 +401,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -384,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() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -395,7 +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() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -411,8 +444,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -427,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() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -438,7 +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() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -454,8 +487,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -663,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() ConfigTemplateRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -674,7 +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() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -690,8 +723,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -827,6 +860,9 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -896,6 +932,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(da delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go index f341c24258..7cb5eaf35e 100644 --- a/model_patched_writable_vlan_request.go +++ b/model_patched_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableVLANRequest{} // PatchedWritableVLANRequest Adds support for custom fields and tags. type PatchedWritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid *int32 `json:"vid,omitempty"` Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { +func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -279,9 +279,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { +func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -290,7 +290,7 @@ func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -306,8 +306,8 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go index 74ada78e4b..fca8f23eb0 100644 --- a/model_patched_writable_vlan_request_status.go +++ b/model_patched_writable_vlan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go index fd72c0f661..4e0e004132 100644 --- a/model_patched_writable_vm_interface_request.go +++ b/model_patched_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -28,9 +28,9 @@ type PatchedWritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -56,9 +56,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -66,7 +66,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRe // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -82,8 +82,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } @@ -388,9 +388,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRe } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -399,7 +399,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -415,8 +415,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -463,9 +463,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -474,7 +474,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -490,8 +490,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go index 1ffc71e4c3..73559710ec 100644 --- a/model_patched_writable_wireless_lan_group_request.go +++ b/model_patched_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go index 9619126116..bc38ef0c76 100644 --- a/model_patched_writable_wireless_lan_request.go +++ b/model_patched_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{} type PatchedWritableWirelessLANRequest struct { Ssid *string `json:"ssid,omitempty"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -193,9 +193,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -204,7 +204,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -220,8 +220,8 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go index 2960171ff5..3b947d2194 100644 --- a/model_patched_writable_wireless_lan_request_status.go +++ b/model_patched_writable_wireless_lan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go index 53a6fee89d..b44e387d4a 100644 --- a/model_patched_writable_wireless_link_request.go +++ b/model_patched_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *InterfaceRequest `json:"interface_a,omitempty"` - InterfaceB *InterfaceRequest `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"` + InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +56,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles } // GetInterfaceA returns the InterfaceA field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceA) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceA @@ -64,7 +66,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceA) { return nil, false } @@ -80,15 +82,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool { return false } -// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = &v } // GetInterfaceB returns the InterfaceB field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceB) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceB @@ -96,7 +98,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceB) { return nil, false } @@ -112,8 +114,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool { return false } -// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = &v } @@ -150,9 +152,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -160,7 +162,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableReq // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -320,6 +322,81 @@ func (o *PatchedWritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -482,6 +559,12 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -524,6 +607,8 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_wireless_link_request_distance_unit.go b/model_patched_writable_wireless_link_request_distance_unit.go new file mode 100644 index 0000000000..2c2419af88 --- /dev/null +++ b/model_patched_writable_wireless_link_request_distance_unit.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableWirelessLinkRequestDistanceUnit * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type PatchedWritableWirelessLinkRequestDistanceUnit string + +// List of PatchedWritableWirelessLinkRequest_distance_unit +const ( + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_KM PatchedWritableWirelessLinkRequestDistanceUnit = "km" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_M PatchedWritableWirelessLinkRequestDistanceUnit = "m" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_MI PatchedWritableWirelessLinkRequestDistanceUnit = "mi" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_FT PatchedWritableWirelessLinkRequestDistanceUnit = "ft" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_EMPTY PatchedWritableWirelessLinkRequestDistanceUnit = "" +) + +// All allowed values of PatchedWritableWirelessLinkRequestDistanceUnit enum +var AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues = []PatchedWritableWirelessLinkRequestDistanceUnit{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *PatchedWritableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableWirelessLinkRequestDistanceUnit(value) + for _, existing := range AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableWirelessLinkRequestDistanceUnit", value) +} + +// NewPatchedWritableWirelessLinkRequestDistanceUnitFromValue returns a pointer to a valid PatchedWritableWirelessLinkRequestDistanceUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableWirelessLinkRequestDistanceUnitFromValue(v string) (*PatchedWritableWirelessLinkRequestDistanceUnit, error) { + ev := PatchedWritableWirelessLinkRequestDistanceUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableWirelessLinkRequestDistanceUnit: valid values are %v", v, AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableWirelessLinkRequestDistanceUnit) IsValid() bool { + for _, existing := range AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableWirelessLinkRequest_distance_unit value +func (v PatchedWritableWirelessLinkRequestDistanceUnit) Ptr() *PatchedWritableWirelessLinkRequestDistanceUnit { + return &v +} + +type NullablePatchedWritableWirelessLinkRequestDistanceUnit struct { + value *PatchedWritableWirelessLinkRequestDistanceUnit + isSet bool +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) Get() *PatchedWritableWirelessLinkRequestDistanceUnit { + return v.value +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) Set(val *PatchedWritableWirelessLinkRequestDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableWirelessLinkRequestDistanceUnit(val *PatchedWritableWirelessLinkRequestDistanceUnit) *NullablePatchedWritableWirelessLinkRequestDistanceUnit { + return &NullablePatchedWritableWirelessLinkRequestDistanceUnit{value: val, isSet: true} +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_platform.go b/model_platform.go index 5ab96ce266..d0c86b87f6 100644 --- a/model_platform.go +++ b/model_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Platform type satisfies the MappedNullable interface at compile time @@ -20,14 +21,21 @@ var _ MappedNullable = &Platform{} // Platform Adds support for custom fields and tags. type Platform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int64 `json:"device_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +45,16 @@ type _Platform Platform // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *Platform { +func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int64, virtualmachineCount int64) *Platform { this := Platform{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.DeviceCount = deviceCount this.VirtualmachineCount = virtualmachineCount return &this @@ -105,6 +116,30 @@ func (o *Platform) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Platform) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Platform) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Platform) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Platform) GetDisplay() string { if o == nil { @@ -177,6 +212,92 @@ func (o *Platform) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetManufacturer() BriefManufacturer { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturer + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *Platform) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *Platform) SetManufacturer(v BriefManufacturer) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *Platform) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *Platform) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *Platform) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *Platform) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *Platform) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +330,122 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Platform) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Platform) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Platform) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Platform) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Platform) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Platform) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Platform) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Platform) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value func (o *Platform) GetDeviceCount() int64 { if o == nil { @@ -269,12 +506,27 @@ func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["device_count"] = o.DeviceCount toSerialize["virtualmachine_count"] = o.VirtualmachineCount @@ -292,9 +544,12 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "device_count", "virtualmachine_count", } @@ -328,10 +583,17 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_platform_request.go b/model_platform_request.go index 365ea0c950..382dc8554b 100644 --- a/model_platform_request.go +++ b/model_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,92 @@ func (o *PlatformRequest) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PlatformRequest) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *PlatformRequest) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *PlatformRequest) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplateRequest + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *PlatformRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *PlatformRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *PlatformRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +217,70 @@ func (o *PlatformRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PlatformRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PlatformRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PlatformRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PlatformRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PlatformRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PlatformRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +293,21 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +354,11 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_feed.go b/model_power_feed.go index d946fcb849..02b2020acc 100644 --- a/model_power_feed.go +++ b/model_power_feed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,32 +21,33 @@ var _ MappedNullable = &PowerFeed{} // PowerFeed Adds support for custom fields and tags. type PowerFeed struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - PowerPanel PowerPanel `json:"power_panel"` - Rack NullableRack `json:"rack,omitempty"` - Name string `json:"name"` - Status *PowerFeedStatus `json:"status,omitempty"` - Type *PowerFeedType `json:"type,omitempty"` - Supply *PowerFeedSupply `json:"supply,omitempty"` - Phase *PowerFeedPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + PowerPanel BriefPowerPanel `json:"power_panel"` + Rack NullableBriefRack `json:"rack,omitempty"` + Name string `json:"name"` + Status *PowerFeedStatus `json:"status,omitempty"` + Type *PowerFeedType `json:"type,omitempty"` + Supply *PowerFeedSupply `json:"supply,omitempty"` + Phase *PowerFeedPhase `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Description *string `json:"description,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -62,10 +63,11 @@ type _PowerFeed PowerFeed // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { +func NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { this := PowerFeed{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.PowerPanel = powerPanel this.Name = name @@ -138,6 +140,30 @@ func (o *PowerFeed) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerFeed) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerFeed) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerFeed) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerFeed) GetDisplay() string { if o == nil { @@ -163,9 +189,9 @@ func (o *PowerFeed) SetDisplay(v string) { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeed) GetPowerPanel() PowerPanel { +func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { if o == nil { - var ret PowerPanel + var ret BriefPowerPanel return ret } @@ -174,7 +200,7 @@ func (o *PowerFeed) GetPowerPanel() PowerPanel { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { +func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { if o == nil { return nil, false } @@ -182,14 +208,14 @@ func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { } // SetPowerPanel sets field value -func (o *PowerFeed) SetPowerPanel(v PowerPanel) { +func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetRack() Rack { +func (o *PowerFeed) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -198,7 +224,7 @@ func (o *PowerFeed) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetRackOk() (*Rack, bool) { +func (o *PowerFeed) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -214,8 +240,8 @@ func (o *PowerFeed) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *PowerFeed) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *PowerFeed) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -510,10 +536,10 @@ func (o *PowerFeed) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerFeed) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerFeed) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -523,7 +549,7 @@ func (o *PowerFeed) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetCableOk() (*Cable, bool) { +func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -531,7 +557,7 @@ func (o *PowerFeed) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerFeed) SetCable(v Cable) { +func (o *PowerFeed) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -584,30 +610,33 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerFeed) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerFeed) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -619,8 +648,9 @@ func (o *PowerFeed) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -632,27 +662,29 @@ func (o *PowerFeed) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerFeed) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -712,9 +744,9 @@ func (o *PowerFeed) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetTenant() Tenant { +func (o *PowerFeed) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -723,7 +755,7 @@ func (o *PowerFeed) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetTenantOk() (*Tenant, bool) { +func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -739,8 +771,8 @@ func (o *PowerFeed) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *PowerFeed) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -938,6 +970,7 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { @@ -971,9 +1004,11 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -1008,6 +1043,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "power_panel", "name", @@ -1052,6 +1088,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "power_panel") delete(additionalProperties, "rack") diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go index 728d75ab99..7251c63648 100644 --- a/model_power_feed_phase.go +++ b/model_power_feed_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go index 1e4274876d..8d7156e616 100644 --- a/model_power_feed_phase_label.go +++ b/model_power_feed_phase_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_request.go b/model_power_feed_request.go index 51865eb47c..819b5d0c4b 100644 --- a/model_power_feed_request.go +++ b/model_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type PowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string) *PowerFeedRequest { +func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest { this := PowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { } // SetPowerPanel sets field value -func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetRack() RackRequest { +func (o *PowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *PowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetTenant() TenantRequest { +func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *PowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_power_feed_status.go b/model_power_feed_status.go index e0b9ca5753..4cae9f4767 100644 --- a/model_power_feed_status.go +++ b/model_power_feed_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go index 25d308214d..f55fff67bc 100644 --- a/model_power_feed_status_label.go +++ b/model_power_feed_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go index f7a5c92515..94b9f29909 100644 --- a/model_power_feed_supply.go +++ b/model_power_feed_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go index 07573618e4..7295bd3b71 100644 --- a/model_power_feed_supply_label.go +++ b/model_power_feed_supply_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type.go b/model_power_feed_type.go index 0e839a1a27..bb84aa7ab4 100644 --- a/model_power_feed_type.go +++ b/model_power_feed_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go index e98943a9f2..6c9caa928a 100644 --- a/model_power_feed_type_label.go +++ b/model_power_feed_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet.go b/model_power_outlet.go index 2072ed336b..0029693a8c 100644 --- a/model_power_outlet.go +++ b/model_power_outlet.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,28 @@ var _ MappedNullable = &PowerOutlet{} // PowerOutlet Adds support for custom fields and tags. type PowerOutlet struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPort `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPort `json:"power_port,omitempty"` FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -57,10 +58,11 @@ type _PowerOutlet PowerOutlet // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { +func NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { this := PowerOutlet{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -133,6 +135,30 @@ func (o *PowerOutlet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerOutlet) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerOutlet) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerOutlet) GetDisplay() string { if o == nil { @@ -158,9 +184,9 @@ func (o *PowerOutlet) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerOutlet) GetDevice() Device { +func (o *PowerOutlet) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -169,7 +195,7 @@ func (o *PowerOutlet) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { +func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -177,14 +203,14 @@ func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerOutlet) SetDevice(v Device) { +func (o *PowerOutlet) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetModule() Module { +func (o *PowerOutlet) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -193,7 +219,7 @@ func (o *PowerOutlet) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetModuleOk() (*Module, bool) { +func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -209,8 +235,8 @@ func (o *PowerOutlet) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *PowerOutlet) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerOutlet) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -324,9 +350,9 @@ func (o *PowerOutlet) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetPowerPort() PowerPort { +func (o *PowerOutlet) GetPowerPort() BriefPowerPort { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPort + var ret BriefPowerPort return ret } return *o.PowerPort.Get() @@ -335,7 +361,7 @@ func (o *PowerOutlet) GetPowerPort() PowerPort { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) { +func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool) { if o == nil { return nil, false } @@ -351,8 +377,8 @@ func (o *PowerOutlet) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field. -func (o *PowerOutlet) SetPowerPort(v PowerPort) { +// SetPowerPort gets a reference to the given NullableBriefPowerPort and assigns it to the PowerPort field. +func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) { o.PowerPort.Set(&v) } @@ -474,10 +500,10 @@ func (o *PowerOutlet) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerOutlet) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerOutlet) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -487,7 +513,7 @@ func (o *PowerOutlet) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetCableOk() (*Cable, bool) { +func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -495,7 +521,7 @@ func (o *PowerOutlet) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerOutlet) SetCable(v Cable) { +func (o *PowerOutlet) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -548,30 +574,33 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerOutlet) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -583,8 +612,9 @@ func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -596,27 +626,29 @@ func (o *PowerOutlet) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerOutlet) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -795,6 +827,7 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -822,9 +855,11 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -850,6 +885,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -894,6 +930,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go index 95698360a8..a34f7b7bb2 100644 --- a/model_power_outlet_feed_leg.go +++ b/model_power_outlet_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go index 8a906036cb..91f98a31a5 100644 --- a/model_power_outlet_feed_leg_label.go +++ b/model_power_outlet_feed_leg_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go index bc3abd6e53..84daef03a0 100644 --- a/model_power_outlet_feed_leg_value.go +++ b/model_power_outlet_feed_leg_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go index 122e3eb78d..188f9158ce 100644 --- a/model_power_outlet_request.go +++ b/model_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _PowerOutletRequest PowerOutletRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest { +func NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest { this := PowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest { } // GetDevice returns the Device field value -func (o *PowerOutletRequest) GetDevice() DeviceRequest { +func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *PowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetModule() ModuleRequest { +func (o *PowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *PowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -224,9 +224,9 @@ func (o *PowerOutletRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -235,7 +235,7 @@ func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go index 7cb04c40cf..0552bf3aa7 100644 --- a/model_power_outlet_request_feed_leg.go +++ b/model_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go index ab5cb9272a..88ae2d3d67 100644 --- a/model_power_outlet_request_type.go +++ b/model_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PowerOutletRequestType string // List of PowerOutletRequest_type @@ -81,6 +81,7 @@ const ( POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r" POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r" POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r" + POWEROUTLETREQUESTTYPE_NEMA_L22_20R PowerOutletRequestType = "nema-l22-20r" POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r" POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C" POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C" @@ -182,6 +183,7 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go index 8d700a1161..fc87fff211 100644 --- a/model_power_outlet_template.go +++ b/model_power_outlet_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,21 @@ var _ MappedNullable = &PowerOutletTemplate{} // PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplate `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -137,9 +137,9 @@ func (o *PowerOutletTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetDeviceType() DeviceType { +func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -148,7 +148,7 @@ func (o *PowerOutletTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,8 +164,8 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -180,9 +180,9 @@ func (o *PowerOutletTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetModuleType() ModuleType { +func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -207,8 +207,8 @@ func (o *PowerOutletTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *PowerOutletTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -322,9 +322,9 @@ func (o *PowerOutletTemplate) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { +func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplate + var ret BriefPowerPortTemplate return ret } return *o.PowerPort.Get() @@ -333,7 +333,7 @@ func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) { +func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool) { if o == nil { return nil, false } @@ -349,8 +349,8 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field. -func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplate and assigns it to the PowerPort field. +func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go index 55567b581b..ec3e314923 100644 --- a/model_power_outlet_template_request.go +++ b/model_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} // PowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -239,9 +239,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -250,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -266,8 +266,8 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go index 2f39149ab7..be175b54a4 100644 --- a/model_power_outlet_type.go +++ b/model_power_outlet_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go index 4b09dda97c..48a4d6333c 100644 --- a/model_power_outlet_type_label.go +++ b/model_power_outlet_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -81,6 +81,7 @@ const ( 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" @@ -181,6 +182,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "NEMA L15-60R", "NEMA L21-20R", "NEMA L21-30R", + "NEMA L22-20R", "NEMA L22-30R", "CS6360C", "CS6364C", diff --git a/model_power_panel.go b/model_power_panel.go index 9548ab75a2..c6dc32842b 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPanel type satisfies the MappedNullable interface at compile time @@ -20,12 +21,20 @@ var _ MappedNullable = &PowerPanel{} // PowerPanel Adds support for custom fields and tags. type PowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +44,17 @@ type _PowerPanel PowerPanel // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *PowerPanel { +func NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Site = site this.Name = name this.PowerfeedCount = powerfeedCount + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +114,30 @@ func (o *PowerPanel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerPanel) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerPanel) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerPanel) GetDisplay() string { if o == nil { @@ -125,6 +162,73 @@ func (o *PowerPanel) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value +func (o *PowerPanel) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanel) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanel) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *PowerPanel) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanel) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanel) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanel) GetName() string { if o == nil { @@ -181,6 +285,102 @@ func (o *PowerPanel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPanel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + // GetPowerfeedCount returns the PowerfeedCount field value func (o *PowerPanel) GetPowerfeedCount() int64 { if o == nil { @@ -205,6 +405,58 @@ func (o *PowerPanel) SetPowerfeedCount(v int64) { o.PowerfeedCount = v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPanel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPanel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPanel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +469,28 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } toSerialize["powerfeed_count"] = o.PowerfeedCount + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +506,13 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "site", "name", "powerfeed_count", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +544,18 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") delete(additionalProperties, "powerfeed_count") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_panel_request.go b/model_power_panel_request.go index 41ab3ae46b..7d32ca37f1 100644 --- a/model_power_panel_request.go +++ b/model_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _PowerPanelRequest PowerPanelRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerPanelRequest(name string) *PowerPanelRequest { +func NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest { this := PowerPanelRequest{} + this.Site = site this.Name = name return &this } @@ -45,6 +51,73 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest { return &this } +// GetSite returns the Site field value +func (o *PowerPanelRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanelRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanelRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanelRequest) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanelRequest) GetName() string { if o == nil { @@ -101,6 +174,102 @@ func (o *PowerPanelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPanelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +280,23 @@ func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +310,7 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "site", "name", } @@ -158,8 +341,13 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port.go b/model_power_port.go index bfc69ca0ff..ecd4322f61 100644 --- a/model_power_port.go +++ b/model_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPort type satisfies the MappedNullable interface at compile time @@ -20,15 +21,37 @@ var _ MappedNullable = &PowerPort{} // PowerPort Adds support for custom fields and tags. type PowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableCable `json:"cable"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` + // Return the type of the peer link terminations, or None. + LinkPeersType NullableString `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerPort PowerPort @@ -37,14 +60,23 @@ type _PowerPort PowerPort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort { +func NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerPort { this := PowerPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name this.Cable = cable + this.CableEnd = cableEnd + this.LinkPeers = linkPeers + this.LinkPeersType = linkPeersType + this.ConnectedEndpoints = connectedEndpoints + this.ConnectedEndpointsType = connectedEndpointsType + this.ConnectedEndpointsReachable = connectedEndpointsReachable + this.Created = created + this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -105,6 +137,30 @@ func (o *PowerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerPort) GetDisplay() string { if o == nil { @@ -130,9 +186,9 @@ func (o *PowerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerPort) GetDevice() Device { +func (o *PowerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -141,7 +197,7 @@ func (o *PowerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPort) GetDeviceOk() (*Device, bool) { +func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -149,10 +205,53 @@ func (o *PowerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerPort) SetDevice(v Device) { +func (o *PowerPort) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPort) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerPort) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPort) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPort) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPort) GetName() string { if o == nil { @@ -177,6 +276,167 @@ func (o *PowerPort) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPort) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPort) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPort) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPort) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPort) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPort) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPort) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPort) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPort) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPort) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPort) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPort) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPort) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPort) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPort) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPort) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,11 +469,43 @@ func (o *PowerPort) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPort) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPort) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPort) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -223,7 +515,7 @@ func (o *PowerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetCableOk() (*Cable, bool) { +func (o *PowerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -231,10 +523,276 @@ func (o *PowerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerPort) SetCable(v Cable) { +func (o *PowerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// GetCableEnd returns the CableEnd field value +func (o *PowerPort) GetCableEnd() string { + if o == nil { + var ret string + return ret + } + + return o.CableEnd +} + +// GetCableEndOk returns a tuple with the CableEnd field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCableEndOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CableEnd, true +} + +// SetCableEnd sets field value +func (o *PowerPort) SetCableEnd(v string) { + o.CableEnd = v +} + +// GetLinkPeers returns the LinkPeers field value +func (o *PowerPort) GetLinkPeers() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.LinkPeers +} + +// GetLinkPeersOk returns a tuple with the LinkPeers field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLinkPeersOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.LinkPeers, true +} + +// SetLinkPeers sets field value +func (o *PowerPort) SetLinkPeers(v []interface{}) { + o.LinkPeers = v +} + +// GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetLinkPeersType() string { + if o == nil || o.LinkPeersType.Get() == nil { + var ret string + return ret + } + + return *o.LinkPeersType.Get() +} + +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// SetLinkPeersType sets field value +func (o *PowerPort) SetLinkPeersType(v string) { + o.LinkPeersType.Set(&v) +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned +func (o *PowerPort) GetConnectedEndpoints() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConnectedEndpoints +} + +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConnectedEndpoints) { + return nil, false + } + return o.ConnectedEndpoints, true +} + +// SetConnectedEndpoints sets field value +func (o *PowerPort) SetConnectedEndpoints(v []interface{}) { + o.ConnectedEndpoints = v +} + +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetConnectedEndpointsType() string { + if o == nil || o.ConnectedEndpointsType.Get() == nil { + var ret string + return ret + } + + return *o.ConnectedEndpointsType.Get() +} + +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// SetConnectedEndpointsType sets field value +func (o *PowerPort) SetConnectedEndpointsType(v string) { + o.ConnectedEndpointsType.Set(&v) +} + +// GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value +func (o *PowerPort) GetConnectedEndpointsReachable() bool { + if o == nil { + var ret bool + return ret + } + + return o.ConnectedEndpointsReachable +} + +// GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ConnectedEndpointsReachable, true +} + +// SetConnectedEndpointsReachable sets field value +func (o *PowerPort) SetConnectedEndpointsReachable(v bool) { + o.ConnectedEndpointsReachable = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPort) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPort) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPort) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPort) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPort) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPort) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPort) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPort) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetOccupied returns the Occupied field value func (o *PowerPort) GetOccupied() bool { if o == nil { @@ -271,13 +829,48 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } toSerialize["cable"] = o.Cable.Get() + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -294,10 +887,19 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", "cable", + "cable_end", + "link_peers", + "link_peers_type", + "connected_endpoints", + "connected_endpoints_type", + "connected_endpoints_reachable", + "created", + "last_updated", "_occupied", } @@ -330,11 +932,28 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") + delete(additionalProperties, "cable_end") + delete(additionalProperties, "link_peers") + delete(additionalProperties, "link_peers_type") + delete(additionalProperties, "connected_endpoints") + delete(additionalProperties, "connected_endpoints_type") + delete(additionalProperties, "connected_endpoints_reachable") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "_occupied") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request.go b/model_power_port_request.go index b699633c58..8db3fbd7e0 100644 --- a/model_power_port_request.go +++ b/model_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,21 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +44,7 @@ type _PowerPortRequest PowerPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest { +func NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest { this := PowerPortRequest{} this.Device = device this.Name = name @@ -48,9 +60,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest { } // GetDevice returns the Device field value -func (o *PowerPortRequest) GetDevice() DeviceRequest { +func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -59,7 +71,7 @@ func (o *PowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -67,10 +79,53 @@ func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerPortRequest) SetDevice(v DeviceRequest) { +func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPortRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerPortRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPortRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPortRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPortRequest) GetName() string { if o == nil { @@ -95,6 +150,167 @@ func (o *PowerPortRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +343,102 @@ func (o *PowerPortRequest) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPortRequest) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPortRequest) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPortRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPortRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPortRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPortRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPortRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPortRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,10 +450,34 @@ func (o PowerPortRequest) MarshalJSON() ([]byte, error) { func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,8 +523,16 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go new file mode 100644 index 0000000000..950e7bb667 --- /dev/null +++ b/model_power_port_request_type.go @@ -0,0 +1,316 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +type PowerPortRequestType string + +// List of PowerPortRequest_type +const ( + POWERPORTREQUESTTYPE_IEC_60320_C6 PowerPortRequestType = "iec-60320-c6" + POWERPORTREQUESTTYPE_IEC_60320_C8 PowerPortRequestType = "iec-60320-c8" + POWERPORTREQUESTTYPE_IEC_60320_C14 PowerPortRequestType = "iec-60320-c14" + POWERPORTREQUESTTYPE_IEC_60320_C16 PowerPortRequestType = "iec-60320-c16" + POWERPORTREQUESTTYPE_IEC_60320_C20 PowerPortRequestType = "iec-60320-c20" + POWERPORTREQUESTTYPE_IEC_60320_C22 PowerPortRequestType = "iec-60320-c22" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PowerPortRequestType = "iec-60309-p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PowerPortRequestType = "iec-60309-p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PowerPortRequestType = "iec-60309-p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PowerPortRequestType = "iec-60309-2p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PowerPortRequestType = "iec-60309-2p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PowerPortRequestType = "iec-60309-2p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PowerPortRequestType = "iec-60309-3p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PowerPortRequestType = "iec-60309-3p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PowerPortRequestType = "iec-60309-3p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PowerPortRequestType = "iec-60309-3p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PowerPortRequestType = "iec-60309-3p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PowerPortRequestType = "iec-60309-3p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60906_1 PowerPortRequestType = "iec-60906-1" + POWERPORTREQUESTTYPE_NBR_14136_10A PowerPortRequestType = "nbr-14136-10a" + POWERPORTREQUESTTYPE_NBR_14136_20A PowerPortRequestType = "nbr-14136-20a" + POWERPORTREQUESTTYPE_NEMA_1_15P PowerPortRequestType = "nema-1-15p" + POWERPORTREQUESTTYPE_NEMA_5_15P PowerPortRequestType = "nema-5-15p" + POWERPORTREQUESTTYPE_NEMA_5_20P PowerPortRequestType = "nema-5-20p" + POWERPORTREQUESTTYPE_NEMA_5_30P PowerPortRequestType = "nema-5-30p" + POWERPORTREQUESTTYPE_NEMA_5_50P PowerPortRequestType = "nema-5-50p" + POWERPORTREQUESTTYPE_NEMA_6_15P PowerPortRequestType = "nema-6-15p" + POWERPORTREQUESTTYPE_NEMA_6_20P PowerPortRequestType = "nema-6-20p" + POWERPORTREQUESTTYPE_NEMA_6_30P PowerPortRequestType = "nema-6-30p" + POWERPORTREQUESTTYPE_NEMA_6_50P PowerPortRequestType = "nema-6-50p" + POWERPORTREQUESTTYPE_NEMA_10_30P PowerPortRequestType = "nema-10-30p" + POWERPORTREQUESTTYPE_NEMA_10_50P PowerPortRequestType = "nema-10-50p" + POWERPORTREQUESTTYPE_NEMA_14_20P PowerPortRequestType = "nema-14-20p" + POWERPORTREQUESTTYPE_NEMA_14_30P PowerPortRequestType = "nema-14-30p" + POWERPORTREQUESTTYPE_NEMA_14_50P PowerPortRequestType = "nema-14-50p" + POWERPORTREQUESTTYPE_NEMA_14_60P PowerPortRequestType = "nema-14-60p" + POWERPORTREQUESTTYPE_NEMA_15_15P PowerPortRequestType = "nema-15-15p" + POWERPORTREQUESTTYPE_NEMA_15_20P PowerPortRequestType = "nema-15-20p" + POWERPORTREQUESTTYPE_NEMA_15_30P PowerPortRequestType = "nema-15-30p" + POWERPORTREQUESTTYPE_NEMA_15_50P PowerPortRequestType = "nema-15-50p" + POWERPORTREQUESTTYPE_NEMA_15_60P PowerPortRequestType = "nema-15-60p" + POWERPORTREQUESTTYPE_NEMA_L1_15P PowerPortRequestType = "nema-l1-15p" + POWERPORTREQUESTTYPE_NEMA_L5_15P PowerPortRequestType = "nema-l5-15p" + POWERPORTREQUESTTYPE_NEMA_L5_20P PowerPortRequestType = "nema-l5-20p" + POWERPORTREQUESTTYPE_NEMA_L5_30P PowerPortRequestType = "nema-l5-30p" + POWERPORTREQUESTTYPE_NEMA_L5_50P PowerPortRequestType = "nema-l5-50p" + POWERPORTREQUESTTYPE_NEMA_L6_15P PowerPortRequestType = "nema-l6-15p" + POWERPORTREQUESTTYPE_NEMA_L6_20P PowerPortRequestType = "nema-l6-20p" + POWERPORTREQUESTTYPE_NEMA_L6_30P PowerPortRequestType = "nema-l6-30p" + POWERPORTREQUESTTYPE_NEMA_L6_50P PowerPortRequestType = "nema-l6-50p" + POWERPORTREQUESTTYPE_NEMA_L10_30P PowerPortRequestType = "nema-l10-30p" + POWERPORTREQUESTTYPE_NEMA_L14_20P PowerPortRequestType = "nema-l14-20p" + POWERPORTREQUESTTYPE_NEMA_L14_30P PowerPortRequestType = "nema-l14-30p" + POWERPORTREQUESTTYPE_NEMA_L14_50P PowerPortRequestType = "nema-l14-50p" + POWERPORTREQUESTTYPE_NEMA_L14_60P PowerPortRequestType = "nema-l14-60p" + POWERPORTREQUESTTYPE_NEMA_L15_20P PowerPortRequestType = "nema-l15-20p" + POWERPORTREQUESTTYPE_NEMA_L15_30P PowerPortRequestType = "nema-l15-30p" + POWERPORTREQUESTTYPE_NEMA_L15_50P PowerPortRequestType = "nema-l15-50p" + POWERPORTREQUESTTYPE_NEMA_L15_60P PowerPortRequestType = "nema-l15-60p" + POWERPORTREQUESTTYPE_NEMA_L21_20P PowerPortRequestType = "nema-l21-20p" + POWERPORTREQUESTTYPE_NEMA_L21_30P PowerPortRequestType = "nema-l21-30p" + POWERPORTREQUESTTYPE_NEMA_L22_20P PowerPortRequestType = "nema-l22-20p" + POWERPORTREQUESTTYPE_NEMA_L22_30P PowerPortRequestType = "nema-l22-30p" + POWERPORTREQUESTTYPE_CS6361C PowerPortRequestType = "cs6361c" + POWERPORTREQUESTTYPE_CS6365C PowerPortRequestType = "cs6365c" + POWERPORTREQUESTTYPE_CS8165C PowerPortRequestType = "cs8165c" + POWERPORTREQUESTTYPE_CS8265C PowerPortRequestType = "cs8265c" + POWERPORTREQUESTTYPE_CS8365C PowerPortRequestType = "cs8365c" + POWERPORTREQUESTTYPE_CS8465C PowerPortRequestType = "cs8465c" + POWERPORTREQUESTTYPE_ITA_C PowerPortRequestType = "ita-c" + POWERPORTREQUESTTYPE_ITA_E PowerPortRequestType = "ita-e" + POWERPORTREQUESTTYPE_ITA_F PowerPortRequestType = "ita-f" + POWERPORTREQUESTTYPE_ITA_EF PowerPortRequestType = "ita-ef" + POWERPORTREQUESTTYPE_ITA_G PowerPortRequestType = "ita-g" + POWERPORTREQUESTTYPE_ITA_H PowerPortRequestType = "ita-h" + POWERPORTREQUESTTYPE_ITA_I PowerPortRequestType = "ita-i" + POWERPORTREQUESTTYPE_ITA_J PowerPortRequestType = "ita-j" + POWERPORTREQUESTTYPE_ITA_K PowerPortRequestType = "ita-k" + POWERPORTREQUESTTYPE_ITA_L PowerPortRequestType = "ita-l" + POWERPORTREQUESTTYPE_ITA_M PowerPortRequestType = "ita-m" + POWERPORTREQUESTTYPE_ITA_N PowerPortRequestType = "ita-n" + POWERPORTREQUESTTYPE_ITA_O PowerPortRequestType = "ita-o" + POWERPORTREQUESTTYPE_USB_A PowerPortRequestType = "usb-a" + POWERPORTREQUESTTYPE_USB_B PowerPortRequestType = "usb-b" + POWERPORTREQUESTTYPE_USB_C PowerPortRequestType = "usb-c" + POWERPORTREQUESTTYPE_USB_MINI_A PowerPortRequestType = "usb-mini-a" + POWERPORTREQUESTTYPE_USB_MINI_B PowerPortRequestType = "usb-mini-b" + POWERPORTREQUESTTYPE_USB_MICRO_A PowerPortRequestType = "usb-micro-a" + POWERPORTREQUESTTYPE_USB_MICRO_B PowerPortRequestType = "usb-micro-b" + POWERPORTREQUESTTYPE_USB_MICRO_AB PowerPortRequestType = "usb-micro-ab" + POWERPORTREQUESTTYPE_USB_3_B PowerPortRequestType = "usb-3-b" + POWERPORTREQUESTTYPE_USB_3_MICRO_B PowerPortRequestType = "usb-3-micro-b" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PowerPortRequestType = "molex-micro-fit-1x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerPortRequestType = "molex-micro-fit-2x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerPortRequestType = "molex-micro-fit-2x4" + POWERPORTREQUESTTYPE_DC_TERMINAL PowerPortRequestType = "dc-terminal" + POWERPORTREQUESTTYPE_SAF_D_GRID PowerPortRequestType = "saf-d-grid" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PowerPortRequestType = "neutrik-powercon-20" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PowerPortRequestType = "neutrik-powercon-32" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerPortRequestType = "neutrik-powercon-true1" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortRequestType = "neutrik-powercon-true1-top" + POWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PowerPortRequestType = "ubiquiti-smartpower" + POWERPORTREQUESTTYPE_HARDWIRED PowerPortRequestType = "hardwired" + POWERPORTREQUESTTYPE_OTHER PowerPortRequestType = "other" + POWERPORTREQUESTTYPE_EMPTY PowerPortRequestType = "" +) + +// All allowed values of PowerPortRequestType enum +var AllowedPowerPortRequestTypeEnumValues = []PowerPortRequestType{ + "iec-60320-c6", + "iec-60320-c8", + "iec-60320-c14", + "iec-60320-c16", + "iec-60320-c20", + "iec-60320-c22", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60906-1", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15p", + "nema-5-15p", + "nema-5-20p", + "nema-5-30p", + "nema-5-50p", + "nema-6-15p", + "nema-6-20p", + "nema-6-30p", + "nema-6-50p", + "nema-10-30p", + "nema-10-50p", + "nema-14-20p", + "nema-14-30p", + "nema-14-50p", + "nema-14-60p", + "nema-15-15p", + "nema-15-20p", + "nema-15-30p", + "nema-15-50p", + "nema-15-60p", + "nema-l1-15p", + "nema-l5-15p", + "nema-l5-20p", + "nema-l5-30p", + "nema-l5-50p", + "nema-l6-15p", + "nema-l6-20p", + "nema-l6-30p", + "nema-l6-50p", + "nema-l10-30p", + "nema-l14-20p", + "nema-l14-30p", + "nema-l14-50p", + "nema-l14-60p", + "nema-l15-20p", + "nema-l15-30p", + "nema-l15-50p", + "nema-l15-60p", + "nema-l21-20p", + "nema-l21-30p", + "nema-l22-20p", + "nema-l22-30p", + "cs6361c", + "cs6365c", + "cs8165c", + "cs8265c", + "cs8365c", + "cs8465c", + "ita-c", + "ita-e", + "ita-f", + "ita-ef", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-n", + "ita-o", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", + "usb-3-b", + "usb-3-micro-b", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "dc-terminal", + "saf-d-grid", + "neutrik-powercon-20", + "neutrik-powercon-32", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "ubiquiti-smartpower", + "hardwired", + "other", + "", +} + +func (v *PowerPortRequestType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortRequestType(value) + for _, existing := range AllowedPowerPortRequestTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortRequestType", value) +} + +// NewPowerPortRequestTypeFromValue returns a pointer to a valid PowerPortRequestType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortRequestTypeFromValue(v string) (*PowerPortRequestType, error) { + ev := PowerPortRequestType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortRequestType: valid values are %v", v, AllowedPowerPortRequestTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortRequestType) IsValid() bool { + for _, existing := range AllowedPowerPortRequestTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPortRequest_type value +func (v PowerPortRequestType) Ptr() *PowerPortRequestType { + return &v +} + +type NullablePowerPortRequestType struct { + value *PowerPortRequestType + isSet bool +} + +func (v NullablePowerPortRequestType) Get() *PowerPortRequestType { + return v.value +} + +func (v *NullablePowerPortRequestType) Set(val *PowerPortRequestType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortRequestType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortRequestType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortRequestType(val *PowerPortRequestType) *NullablePowerPortRequestType { + return &NullablePowerPortRequestType{value: val, isSet: true} +} + +func (v NullablePowerPortRequestType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortRequestType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_power_port_template.go b/model_power_port_template.go index 2178d92e0f..44e2d5cc1d 100644 --- a/model_power_port_template.go +++ b/model_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &PowerPortTemplate{} // PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - 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"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +47,14 @@ type _PowerPortTemplate PowerPortTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPowerPortTemplate(id int32, url string, display string, name string) *PowerPortTemplate { +func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerPortTemplate { this := PowerPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +138,92 @@ func (o *PowerPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplate) GetName() string { if o == nil { @@ -148,6 +248,167 @@ func (o *PowerPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPortTemplate) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplate) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplate) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplate) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplate) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplate) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplate) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +441,58 @@ func (o *PowerPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +506,30 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +547,8 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +581,16 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go index 4f2826e7f4..7a2c750b21 100644 --- a/model_power_port_template_request.go +++ b/model_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,18 @@ var _ MappedNullable = &PowerPortTemplateRequest{} // PowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,6 +55,92 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +165,167 @@ func (o *PowerPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +368,25 @@ func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -159,7 +433,13 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_type.go b/model_power_port_type.go new file mode 100644 index 0000000000..109040ab4b --- /dev/null +++ b/model_power_port_type.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PowerPortType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPortType{} + +// PowerPortType struct for PowerPortType +type PowerPortType struct { + Value *PatchedWritablePowerPortTemplateRequestType `json:"value,omitempty"` + Label *PowerPortTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerPortType PowerPortType + +// NewPowerPortType instantiates a new PowerPortType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPowerPortType() *PowerPortType { + this := PowerPortType{} + return &this +} + +// NewPowerPortTypeWithDefaults instantiates a new PowerPortType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPowerPortTypeWithDefaults() *PowerPortType { + this := PowerPortType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType { + if o == nil || IsNil(o.Value) { + var ret PatchedWritablePowerPortTemplateRequestType + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *PowerPortType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Value field. +func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortType) GetLabel() PowerPortTypeLabel { + if o == nil || IsNil(o.Label) { + var ret PowerPortTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given PowerPortTypeLabel and assigns it to the Label field. +func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) { + o.Label = &v +} + +func (o PowerPortType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPortType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPortType) UnmarshalJSON(data []byte) (err error) { + varPowerPortType := _PowerPortType{} + + err = json.Unmarshal(data, &varPowerPortType) + + if err != nil { + return err + } + + *o = PowerPortType(varPowerPortType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPortType struct { + value *PowerPortType + isSet bool +} + +func (v NullablePowerPortType) Get() *PowerPortType { + return v.value +} + +func (v *NullablePowerPortType) Set(val *PowerPortType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortType(val *PowerPortType) *NullablePowerPortType { + return &NullablePowerPortType{value: val, isSet: true} +} + +func (v NullablePowerPortType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go new file mode 100644 index 0000000000..6bd53f7760 --- /dev/null +++ b/model_power_port_type_label.go @@ -0,0 +1,314 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortTypeLabel the model 'PowerPortTypeLabel' +type PowerPortTypeLabel string + +// List of PowerPort_type_label +const ( + POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6" + POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8" + POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14" + POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16" + POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20" + POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22" + POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H" + POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H" + POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H" + POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H" + POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H" + POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H" + POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H" + POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H" + POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H" + POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H" + POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H" + POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H" + POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1" + POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)" + POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)" + POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P" + POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P" + POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P" + POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P" + POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P" + POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P" + POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P" + POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P" + POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P" + POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P" + POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P" + POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P" + POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P" + POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P" + POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P" + POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P" + POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P" + POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P" + POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P" + POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P" + POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P" + POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P" + POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P" + POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P" + POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P" + POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P" + POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P" + POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P" + POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P" + POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P" + POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P" + POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P" + POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P" + POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P" + POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P" + POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P" + POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P" + POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P" + POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P" + POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P" + POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P" + POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P" + POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C" + POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C" + POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C" + POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C" + POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C" + POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C" + POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)" + POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)" + POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" + POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" + POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" + POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H" + POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I" + POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J" + POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K" + POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" + POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)" + POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N" + POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O" + POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A" + POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B" + POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C" + POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A" + POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B" + POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A" + POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B" + POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB" + POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B" + POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4" + POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal" + POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerPortTypeLabel = "Neutrik powerCON TRUE1 TOP" + POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower" + POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired" + POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other" +) + +// All allowed values of PowerPortTypeLabel enum +var AllowedPowerPortTypeLabelEnumValues = []PowerPortTypeLabel{ + "C6", + "C8", + "C14", + "C16", + "C20", + "C22", + "P+N+E 4H", + "P+N+E 6H", + "P+N+E 9H", + "2P+E 4H", + "2P+E 6H", + "2P+E 9H", + "3P+E 4H", + "3P+E 6H", + "3P+E 9H", + "3P+N+E 4H", + "3P+N+E 6H", + "3P+N+E 9H", + "IEC 60906-1", + "2P+T 10A (NBR 14136)", + "2P+T 20A (NBR 14136)", + "NEMA 1-15P", + "NEMA 5-15P", + "NEMA 5-20P", + "NEMA 5-30P", + "NEMA 5-50P", + "NEMA 6-15P", + "NEMA 6-20P", + "NEMA 6-30P", + "NEMA 6-50P", + "NEMA 10-30P", + "NEMA 10-50P", + "NEMA 14-20P", + "NEMA 14-30P", + "NEMA 14-50P", + "NEMA 14-60P", + "NEMA 15-15P", + "NEMA 15-20P", + "NEMA 15-30P", + "NEMA 15-50P", + "NEMA 15-60P", + "NEMA L1-15P", + "NEMA L5-15P", + "NEMA L5-20P", + "NEMA L5-30P", + "NEMA L5-50P", + "NEMA L6-15P", + "NEMA L6-20P", + "NEMA L6-30P", + "NEMA L6-50P", + "NEMA L10-30P", + "NEMA L14-20P", + "NEMA L14-30P", + "NEMA L14-50P", + "NEMA L14-60P", + "NEMA L15-20P", + "NEMA L15-30P", + "NEMA L15-50P", + "NEMA L15-60P", + "NEMA L21-20P", + "NEMA L21-30P", + "NEMA L22-20P", + "NEMA L22-30P", + "CS6361C", + "CS6365C", + "CS8165C", + "CS8265C", + "CS8365C", + "CS8465C", + "ITA Type C (CEE 7/16)", + "ITA Type E (CEE 7/6)", + "ITA Type F (CEE 7/4)", + "ITA Type E/F (CEE 7/7)", + "ITA Type G (BS 1363)", + "ITA Type H", + "ITA Type I", + "ITA Type J", + "ITA Type K", + "ITA Type L (CEI 23-50)", + "ITA Type M (BS 546)", + "ITA Type N", + "ITA Type O", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", + "USB 3.0 Type B", + "USB 3.0 Micro B", + "Molex Micro-Fit 1x2", + "Molex Micro-Fit 2x2", + "Molex Micro-Fit 2x4", + "DC Terminal", + "Saf-D-Grid", + "Neutrik powerCON (20A)", + "Neutrik powerCON (32A)", + "Neutrik powerCON TRUE1", + "Neutrik powerCON TRUE1 TOP", + "Ubiquiti SmartPower", + "Hardwired", + "Other", +} + +func (v *PowerPortTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortTypeLabel(value) + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortTypeLabel", value) +} + +// NewPowerPortTypeLabelFromValue returns a pointer to a valid PowerPortTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortTypeLabelFromValue(v string) (*PowerPortTypeLabel, error) { + ev := PowerPortTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortTypeLabel: valid values are %v", v, AllowedPowerPortTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortTypeLabel) IsValid() bool { + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPort_type_label value +func (v PowerPortTypeLabel) Ptr() *PowerPortTypeLabel { + return &v +} + +type NullablePowerPortTypeLabel struct { + value *PowerPortTypeLabel + isSet bool +} + +func (v NullablePowerPortTypeLabel) Get() *PowerPortTypeLabel { + return v.value +} + +func (v *NullablePowerPortTypeLabel) Set(val *PowerPortTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortTypeLabel(val *PowerPortTypeLabel) *NullablePowerPortTypeLabel { + return &NullablePowerPortTypeLabel{value: val, isSet: true} +} + +func (v NullablePowerPortTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_prefix.go b/model_prefix.go index 69448e57b1..cd3356df92 100644 --- a/model_prefix.go +++ b/model_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,18 @@ var _ MappedNullable = &Prefix{} // Prefix Adds support for custom fields and tags. type Prefix struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Site NullableSite `json:"site,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Site NullableBriefSite `json:"site,omitempty"` + Vrf NullableBriefVRF `json:"vrf,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 @@ -53,10 +54,11 @@ type _Prefix Prefix // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { this := Prefix{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -123,6 +125,30 @@ func (o *Prefix) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Prefix) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Prefix) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Prefix) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Prefix) GetDisplay() string { if o == nil { @@ -196,9 +222,9 @@ func (o *Prefix) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetSite() Site { +func (o *Prefix) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -207,7 +233,7 @@ func (o *Prefix) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetSiteOk() (*Site, bool) { +func (o *Prefix) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -223,8 +249,8 @@ func (o *Prefix) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *Prefix) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Prefix) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -239,9 +265,9 @@ func (o *Prefix) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVrf() VRF { +func (o *Prefix) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -250,7 +276,7 @@ func (o *Prefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVrfOk() (*VRF, bool) { +func (o *Prefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -266,8 +292,8 @@ func (o *Prefix) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Prefix) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Prefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -282,9 +308,9 @@ func (o *Prefix) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetTenant() Tenant { +func (o *Prefix) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -293,7 +319,7 @@ func (o *Prefix) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetTenantOk() (*Tenant, bool) { +func (o *Prefix) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -309,8 +335,8 @@ func (o *Prefix) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Prefix) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Prefix) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -325,9 +351,9 @@ func (o *Prefix) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVlan() VLAN { +func (o *Prefix) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -336,7 +362,7 @@ func (o *Prefix) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVlanOk() (*VLAN, bool) { +func (o *Prefix) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -352,8 +378,8 @@ func (o *Prefix) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *Prefix) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *Prefix) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -400,9 +426,9 @@ func (o *Prefix) SetStatus(v PrefixStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetRole() Role { +func (o *Prefix) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -411,7 +437,7 @@ func (o *Prefix) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetRoleOk() (*Role, bool) { +func (o *Prefix) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -427,8 +453,8 @@ func (o *Prefix) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *Prefix) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *Prefix) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -746,6 +772,7 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -804,6 +831,7 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "prefix", @@ -842,6 +870,7 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_prefix_request.go b/model_prefix_request.go index 5634c83a7b..ce3bd16908 100644 --- a/model_prefix_request.go +++ b/model_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Status *PrefixStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Prefix string `json:"prefix"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Status *PrefixStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *PrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetSite() SiteRequest { +func (o *PrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *PrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *PrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *PrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVrf() VRFRequest { +func (o *PrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *PrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *PrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *PrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetTenant() TenantRequest { +func (o *PrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *PrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *PrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *PrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVlan() VLANRequest { +func (o *PrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *PrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *PrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetRole() RoleRequest { +func (o *PrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *PrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *PrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_prefix_status.go b/model_prefix_status.go index f2406410f9..f038c6460e 100644 --- a/model_prefix_status.go +++ b/model_prefix_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go index 41bac8bf79..3c86d87db8 100644 --- a/model_prefix_status_label.go +++ b/model_prefix_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go index 7e225f7006..40239ab9b1 100644 --- a/model_prefix_status_value.go +++ b/model_prefix_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_provider.go b/model_provider.go index a368b3c0b1..05a533f2e1 100644 --- a/model_provider.go +++ b/model_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Provider type satisfies the MappedNullable interface at compile time @@ -20,14 +21,22 @@ var _ MappedNullable = &Provider{} // Provider Adds support for custom fields and tags. type Provider struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +46,16 @@ type _Provider Provider // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider { +func NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *Provider { this := Provider{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.CircuitCount = circuitCount return &this } @@ -104,6 +116,30 @@ func (o *Provider) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Provider) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Provider) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Provider) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Provider) GetDisplay() string { if o == nil { @@ -176,6 +212,38 @@ func (o *Provider) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *Provider) GetAccounts() []NestedProviderAccount { + if o == nil || IsNil(o.Accounts) { + var ret []NestedProviderAccount + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAccountsOk() ([]NestedProviderAccount, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *Provider) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []NestedProviderAccount and assigns it to the Accounts field. +func (o *Provider) SetAccounts(v []NestedProviderAccount) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Provider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,6 +276,186 @@ func (o *Provider) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Provider) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Provider) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Provider) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Provider) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Provider) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Provider) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Provider) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Provider) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Provider) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Provider) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Provider) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Provider) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Provider) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Provider) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetCircuitCount returns the CircuitCount field value func (o *Provider) GetCircuitCount() int64 { if o == nil { @@ -244,12 +492,30 @@ func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -266,9 +532,12 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "circuit_count", } @@ -301,10 +570,18 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "circuit_count") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_account.go b/model_provider_account.go index e1b668c13a..80a99e0fe2 100644 --- a/model_provider_account.go +++ b/model_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &ProviderAccount{} type ProviderAccount struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Provider Provider `json:"provider"` + Provider BriefProvider `json:"provider"` Name *string `json:"name,omitempty"` Account string `json:"account"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _ProviderAccount ProviderAccount // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { +func NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { this := ProviderAccount{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Provider = provider var name string = "" @@ -114,6 +116,30 @@ func (o *ProviderAccount) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ProviderAccount) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ProviderAccount) GetDisplay() string { if o == nil { @@ -139,9 +165,9 @@ func (o *ProviderAccount) SetDisplay(v string) { } // GetProvider returns the Provider field value -func (o *ProviderAccount) GetProvider() Provider { +func (o *ProviderAccount) GetProvider() BriefProvider { if o == nil { - var ret Provider + var ret BriefProvider return ret } @@ -150,7 +176,7 @@ func (o *ProviderAccount) GetProvider() Provider { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { +func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { if o == nil { return nil, false } @@ -158,7 +184,7 @@ func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { } // SetProvider sets field value -func (o *ProviderAccount) SetProvider(v Provider) { +func (o *ProviderAccount) SetProvider(v BriefProvider) { o.Provider = v } @@ -410,6 +436,7 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { @@ -445,6 +472,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "provider", "account", @@ -481,6 +509,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "provider") delete(additionalProperties, "name") diff --git a/model_provider_account_request.go b/model_provider_account_request.go index feca4b6eaa..b817b78fdb 100644 --- a/model_provider_account_request.go +++ b/model_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,8 +36,9 @@ type _ProviderAccountRequest ProviderAccountRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProviderAccountRequest(account string) *ProviderAccountRequest { +func NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest { this := ProviderAccountRequest{} + this.Provider = provider var name string = "" this.Name = &name this.Account = account @@ -50,6 +55,30 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -138,6 +167,102 @@ func (o *ProviderAccountRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderAccountRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -148,6 +273,7 @@ func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -155,6 +281,15 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -168,6 +303,7 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "account", } @@ -198,9 +334,13 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") delete(additionalProperties, "account") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network.go b/model_provider_network.go index 213b6174c2..361f1b903d 100644 --- a/model_provider_network.go +++ b/model_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time @@ -20,11 +21,19 @@ var _ MappedNullable = &ProviderNetwork{} // ProviderNetwork Adds support for custom fields and tags. type ProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +43,16 @@ type _ProviderNetwork ProviderNetwork // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork { +func NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime) *ProviderNetwork { this := ProviderNetwork{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Provider = provider this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +112,30 @@ func (o *ProviderNetwork) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ProviderNetwork) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ProviderNetwork) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ProviderNetwork) GetDisplay() string { if o == nil { @@ -123,6 +160,30 @@ func (o *ProviderNetwork) SetDisplay(v string) { o.Display = v } +// GetProvider returns the Provider field value +func (o *ProviderNetwork) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetwork) SetProvider(v BriefProvider) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetwork) GetName() string { if o == nil { @@ -147,6 +208,38 @@ func (o *ProviderNetwork) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetwork) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetwork) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetwork) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetwork) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +272,154 @@ func (o *ProviderNetwork) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetwork) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetwork) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetwork) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetwork) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetwork) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ProviderNetwork) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetwork) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetwork) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetwork) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ProviderNetwork) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ProviderNetwork) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ProviderNetwork) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +432,27 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +468,12 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "provider", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +505,17 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network_request.go b/model_provider_network_request.go index 05b023aca2..c3b5a7a65e 100644 --- a/model_provider_network_request.go +++ b/model_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _ProviderNetworkRequest ProviderNetworkRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProviderNetworkRequest(name string) *ProviderNetworkRequest { +func NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest { this := ProviderNetworkRequest{} + this.Provider = provider this.Name = name return &this } @@ -45,6 +51,30 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetworkRequest) GetName() string { if o == nil { @@ -69,6 +99,38 @@ func (o *ProviderNetworkRequest) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetworkRequest) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetworkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +163,102 @@ func (o *ProviderNetworkRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetworkRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +269,23 @@ func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +299,7 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "name", } @@ -158,8 +330,13 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_request.go b/model_provider_request.go index 1edfe34ee9..5c02bb7a61 100644 --- a/model_provider_request.go +++ b/model_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,14 @@ var _ MappedNullable = &ProviderRequest{} // ProviderRequest Adds support for custom fields and tags. type ProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + 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{} } @@ -96,6 +101,38 @@ func (o *ProviderRequest) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *ProviderRequest) GetAccounts() []int32 { + if o == nil || IsNil(o.Accounts) { + var ret []int32 + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAccountsOk() ([]int32, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *ProviderRequest) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field. +func (o *ProviderRequest) SetAccounts(v []int32) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +165,134 @@ func (o *ProviderRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *ProviderRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *ProviderRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *ProviderRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +305,24 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +369,12 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack.go b/model_rack.go index 471e264e13..a57a8f8dfa 100644 --- a/model_rack.go +++ b/model_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Rack type satisfies the MappedNullable interface at compile time @@ -20,12 +21,49 @@ var _ MappedNullable = &Rack{} // Rack Adds support for custom fields and tags. type Rack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *RackStatus `json:"status,omitempty"` + Role NullableBriefRackRole `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackType `json:"rack_type,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *RackAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int64 `json:"device_count"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -35,13 +73,18 @@ type _Rack Rack // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRack(id int32, url string, display string, name string, deviceCount int64) *Rack { +func NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, deviceCount int64, powerfeedCount int64) *Rack { this := Rack{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated this.DeviceCount = deviceCount + this.PowerfeedCount = powerfeedCount return &this } @@ -101,52 +144,926 @@ func (o *Rack) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Rack) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Rack) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Rack) GetDisplay() string { if o == nil { - var ret string + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Rack) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *Rack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Rack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Rack) SetName(v string) { + o.Name = v +} + +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *Rack) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *Rack) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *Rack) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *Rack) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *Rack) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Rack) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Rack) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *Rack) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Rack) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *Rack) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *Rack) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Rack) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Rack) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Rack) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Rack) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Rack) GetStatus() RackStatus { + if o == nil || IsNil(o.Status) { + var ret RackStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStatusOk() (*RackStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Rack) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given RackStatus and assigns it to the Status field. +func (o *Rack) SetStatus(v RackStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRole() BriefRackRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRoleOk() (*BriefRackRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *Rack) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRole and assigns it to the Role field. +func (o *Rack) SetRole(v BriefRackRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *Rack) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *Rack) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Rack) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Rack) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Rack) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Rack) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Rack) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Rack) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Rack) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRackType() BriefRackType { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackType + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRackTypeOk() (*BriefRackType, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *Rack) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackType and assigns it to the RackType field. +func (o *Rack) SetRackType(v BriefRackType) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *Rack) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *Rack) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *Rack) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *Rack) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *Rack) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *Rack) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *Rack) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *Rack) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *Rack) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *Rack) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *Rack) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *Rack) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *Rack) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *Rack) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *Rack) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *Rack) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *Rack) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *Rack) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *Rack) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *Rack) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *Rack) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *Rack) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *Rack) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *Rack) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *Rack) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *Rack) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *Rack) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool return ret } + return *o.DescUnits +} - return o.Display +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true } -// GetDisplayOk returns a tuple with the Display field value +// HasDescUnits returns a boolean if a field has been set. +func (o *Rack) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *Rack) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetDisplayOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterWidthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Display, true + return o.OuterWidth.Get(), o.OuterWidth.IsSet() } -// SetDisplay sets field value -func (o *Rack) SetDisplay(v string) { - o.Display = v +// HasOuterWidth returns a boolean if a field has been set. +func (o *Rack) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false } -// GetName returns the Name field value -func (o *Rack) GetName() string { +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *Rack) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *Rack) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *Rack) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterDepthOk() (*int32, bool) { if o == nil { - var ret string + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *Rack) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *Rack) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *Rack) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *Rack) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit return ret } + return *o.OuterUnit.Get() +} - return o.Name +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } -// GetNameOk returns a tuple with the Name field value +// HasOuterUnit returns a boolean if a field has been set. +func (o *Rack) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *Rack) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *Rack) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *Rack) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetNameOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMountingDepthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Name, true + return o.MountingDepth.Get(), o.MountingDepth.IsSet() } -// SetName sets field value -func (o *Rack) SetName(v string) { - o.Name = v +// HasMountingDepth returns a boolean if a field has been set. +func (o *Rack) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *Rack) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *Rack) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *Rack) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *Rack) GetAirflow() RackAirflow { + if o == nil || IsNil(o.Airflow) { + var ret RackAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetAirflowOk() (*RackAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *Rack) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given RackAirflow and assigns it to the Airflow field. +func (o *Rack) SetAirflow(v RackAirflow) { + o.Airflow = &v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -181,6 +1098,154 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Rack) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Rack) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Rack) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Rack) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Rack) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Rack) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Rack) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Rack) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Rack) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Rack) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Rack) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value func (o *Rack) GetDeviceCount() int64 { if o == nil { @@ -205,6 +1270,30 @@ func (o *Rack) SetDeviceCount(v int64) { o.DeviceCount = v } +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *Rack) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *Rack) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + func (o Rack) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +1306,89 @@ func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["device_count"] = o.DeviceCount + toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +1404,14 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "site", + "created", + "last_updated", "device_count", + "powerfeed_count", } allProperties := make(map[string]interface{}) @@ -272,10 +1443,39 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "powerfeed_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_airflow.go b/model_rack_airflow.go new file mode 100644 index 0000000000..988301e5fd --- /dev/null +++ b/model_rack_airflow.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackAirflow{} + +// RackAirflow struct for RackAirflow +type RackAirflow struct { + Value *PatchedWritableRackRequestAirflow `json:"value,omitempty"` + Label *RackAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackAirflow RackAirflow + +// NewRackAirflow instantiates a new RackAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackAirflow() *RackAirflow { + this := RackAirflow{} + return &this +} + +// NewRackAirflowWithDefaults instantiates a new RackAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackAirflowWithDefaults() *RackAirflow { + this := RackAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackAirflow) GetValue() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackAirflow) GetValueOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Value field. +func (o *RackAirflow) SetValue(v PatchedWritableRackRequestAirflow) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackAirflow) GetLabel() RackAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret RackAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackAirflow) GetLabelOk() (*RackAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackAirflowLabel and assigns it to the Label field. +func (o *RackAirflow) SetLabel(v RackAirflowLabel) { + o.Label = &v +} + +func (o RackAirflow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackAirflow) UnmarshalJSON(data []byte) (err error) { + varRackAirflow := _RackAirflow{} + + err = json.Unmarshal(data, &varRackAirflow) + + if err != nil { + return err + } + + *o = RackAirflow(varRackAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackAirflow struct { + value *RackAirflow + isSet bool +} + +func (v NullableRackAirflow) Get() *RackAirflow { + return v.value +} + +func (v *NullableRackAirflow) Set(val *RackAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflow(val *RackAirflow) *NullableRackAirflow { + return &NullableRackAirflow{value: val, isSet: true} +} + +func (v NullableRackAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go new file mode 100644 index 0000000000..324cf1fd20 --- /dev/null +++ b/model_rack_airflow_label.go @@ -0,0 +1,110 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackAirflowLabel the model 'RackAirflowLabel' +type RackAirflowLabel string + +// List of Rack_airflow_label +const ( + RACKAIRFLOWLABEL_FRONT_TO_REAR RackAirflowLabel = "Front to rear" + RACKAIRFLOWLABEL_REAR_TO_FRONT RackAirflowLabel = "Rear to front" +) + +// All allowed values of RackAirflowLabel enum +var AllowedRackAirflowLabelEnumValues = []RackAirflowLabel{ + "Front to rear", + "Rear to front", +} + +func (v *RackAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackAirflowLabel(value) + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackAirflowLabel", value) +} + +// NewRackAirflowLabelFromValue returns a pointer to a valid RackAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackAirflowLabelFromValue(v string) (*RackAirflowLabel, error) { + ev := RackAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackAirflowLabel: valid values are %v", v, AllowedRackAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackAirflowLabel) IsValid() bool { + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_airflow_label value +func (v RackAirflowLabel) Ptr() *RackAirflowLabel { + return &v +} + +type NullableRackAirflowLabel struct { + value *RackAirflowLabel + isSet bool +} + +func (v NullableRackAirflowLabel) Get() *RackAirflowLabel { + return v.value +} + +func (v *NullableRackAirflowLabel) Set(val *RackAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflowLabel(val *RackAirflowLabel) *NullableRackAirflowLabel { + return &NullableRackAirflowLabel{value: val, isSet: true} +} + +func (v NullableRackAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_face.go b/model_rack_face.go index a0c96cd51a..bc93b22c32 100644 --- a/model_rack_face.go +++ b/model_rack_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_face_1.go b/model_rack_face_1.go index bbb6509414..c9c0463ec6 100644 --- a/model_rack_face_1.go +++ b/model_rack_face_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go new file mode 100644 index 0000000000..55e13a90dd --- /dev/null +++ b/model_rack_form_factor.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackFormFactor type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackFormFactor{} + +// RackFormFactor struct for RackFormFactor +type RackFormFactor struct { + Value *PatchedWritableRackRequestFormFactor `json:"value,omitempty"` + Label *RackFormFactorLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackFormFactor RackFormFactor + +// NewRackFormFactor instantiates a new RackFormFactor object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackFormFactor() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// NewRackFormFactorWithDefaults instantiates a new RackFormFactor object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackFormFactorWithDefaults() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackFormFactor) GetValue() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackFormFactor) GetValueOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackFormFactor) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the Value field. +func (o *RackFormFactor) SetValue(v PatchedWritableRackRequestFormFactor) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackFormFactor) GetLabel() RackFormFactorLabel { + if o == nil || IsNil(o.Label) { + var ret RackFormFactorLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackFormFactor) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackFormFactorLabel and assigns it to the Label field. +func (o *RackFormFactor) SetLabel(v RackFormFactorLabel) { + o.Label = &v +} + +func (o RackFormFactor) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackFormFactor) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackFormFactor) UnmarshalJSON(data []byte) (err error) { + varRackFormFactor := _RackFormFactor{} + + err = json.Unmarshal(data, &varRackFormFactor) + + if err != nil { + return err + } + + *o = RackFormFactor(varRackFormFactor) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackFormFactor struct { + value *RackFormFactor + isSet bool +} + +func (v NullableRackFormFactor) Get() *RackFormFactor { + return v.value +} + +func (v *NullableRackFormFactor) Set(val *RackFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactor(val *RackFormFactor) *NullableRackFormFactor { + return &NullableRackFormFactor{value: val, isSet: true} +} + +func (v NullableRackFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go new file mode 100644 index 0000000000..cb88961b74 --- /dev/null +++ b/model_rack_form_factor_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackFormFactorLabel the model 'RackFormFactorLabel' +type RackFormFactorLabel string + +// List of Rack_form_factor_label +const ( + RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame" + RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame" + RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET__VERTICAL RackFormFactorLabel = "Wall-mounted cabinet (vertical)" +) + +// All allowed values of RackFormFactorLabel enum +var AllowedRackFormFactorLabelEnumValues = []RackFormFactorLabel{ + "2-post frame", + "4-post frame", + "4-post cabinet", + "Wall-mounted frame", + "Wall-mounted frame (vertical)", + "Wall-mounted cabinet", + "Wall-mounted cabinet (vertical)", +} + +func (v *RackFormFactorLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackFormFactorLabel(value) + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackFormFactorLabel", value) +} + +// NewRackFormFactorLabelFromValue returns a pointer to a valid RackFormFactorLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackFormFactorLabelFromValue(v string) (*RackFormFactorLabel, error) { + ev := RackFormFactorLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackFormFactorLabel: valid values are %v", v, AllowedRackFormFactorLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackFormFactorLabel) IsValid() bool { + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_form_factor_label value +func (v RackFormFactorLabel) Ptr() *RackFormFactorLabel { + return &v +} + +type NullableRackFormFactorLabel struct { + value *RackFormFactorLabel + isSet bool +} + +func (v NullableRackFormFactorLabel) Get() *RackFormFactorLabel { + return v.value +} + +func (v *NullableRackFormFactorLabel) Set(val *RackFormFactorLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactorLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactorLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactorLabel(val *RackFormFactorLabel) *NullableRackFormFactorLabel { + return &NullableRackFormFactorLabel{value: val, isSet: true} +} + +func (v NullableRackFormFactorLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactorLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go new file mode 100644 index 0000000000..76b0db79c4 --- /dev/null +++ b/model_rack_outer_unit.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackOuterUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackOuterUnit{} + +// RackOuterUnit struct for RackOuterUnit +type RackOuterUnit struct { + Value *PatchedWritableRackRequestOuterUnit `json:"value,omitempty"` + Label *RackOuterUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackOuterUnit RackOuterUnit + +// NewRackOuterUnit instantiates a new RackOuterUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackOuterUnit() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackOuterUnitWithDefaults() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackOuterUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the Value field. +func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel { + if o == nil || IsNil(o.Label) { + var ret RackOuterUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackOuterUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackOuterUnitLabel and assigns it to the Label field. +func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) { + o.Label = &v +} + +func (o RackOuterUnit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackOuterUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackOuterUnit) UnmarshalJSON(data []byte) (err error) { + varRackOuterUnit := _RackOuterUnit{} + + err = json.Unmarshal(data, &varRackOuterUnit) + + if err != nil { + return err + } + + *o = RackOuterUnit(varRackOuterUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackOuterUnit struct { + value *RackOuterUnit + isSet bool +} + +func (v NullableRackOuterUnit) Get() *RackOuterUnit { + return v.value +} + +func (v *NullableRackOuterUnit) Set(val *RackOuterUnit) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnit(val *RackOuterUnit) *NullableRackOuterUnit { + return &NullableRackOuterUnit{value: val, isSet: true} +} + +func (v NullableRackOuterUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go new file mode 100644 index 0000000000..bbb050e3ef --- /dev/null +++ b/model_rack_outer_unit_label.go @@ -0,0 +1,110 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackOuterUnitLabel the model 'RackOuterUnitLabel' +type RackOuterUnitLabel string + +// List of Rack_outer_unit_label +const ( + RACKOUTERUNITLABEL_MILLIMETERS RackOuterUnitLabel = "Millimeters" + RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches" +) + +// All allowed values of RackOuterUnitLabel enum +var AllowedRackOuterUnitLabelEnumValues = []RackOuterUnitLabel{ + "Millimeters", + "Inches", +} + +func (v *RackOuterUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackOuterUnitLabel(value) + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackOuterUnitLabel", value) +} + +// NewRackOuterUnitLabelFromValue returns a pointer to a valid RackOuterUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackOuterUnitLabelFromValue(v string) (*RackOuterUnitLabel, error) { + ev := RackOuterUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackOuterUnitLabel: valid values are %v", v, AllowedRackOuterUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackOuterUnitLabel) IsValid() bool { + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_outer_unit_label value +func (v RackOuterUnitLabel) Ptr() *RackOuterUnitLabel { + return &v +} + +type NullableRackOuterUnitLabel struct { + value *RackOuterUnitLabel + isSet bool +} + +func (v NullableRackOuterUnitLabel) Get() *RackOuterUnitLabel { + return v.value +} + +func (v *NullableRackOuterUnitLabel) Set(val *RackOuterUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnitLabel(val *RackOuterUnitLabel) *NullableRackOuterUnitLabel { + return &NullableRackOuterUnitLabel{value: val, isSet: true} +} + +func (v NullableRackOuterUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_request.go b/model_rack_request.go index 820be5e16b..dfa36681fe 100644 --- a/model_rack_request.go +++ b/model_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,41 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +64,10 @@ type _RackRequest RackRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRackRequest(name string) *RackRequest { +func NewRackRequest(name string, site BriefSiteRequest) *RackRequest { this := RackRequest{} this.Name = name + this.Site = site return &this } @@ -69,6 +103,856 @@ func (o *RackRequest) SetName(v string) { o.Name = v } +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *RackRequest) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *RackRequest) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *RackRequest) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *RackRequest) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *RackRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *RackRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *RackRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *RackRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *RackRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *RackRequest) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *RackRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *RackRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *RackRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Status) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RackRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field. +func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRole() BriefRackRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *RackRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *RackRequest) SetRole(v BriefRackRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *RackRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *RackRequest) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *RackRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *RackRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *RackRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *RackRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *RackRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *RackRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *RackRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *RackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *RackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *RackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *RackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFormFactor() RackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackRequest) SetFormFactor(v RackRequestFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *RackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +985,102 @@ func (o *RackRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RackRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RackRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +1092,82 @@ func (o RackRequest) MarshalJSON() ([]byte, error) { func (o RackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +1182,7 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "site", } allProperties := make(map[string]interface{}) @@ -159,7 +1213,32 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_request_form_factor.go b/model_rack_request_form_factor.go new file mode 100644 index 0000000000..e414a6c35b --- /dev/null +++ b/model_rack_request_form_factor.go @@ -0,0 +1,122 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type RackRequestFormFactor string + +// List of RackRequest_form_factor +const ( + RACKREQUESTFORMFACTOR__2_POST_FRAME RackRequestFormFactor = "2-post-frame" + RACKREQUESTFORMFACTOR__4_POST_FRAME RackRequestFormFactor = "4-post-frame" + RACKREQUESTFORMFACTOR__4_POST_CABINET RackRequestFormFactor = "4-post-cabinet" + RACKREQUESTFORMFACTOR_WALL_FRAME RackRequestFormFactor = "wall-frame" + RACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL RackRequestFormFactor = "wall-frame-vertical" + RACKREQUESTFORMFACTOR_WALL_CABINET RackRequestFormFactor = "wall-cabinet" + RACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL RackRequestFormFactor = "wall-cabinet-vertical" + RACKREQUESTFORMFACTOR_EMPTY RackRequestFormFactor = "" +) + +// All allowed values of RackRequestFormFactor enum +var AllowedRackRequestFormFactorEnumValues = []RackRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *RackRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackRequestFormFactor(value) + for _, existing := range AllowedRackRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackRequestFormFactor", value) +} + +// NewRackRequestFormFactorFromValue returns a pointer to a valid RackRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackRequestFormFactorFromValue(v string) (*RackRequestFormFactor, error) { + ev := RackRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackRequestFormFactor: valid values are %v", v, AllowedRackRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackRequestFormFactor) IsValid() bool { + for _, existing := range AllowedRackRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RackRequest_form_factor value +func (v RackRequestFormFactor) Ptr() *RackRequestFormFactor { + return &v +} + +type NullableRackRequestFormFactor struct { + value *RackRequestFormFactor + isSet bool +} + +func (v NullableRackRequestFormFactor) Get() *RackRequestFormFactor { + return v.value +} + +func (v *NullableRackRequestFormFactor) Set(val *RackRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullableRackRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullableRackRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackRequestFormFactor(val *RackRequestFormFactor) *NullableRackRequestFormFactor { + return &NullableRackRequestFormFactor{value: val, isSet: true} +} + +func (v NullableRackRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go new file mode 100644 index 0000000000..f7f18feff3 --- /dev/null +++ b/model_rack_request_outer_unit.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackRequestOuterUnit * `mm` - Millimeters * `in` - Inches +type RackRequestOuterUnit string + +// List of RackRequest_outer_unit +const ( + RACKREQUESTOUTERUNIT_MM RackRequestOuterUnit = "mm" + RACKREQUESTOUTERUNIT_IN RackRequestOuterUnit = "in" + RACKREQUESTOUTERUNIT_EMPTY RackRequestOuterUnit = "" +) + +// All allowed values of RackRequestOuterUnit enum +var AllowedRackRequestOuterUnitEnumValues = []RackRequestOuterUnit{ + "mm", + "in", + "", +} + +func (v *RackRequestOuterUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackRequestOuterUnit(value) + for _, existing := range AllowedRackRequestOuterUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackRequestOuterUnit", value) +} + +// NewRackRequestOuterUnitFromValue returns a pointer to a valid RackRequestOuterUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackRequestOuterUnitFromValue(v string) (*RackRequestOuterUnit, error) { + ev := RackRequestOuterUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackRequestOuterUnit: valid values are %v", v, AllowedRackRequestOuterUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackRequestOuterUnit) IsValid() bool { + for _, existing := range AllowedRackRequestOuterUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RackRequest_outer_unit value +func (v RackRequestOuterUnit) Ptr() *RackRequestOuterUnit { + return &v +} + +type NullableRackRequestOuterUnit struct { + value *RackRequestOuterUnit + isSet bool +} + +func (v NullableRackRequestOuterUnit) Get() *RackRequestOuterUnit { + return v.value +} + +func (v *NullableRackRequestOuterUnit) Set(val *RackRequestOuterUnit) { + v.value = val + v.isSet = true +} + +func (v NullableRackRequestOuterUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableRackRequestOuterUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackRequestOuterUnit(val *RackRequestOuterUnit) *NullableRackRequestOuterUnit { + return &NullableRackRequestOuterUnit{value: val, isSet: true} +} + +func (v NullableRackRequestOuterUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackRequestOuterUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_reservation.go b/model_rack_reservation.go index f4cdb14114..0d88b0d8b6 100644 --- a/model_rack_reservation.go +++ b/model_rack_reservation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &RackReservation{} type RackReservation struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Rack Rack `json:"rack"` + Rack BriefRack `json:"rack"` Units []int32 `json:"units"` Created NullableTime `json:"created"` LastUpdated NullableTime `json:"last_updated"` - User User `json:"user"` - Tenant NullableTenant `json:"tenant,omitempty"` + User BriefUser `json:"user"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description string `json:"description"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -43,10 +44,11 @@ type _RackReservation RackReservation // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation { +func NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string) *RackReservation { this := RackReservation{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Rack = rack this.Units = units @@ -113,6 +115,30 @@ func (o *RackReservation) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackReservation) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackReservation) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackReservation) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RackReservation) GetDisplay() string { if o == nil { @@ -138,9 +164,9 @@ func (o *RackReservation) SetDisplay(v string) { } // GetRack returns the Rack field value -func (o *RackReservation) GetRack() Rack { +func (o *RackReservation) GetRack() BriefRack { if o == nil { - var ret Rack + var ret BriefRack return ret } @@ -149,7 +175,7 @@ func (o *RackReservation) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetRackOk() (*Rack, bool) { +func (o *RackReservation) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -157,7 +183,7 @@ func (o *RackReservation) GetRackOk() (*Rack, bool) { } // SetRack sets field value -func (o *RackReservation) SetRack(v Rack) { +func (o *RackReservation) SetRack(v BriefRack) { o.Rack = v } @@ -238,9 +264,9 @@ func (o *RackReservation) SetLastUpdated(v time.Time) { } // GetUser returns the User field value -func (o *RackReservation) GetUser() User { +func (o *RackReservation) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -249,7 +275,7 @@ func (o *RackReservation) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetUserOk() (*User, bool) { +func (o *RackReservation) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -257,14 +283,14 @@ func (o *RackReservation) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *RackReservation) SetUser(v User) { +func (o *RackReservation) SetUser(v BriefUser) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservation) GetTenant() Tenant { +func (o *RackReservation) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +299,7 @@ func (o *RackReservation) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservation) GetTenantOk() (*Tenant, bool) { +func (o *RackReservation) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +315,8 @@ func (o *RackReservation) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RackReservation) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RackReservation) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -436,6 +462,7 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units @@ -470,6 +497,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "rack", "units", @@ -508,6 +536,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "rack") delete(additionalProperties, "units") diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go index f08054702d..ca3ff81a37 100644 --- a/model_rack_reservation_request.go +++ b/model_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack RackRequest `json:"rack"` - Units []int32 `json:"units"` - User UserRequest `json:"user"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack BriefRackRequest `json:"rack"` + Units []int32 `json:"units"` + User BriefUserRequest `json:"user"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string) *RackReservationRequest { +func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest { this := RackReservationRequest{} this.Rack = rack this.Units = units @@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest { } // GetRack returns the Rack field value -func (o *RackReservationRequest) GetRack() RackRequest { +func (o *RackReservationRequest) GetRack() BriefRackRequest { if o == nil { - var ret RackRequest + var ret BriefRackRequest return ret } @@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -74,7 +74,7 @@ func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { } // SetRack sets field value -func (o *RackReservationRequest) SetRack(v RackRequest) { +func (o *RackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = v } @@ -103,9 +103,9 @@ func (o *RackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value -func (o *RackReservationRequest) GetUser() UserRequest { +func (o *RackReservationRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -114,7 +114,7 @@ func (o *RackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -122,14 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *RackReservationRequest) SetUser(v UserRequest) { +func (o *RackReservationRequest) SetUser(v BriefUserRequest) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservationRequest) GetTenant() TenantRequest { +func (o *RackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -138,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -154,8 +154,8 @@ func (o *RackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_rack_role.go b/model_rack_role.go index 6f5af14fd1..622cf88a45 100644 --- a/model_rack_role.go +++ b/model_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &RackRole{} type RackRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _RackRole RackRole // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { +func NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { this := RackRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *RackRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RackRole) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_rack_role_request.go b/model_rack_role_request.go index f3d72593d4..43cdf4b135 100644 --- a/model_rack_role_request.go +++ b/model_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_status.go b/model_rack_status.go new file mode 100644 index 0000000000..d61e12e046 --- /dev/null +++ b/model_rack_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.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackStatus{} + +// RackStatus struct for RackStatus +type RackStatus struct { + Value *PatchedWritableRackRequestStatus `json:"value,omitempty"` + Label *RackStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackStatus RackStatus + +// NewRackStatus instantiates a new RackStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackStatus() *RackStatus { + this := RackStatus{} + return &this +} + +// NewRackStatusWithDefaults instantiates a new RackStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackStatusWithDefaults() *RackStatus { + this := RackStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Value field. +func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackStatus) GetLabel() RackStatusLabel { + if o == nil || IsNil(o.Label) { + var ret RackStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackStatus) GetLabelOk() (*RackStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackStatusLabel and assigns it to the Label field. +func (o *RackStatus) SetLabel(v RackStatusLabel) { + o.Label = &v +} + +func (o RackStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackStatus) UnmarshalJSON(data []byte) (err error) { + varRackStatus := _RackStatus{} + + err = json.Unmarshal(data, &varRackStatus) + + if err != nil { + return err + } + + *o = RackStatus(varRackStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackStatus struct { + value *RackStatus + isSet bool +} + +func (v NullableRackStatus) Get() *RackStatus { + return v.value +} + +func (v *NullableRackStatus) Set(val *RackStatus) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatus(val *RackStatus) *NullableRackStatus { + return &NullableRackStatus{value: val, isSet: true} +} + +func (v NullableRackStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_status_label.go b/model_rack_status_label.go new file mode 100644 index 0000000000..016bb26c19 --- /dev/null +++ b/model_rack_status_label.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackStatusLabel the model 'RackStatusLabel' +type RackStatusLabel string + +// List of Rack_status_label +const ( + RACKSTATUSLABEL_RESERVED RackStatusLabel = "Reserved" + RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available" + RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned" + RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active" + RACKSTATUSLABEL_DEPRECATED RackStatusLabel = "Deprecated" +) + +// All allowed values of RackStatusLabel enum +var AllowedRackStatusLabelEnumValues = []RackStatusLabel{ + "Reserved", + "Available", + "Planned", + "Active", + "Deprecated", +} + +func (v *RackStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackStatusLabel(value) + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackStatusLabel", value) +} + +// NewRackStatusLabelFromValue returns a pointer to a valid RackStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackStatusLabelFromValue(v string) (*RackStatusLabel, error) { + ev := RackStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackStatusLabel: valid values are %v", v, AllowedRackStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackStatusLabel) IsValid() bool { + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_status_label value +func (v RackStatusLabel) Ptr() *RackStatusLabel { + return &v +} + +type NullableRackStatusLabel struct { + value *RackStatusLabel + isSet bool +} + +func (v NullableRackStatusLabel) Get() *RackStatusLabel { + return v.value +} + +func (v *NullableRackStatusLabel) Set(val *RackStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatusLabel(val *RackStatusLabel) *NullableRackStatusLabel { + return &NullableRackStatusLabel{value: val, isSet: true} +} + +func (v NullableRackStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_type.go b/model_rack_type.go new file mode 100644 index 0000000000..032eebdbbe --- /dev/null +++ b/model_rack_type.go @@ -0,0 +1,1090 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the RackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackType{} + +// RackType Adds support for custom fields and tags. +type RackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AdditionalProperties map[string]interface{} +} + +type _RackType RackType + +// NewRackType instantiates a new RackType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime) *RackType { + this := RackType{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + return &this +} + +// NewRackTypeWithDefaults instantiates a new RackType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackTypeWithDefaults() *RackType { + this := RackType{} + return &this +} + +// GetId returns the Id field value +func (o *RackType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RackType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *RackType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *RackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *RackType) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *RackType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *RackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *RackType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *RackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *RackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *RackType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *RackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RackType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RackType) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackType) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *RackType) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackType) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackType) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackType) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackType) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *RackType) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackType) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackType) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackType) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackType) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackType) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackType) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackType) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackType) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackType) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackType) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackType) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackType) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackType) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackType) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackType) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackType) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackType) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *RackType) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackType) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackType) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackType) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackType) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackType) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackType) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackType) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackType) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackType) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackType) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackType) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *RackType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RackType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RackType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RackType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RackType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +func (o RackType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "manufacturer", + "model", + "slug", + "created", + "last_updated", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRackType := _RackType{} + + err = json.Unmarshal(data, &varRackType) + + if err != nil { + return err + } + + *o = RackType(varRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackType struct { + value *RackType + isSet bool +} + +func (v NullableRackType) Get() *RackType { + return v.value +} + +func (v *NullableRackType) Set(val *RackType) { + v.value = val + v.isSet = true +} + +func (v NullableRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackType(val *RackType) *NullableRackType { + return &NullableRackType{value: val, isSet: true} +} + +func (v NullableRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_type_request.go b/model_rack_type_request.go new file mode 100644 index 0000000000..4ad445c4cc --- /dev/null +++ b/model_rack_type_request.go @@ -0,0 +1,911 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the RackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackTypeRequest{} + +// RackTypeRequest Adds support for custom fields and tags. +type RackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackTypeRequest RackTypeRequest + +// NewRackTypeRequest instantiates a new RackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *RackTypeRequest { + this := RackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackTypeRequestWithDefaults() *RackTypeRequest { + this := RackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *RackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *RackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetFormFactor() RackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackTypeRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackTypeRequest) SetFormFactor(v RackRequestFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackTypeRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackTypeRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackTypeRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackTypeRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterUnit() RackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackTypeRequest) SetOuterUnit(v RackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackTypeRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o RackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRackTypeRequest := _RackTypeRequest{} + + err = json.Unmarshal(data, &varRackTypeRequest) + + if err != nil { + return err + } + + *o = RackTypeRequest(varRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackTypeRequest struct { + value *RackTypeRequest + isSet bool +} + +func (v NullableRackTypeRequest) Get() *RackTypeRequest { + return v.value +} + +func (v *NullableRackTypeRequest) Set(val *RackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackTypeRequest(val *RackTypeRequest) *NullableRackTypeRequest { + return &NullableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_unit.go b/model_rack_unit.go index 6bd4ac7813..d23bdfcb79 100644 --- a/model_rack_unit.go +++ b/model_rack_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type RackUnit struct { Id float64 `json:"id"` Name string `json:"name"` Face RackUnitFace `json:"face"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Occupied bool `json:"occupied"` Display string `json:"display"` AdditionalProperties map[string]interface{} @@ -35,7 +35,7 @@ type _RackUnit RackUnit // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit { +func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string) *RackUnit { this := RackUnit{} this.Id = id this.Name = name @@ -127,9 +127,9 @@ func (o *RackUnit) SetFace(v RackUnitFace) { } // GetDevice returns the Device field value -func (o *RackUnit) GetDevice() Device { +func (o *RackUnit) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -138,7 +138,7 @@ func (o *RackUnit) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RackUnit) GetDeviceOk() (*Device, bool) { +func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -146,7 +146,7 @@ func (o *RackUnit) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RackUnit) SetDevice(v Device) { +func (o *RackUnit) SetDevice(v BriefDevice) { o.Device = v } diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go index 081988bab3..9485cdea5b 100644 --- a/model_rack_unit_face.go +++ b/model_rack_unit_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go index 1219f8e2cf..bbedfc2968 100644 --- a/model_rack_unit_face_value.go +++ b/model_rack_unit_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width.go b/model_rack_width.go new file mode 100644 index 0000000000..2dd95e3a97 --- /dev/null +++ b/model_rack_width.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackWidth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackWidth{} + +// RackWidth struct for RackWidth +type RackWidth struct { + Value *RackWidthValue `json:"value,omitempty"` + Label *RackWidthLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackWidth RackWidth + +// NewRackWidth instantiates a new RackWidth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackWidth() *RackWidth { + this := RackWidth{} + return &this +} + +// NewRackWidthWithDefaults instantiates a new RackWidth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackWidthWithDefaults() *RackWidth { + this := RackWidth{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackWidth) GetValue() RackWidthValue { + if o == nil || IsNil(o.Value) { + var ret RackWidthValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackWidth) GetValueOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackWidth) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given RackWidthValue and assigns it to the Value field. +func (o *RackWidth) SetValue(v RackWidthValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackWidth) GetLabel() RackWidthLabel { + if o == nil || IsNil(o.Label) { + var ret RackWidthLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackWidth) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackWidthLabel and assigns it to the Label field. +func (o *RackWidth) SetLabel(v RackWidthLabel) { + o.Label = &v +} + +func (o RackWidth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackWidth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackWidth) UnmarshalJSON(data []byte) (err error) { + varRackWidth := _RackWidth{} + + err = json.Unmarshal(data, &varRackWidth) + + if err != nil { + return err + } + + *o = RackWidth(varRackWidth) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackWidth struct { + value *RackWidth + isSet bool +} + +func (v NullableRackWidth) Get() *RackWidth { + return v.value +} + +func (v *NullableRackWidth) Set(val *RackWidth) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidth) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidth(val *RackWidth) *NullableRackWidth { + return &NullableRackWidth{value: val, isSet: true} +} + +func (v NullableRackWidth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_width_label.go b/model_rack_width_label.go new file mode 100644 index 0000000000..86bb5bbc3b --- /dev/null +++ b/model_rack_width_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthLabel the model 'RackWidthLabel' +type RackWidthLabel string + +// List of Rack_width_label +const ( + RACKWIDTHLABEL__10_INCHES RackWidthLabel = "10 inches" + RACKWIDTHLABEL__19_INCHES RackWidthLabel = "19 inches" + RACKWIDTHLABEL__21_INCHES RackWidthLabel = "21 inches" + RACKWIDTHLABEL__23_INCHES RackWidthLabel = "23 inches" +) + +// All allowed values of RackWidthLabel enum +var AllowedRackWidthLabelEnumValues = []RackWidthLabel{ + "10 inches", + "19 inches", + "21 inches", + "23 inches", +} + +func (v *RackWidthLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthLabel(value) + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthLabel", value) +} + +// NewRackWidthLabelFromValue returns a pointer to a valid RackWidthLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthLabelFromValue(v string) (*RackWidthLabel, error) { + ev := RackWidthLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthLabel: valid values are %v", v, AllowedRackWidthLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthLabel) IsValid() bool { + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_label value +func (v RackWidthLabel) Ptr() *RackWidthLabel { + return &v +} + +type NullableRackWidthLabel struct { + value *RackWidthLabel + isSet bool +} + +func (v NullableRackWidthLabel) Get() *RackWidthLabel { + return v.value +} + +func (v *NullableRackWidthLabel) Set(val *RackWidthLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthLabel(val *RackWidthLabel) *NullableRackWidthLabel { + return &NullableRackWidthLabel{value: val, isSet: true} +} + +func (v NullableRackWidthLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rack_width_value.go b/model_rack_width_value.go new file mode 100644 index 0000000000..413b624417 --- /dev/null +++ b/model_rack_width_value.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthValue * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +type RackWidthValue int32 + +// List of Rack_width_value +const ( + RACKWIDTHVALUE__10 RackWidthValue = 10 + RACKWIDTHVALUE__19 RackWidthValue = 19 + RACKWIDTHVALUE__21 RackWidthValue = 21 + RACKWIDTHVALUE__23 RackWidthValue = 23 +) + +// All allowed values of RackWidthValue enum +var AllowedRackWidthValueEnumValues = []RackWidthValue{ + 10, + 19, + 21, + 23, +} + +func (v *RackWidthValue) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthValue(value) + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthValue", value) +} + +// NewRackWidthValueFromValue returns a pointer to a valid RackWidthValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthValueFromValue(v int32) (*RackWidthValue, error) { + ev := RackWidthValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthValue: valid values are %v", v, AllowedRackWidthValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthValue) IsValid() bool { + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_value value +func (v RackWidthValue) Ptr() *RackWidthValue { + return &v +} + +type NullableRackWidthValue struct { + value *RackWidthValue + isSet bool +} + +func (v NullableRackWidthValue) Get() *RackWidthValue { + return v.value +} + +func (v *NullableRackWidthValue) Set(val *RackWidthValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthValue(val *RackWidthValue) *NullableRackWidthValue { + return &NullableRackWidthValue{value: val, isSet: true} +} + +func (v NullableRackWidthValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_rear_port.go b/model_rear_port.go index 874ce1541c..4ef7189e0c 100644 --- a/model_rear_port.go +++ b/model_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RearPort{} // RearPort Adds support for custom fields and tags. type RearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` @@ -35,12 +36,12 @@ type RearPort struct { Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -55,10 +56,11 @@ type _RearPort RearPort // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { +func NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { this := RearPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -129,6 +131,30 @@ func (o *RearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RearPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RearPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RearPort) GetDisplay() string { if o == nil { @@ -154,9 +180,9 @@ func (o *RearPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *RearPort) GetDevice() Device { +func (o *RearPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -165,7 +191,7 @@ func (o *RearPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPort) GetDeviceOk() (*Device, bool) { +func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -173,14 +199,14 @@ func (o *RearPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RearPort) SetDevice(v Device) { +func (o *RearPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPort) GetModule() Module { +func (o *RearPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -189,7 +215,7 @@ func (o *RearPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetModuleOk() (*Module, bool) { +func (o *RearPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -205,8 +231,8 @@ func (o *RearPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *RearPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *RearPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -429,10 +455,10 @@ func (o *RearPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *RearPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *RearPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -442,7 +468,7 @@ func (o *RearPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetCableOk() (*Cable, bool) { +func (o *RearPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -450,7 +476,7 @@ func (o *RearPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *RearPort) SetCable(v Cable) { +func (o *RearPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -503,27 +529,29 @@ func (o *RearPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *RearPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RearPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *RearPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -678,6 +706,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -703,7 +732,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -728,6 +757,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -770,6 +800,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_rear_port_request.go b/model_rear_port_request.go index 0ea93e90ed..5c10f39633 100644 --- a/model_rear_port_request.go +++ b/model_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { +func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { this := RearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest { } // GetDevice returns the Device field value -func (o *RearPortRequest) GetDevice() DeviceRequest { +func (o *RearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *RearPortRequest) SetDevice(v DeviceRequest) { +func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortRequest) GetModule() ModuleRequest { +func (o *RearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *RearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *RearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *RearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *RearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_rear_port_template.go b/model_rear_port_template.go index c0fc38788d..96880d92a9 100644 --- a/model_rear_port_template.go +++ b/model_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,21 @@ var _ MappedNullable = &RearPortTemplate{} // RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - 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"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +45,15 @@ type _RearPortTemplate RearPortTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate { +func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime) *RearPortTemplate { this := RearPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +137,92 @@ func (o *RearPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *RearPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplate) GetName() string { if o == nil { @@ -148,6 +247,126 @@ func (o *RearPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplate) GetType() FrontPortType { + if o == nil { + var ret FrontPortType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplate) SetType(v FrontPortType) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplate) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplate) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplate) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplate) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplate) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplate) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +399,58 @@ func (o *RearPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RearPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RearPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o RearPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +464,28 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +503,9 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +538,16 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go index 094c72a2dc..5cb428c0c6 100644 --- a/model_rear_port_template_request.go +++ b/model_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,16 @@ var _ MappedNullable = &RearPortTemplateRequest{} // RearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +39,10 @@ type _RearPortTemplateRequest RearPortTemplateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRearPortTemplateRequest(name string) *RearPortTemplateRequest { +func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest { this := RearPortTemplateRequest{} this.Name = name + this.Type = type_ return &this } @@ -46,6 +54,92 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +164,126 @@ func (o *RearPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue { + if o == nil { + var ret FrontPortTypeValue + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplateRequest) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplateRequest) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +326,23 @@ func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -130,6 +360,7 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +390,13 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_region.go b/model_region.go index 41939f6356..2ba4931aa0 100644 --- a/model_region.go +++ b/model_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Region{} type Region struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ type _Region Region // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { +func NewRegion(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { this := Region{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *Region) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Region) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Region) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Region) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Region) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_region_request.go b/model_region_request.go index a014b48115..ff81fb35a2 100644 --- a/model_region_request.go +++ b/model_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rir.go b/model_rir.go index 503050bfc1..3a3442b353 100644 --- a/model_rir.go +++ b/model_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RIR type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +44,16 @@ type _RIR RIR // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR { +func NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64) *RIR { this := RIR{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.AggregateCount = aggregateCount return &this } @@ -103,6 +114,30 @@ func (o *RIR) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RIR) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RIR) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RIR) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RIR) GetDisplay() string { if o == nil { @@ -175,6 +210,38 @@ func (o *RIR) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIR) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIR) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIR) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIR) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +274,122 @@ func (o *RIR) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIR) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIR) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *RIR) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIR) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIR) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIR) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RIR) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RIR) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetAggregateCount returns the AggregateCount field value func (o *RIR) GetAggregateCount() int64 { if o == nil { @@ -243,12 +426,24 @@ func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { @@ -265,9 +460,12 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "aggregate_count", } @@ -300,10 +498,16 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "aggregate_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rir_request.go b/model_rir_request.go index c7ddc0294b..87d506ffa4 100644 --- a/model_rir_request.go +++ b/model_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &RIRRequest{} // RIRRequest Adds support for custom fields and tags. type RIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,38 @@ func (o *RIRRequest) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIRRequest) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIRRequest) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIRRequest) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIRRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +163,70 @@ func (o *RIRRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIRRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIRRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RIRRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIRRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIRRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIRRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RIRRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +239,18 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +297,10 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_role.go b/model_role.go index 41ad3c7c58..1a03bc0d52 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Role type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &Role{} // Role Adds support for custom fields and tags. type Role struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount int64 `json:"prefix_count"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,16 @@ type _Role Role // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64) *Role { +func NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, prefixCount int64, vlanCount int64) *Role { this := Role{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.PrefixCount = prefixCount this.VlanCount = vlanCount return &this @@ -105,6 +115,30 @@ func (o *Role) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Role) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Role) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Role) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Role) GetDisplay() string { if o == nil { @@ -177,6 +211,38 @@ func (o *Role) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *Role) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *Role) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *Role) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Role) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +275,122 @@ func (o *Role) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Role) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Role) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Role) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Role) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Role) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Role) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Role) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Role) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetPrefixCount returns the PrefixCount field value func (o *Role) GetPrefixCount() int64 { if o == nil { @@ -269,12 +451,24 @@ func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["prefix_count"] = o.PrefixCount toSerialize["vlan_count"] = o.VlanCount @@ -292,9 +486,12 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "prefix_count", "vlan_count", } @@ -328,10 +525,16 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "prefix_count") delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties diff --git a/model_role_request.go b/model_role_request.go index 601cac5595..494172a033 100644 --- a/model_role_request.go +++ b/model_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,12 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + 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{} } @@ -95,6 +98,38 @@ func (o *RoleRequest) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *RoleRequest) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *RoleRequest) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *RoleRequest) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +162,70 @@ func (o *RoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +238,18 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +296,10 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_route_target.go b/model_route_target.go index 7856b51ca6..580b1da007 100644 --- a/model_route_target.go +++ b/model_route_target.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RouteTarget{} // RouteTarget Adds support for custom fields and tags. type RouteTarget struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) Name string `json:"name"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -42,10 +43,11 @@ type _RouteTarget RouteTarget // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { +func NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { this := RouteTarget{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -109,6 +111,30 @@ func (o *RouteTarget) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RouteTarget) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RouteTarget) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RouteTarget) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RouteTarget) GetDisplay() string { if o == nil { @@ -158,9 +184,9 @@ func (o *RouteTarget) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTarget) GetTenant() Tenant { +func (o *RouteTarget) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -169,7 +195,7 @@ func (o *RouteTarget) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTarget) GetTenantOk() (*Tenant, bool) { +func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -185,8 +211,8 @@ func (o *RouteTarget) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RouteTarget) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RouteTarget) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -392,6 +418,7 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { @@ -426,6 +453,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "created", @@ -461,6 +489,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "tenant") diff --git a/model_route_target_request.go b/model_route_target_request.go index f913d4bdf1..1e28790e4e 100644 --- a/model_route_target_request.go +++ b/model_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &RouteTargetRequest{} // RouteTargetRequest Adds support for custom fields and tags. type RouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,9 +75,9 @@ func (o *RouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTargetRequest) GetTenant() TenantRequest { +func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -86,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -102,8 +102,8 @@ func (o *RouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_saved_filter.go b/model_saved_filter.go index 4282ab65ad..cd5247d627 100644 --- a/model_saved_filter.go +++ b/model_saved_filter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SavedFilter{} type SavedFilter struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -44,10 +45,11 @@ type _SavedFilter SavedFilter // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { +func NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { this := SavedFilter{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -114,6 +116,30 @@ func (o *SavedFilter) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *SavedFilter) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *SavedFilter) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *SavedFilter) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *SavedFilter) GetDisplay() string { if o == nil { @@ -471,6 +497,7 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -510,6 +537,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -548,6 +576,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go index d38d5ce3eb..6c2b3e1468 100644 --- a/model_saved_filter_request.go +++ b/model_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go index 19b41f6a59..88d0073eed 100644 --- a/model_schema_retrieve_format_parameter.go +++ b/model_schema_retrieve_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go index 301bf4dbb2..f675e7e88f 100644 --- a/model_schema_retrieve_lang_parameter.go +++ b/model_schema_retrieve_lang_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,16 @@ type SchemaRetrieveLangParameter string // List of schema_retrieve_lang_parameter const ( + SCHEMARETRIEVELANGPARAMETER_CS SchemaRetrieveLangParameter = "cs" + SCHEMARETRIEVELANGPARAMETER_DA SchemaRetrieveLangParameter = "da" SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de" SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en" SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es" SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr" + SCHEMARETRIEVELANGPARAMETER_IT SchemaRetrieveLangParameter = "it" SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja" + SCHEMARETRIEVELANGPARAMETER_NL SchemaRetrieveLangParameter = "nl" + SCHEMARETRIEVELANGPARAMETER_PL SchemaRetrieveLangParameter = "pl" SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt" SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru" SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr" @@ -34,11 +39,16 @@ const ( // All allowed values of SchemaRetrieveLangParameter enum var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{ + "cs", + "da", "de", "en", "es", "fr", + "it", "ja", + "nl", + "pl", "pt", "ru", "tr", diff --git a/model_script.go b/model_script.go index 738094f17b..5c0584baae 100644 --- a/model_script.go +++ b/model_script.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,16 @@ var _ MappedNullable = &Script{} // Script Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Script struct { - Id int32 `json:"id"` - Url string `json:"url"` - Module int32 `json:"module"` - Name string `json:"name"` - Description string `json:"description"` - Vars interface{} `json:"vars"` - Result Job `json:"result"` - Display string `json:"display"` - IsExecutable bool `json:"is_executable"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Module int32 `json:"module"` + Name string `json:"name"` + Description NullableString `json:"description"` + Vars interface{} `json:"vars"` + Result BriefJob `json:"result"` + Display string `json:"display"` + IsExecutable bool `json:"is_executable"` AdditionalProperties map[string]interface{} } @@ -38,10 +39,11 @@ type _Script Script // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool) *Script { +func NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool) *Script { this := Script{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Module = module this.Name = name this.Description = description @@ -108,6 +110,30 @@ func (o *Script) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Script) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Script) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Script) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetModule returns the Module field value func (o *Script) GetModule() int32 { if o == nil { @@ -157,27 +183,29 @@ func (o *Script) SetName(v string) { } // GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned func (o *Script) GetDescription() string { - if o == nil { + if o == nil || o.Description.Get() == nil { var ret string return ret } - return o.Description + return *o.Description.Get() } // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Script) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } - return &o.Description, true + return o.Description.Get(), o.Description.IsSet() } // SetDescription sets field value func (o *Script) SetDescription(v string) { - o.Description = v + o.Description.Set(&v) } // GetVars returns the Vars field value @@ -207,9 +235,9 @@ func (o *Script) SetVars(v interface{}) { } // GetResult returns the Result field value -func (o *Script) GetResult() Job { +func (o *Script) GetResult() BriefJob { if o == nil { - var ret Job + var ret BriefJob return ret } @@ -218,7 +246,7 @@ func (o *Script) GetResult() Job { // GetResultOk returns a tuple with the Result field value // and a boolean to check if the value has been set. -func (o *Script) GetResultOk() (*Job, bool) { +func (o *Script) GetResultOk() (*BriefJob, bool) { if o == nil { return nil, false } @@ -226,7 +254,7 @@ func (o *Script) GetResultOk() (*Job, bool) { } // SetResult sets field value -func (o *Script) SetResult(v Job) { +func (o *Script) SetResult(v BriefJob) { o.Result = v } @@ -290,9 +318,10 @@ func (o Script) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["module"] = o.Module toSerialize["name"] = o.Name - toSerialize["description"] = o.Description + toSerialize["description"] = o.Description.Get() if o.Vars != nil { toSerialize["vars"] = o.Vars } @@ -314,6 +343,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "module", "name", "description", @@ -352,6 +382,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_script_input_request.go b/model_script_input_request.go new file mode 100644 index 0000000000..4b40ca5236 --- /dev/null +++ b/model_script_input_request.go @@ -0,0 +1,296 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptInputRequest{} + +// ScriptInputRequest struct for ScriptInputRequest +type ScriptInputRequest struct { + Data interface{} `json:"data"` + Commit bool `json:"commit"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ScriptInputRequest ScriptInputRequest + +// NewScriptInputRequest instantiates a new ScriptInputRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptInputRequest(data interface{}, commit bool) *ScriptInputRequest { + this := ScriptInputRequest{} + this.Data = data + this.Commit = commit + return &this +} + +// NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptInputRequestWithDefaults() *ScriptInputRequest { + this := ScriptInputRequest{} + return &this +} + +// GetData returns the Data field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + +// GetCommit returns the Commit field value +func (o *ScriptInputRequest) GetCommit() bool { + if o == nil { + var ret bool + return ret + } + + return o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value +// and a boolean to check if the value has been set. +func (o *ScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Commit, true +} + +// SetCommit sets field value +func (o *ScriptInputRequest) SetCommit(v bool) { + o.Commit = v +} + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *ScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} + +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *ScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *ScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *ScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} + +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *ScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *ScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o ScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + toSerialize["commit"] = o.Commit + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "commit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varScriptInputRequest := _ScriptInputRequest{} + + err = json.Unmarshal(data, &varScriptInputRequest) + + if err != nil { + return err + } + + *o = ScriptInputRequest(varScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScriptInputRequest struct { + value *ScriptInputRequest + isSet bool +} + +func (v NullableScriptInputRequest) Get() *ScriptInputRequest { + return v.value +} + +func (v *NullableScriptInputRequest) Set(val *ScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullableScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptInputRequest(val *ScriptInputRequest) *NullableScriptInputRequest { + return &NullableScriptInputRequest{value: val, isSet: true} +} + +func (v NullableScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_service.go b/model_service.go index e12f61b56e..973d3291b1 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,22 @@ var _ MappedNullable = &Service{} // Service Adds support for custom fields and tags. type Service struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NullableDevice `json:"device,omitempty"` - VirtualMachine NullableVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -45,10 +46,11 @@ type _Service Service // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { +func NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { this := Service{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -113,6 +115,30 @@ func (o *Service) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Service) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Service) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Service) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Service) GetDisplay() string { if o == nil { @@ -138,9 +164,9 @@ func (o *Service) SetDisplay(v string) { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetDevice() Device { +func (o *Service) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -149,7 +175,7 @@ func (o *Service) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetDeviceOk() (*Device, bool) { +func (o *Service) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -165,8 +191,8 @@ func (o *Service) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *Service) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *Service) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -181,9 +207,9 @@ func (o *Service) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetVirtualMachine() VirtualMachine { +func (o *Service) GetVirtualMachine() BriefVirtualMachine { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } return *o.VirtualMachine.Get() @@ -192,7 +218,7 @@ func (o *Service) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *Service) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field. -func (o *Service) SetVirtualMachine(v VirtualMachine) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field. +func (o *Service) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine.Set(&v) } @@ -527,6 +553,7 @@ func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() @@ -571,6 +598,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "ports", @@ -607,6 +635,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "virtual_machine") diff --git a/model_service_protocol.go b/model_service_protocol.go index bdd3078449..5438e2b054 100644 --- a/model_service_protocol.go +++ b/model_service_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go index b210b80a3a..e9f1dbcde6 100644 --- a/model_service_protocol_label.go +++ b/model_service_protocol_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_request.go b/model_service_request.go index 9b3bc7f2be..a25ff2189f 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports"` @@ -55,9 +55,9 @@ func NewServiceRequestWithDefaults() *ServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetDevice() DeviceRequest { +func (o *ServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *ServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *ServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -98,9 +98,9 @@ func (o *ServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -109,7 +109,7 @@ func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *ServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_service_template.go b/model_service_template.go index 9d80868778..712147a0b5 100644 --- a/model_service_template.go +++ b/model_service_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ServiceTemplate{} type ServiceTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Protocol *ServiceProtocol `json:"protocol,omitempty"` @@ -42,10 +43,11 @@ type _ServiceTemplate ServiceTemplate // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { +func NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { this := ServiceTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -110,6 +112,30 @@ func (o *ServiceTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ServiceTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ServiceTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ServiceTemplate) GetDisplay() string { if o == nil { @@ -406,6 +432,7 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Protocol) { @@ -441,6 +468,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "ports", @@ -477,6 +505,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "protocol") diff --git a/model_service_template_request.go b/model_service_template_request.go index 39275e46c0..a7a3619548 100644 --- a/model_service_template_request.go +++ b/model_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site.go b/model_site.go index 1e847b294b..9679c7ddf0 100644 --- a/model_site.go +++ b/model_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Site type satisfies the MappedNullable interface at compile time @@ -20,13 +21,41 @@ var _ MappedNullable = &Site{} // Site Adds support for custom fields and tags. type Site struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatus `json:"status,omitempty"` + Region NullableBriefRegion `json:"region,omitempty"` + Group NullableBriefSiteGroup `json:"group,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount int64 `json:"device_count"` + PrefixCount int64 `json:"prefix_count"` + RackCount int64 `json:"rack_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +65,22 @@ type _Site Site // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSite(id int32, url string, display string, name string, slug string) *Site { +func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, deviceCount int64, prefixCount int64, rackCount int64, virtualmachineCount int64, vlanCount int64) *Site { this := Site{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.DeviceCount = deviceCount + this.PrefixCount = prefixCount + this.RackCount = rackCount + this.VirtualmachineCount = virtualmachineCount + this.VlanCount = vlanCount return &this } @@ -102,6 +140,30 @@ func (o *Site) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Site) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Site) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Site) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Site) GetDisplay() string { if o == nil { @@ -174,6 +236,242 @@ func (o *Site) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Site) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Site) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Site) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetRegion() BriefRegion { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegion + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetRegionOk() (*BriefRegion, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Site) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegion and assigns it to the Region field. +func (o *Site) SetRegion(v BriefRegion) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Site) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Site) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetGroup() BriefSiteGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetGroupOk() (*BriefSiteGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Site) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroup and assigns it to the Group field. +func (o *Site) SetGroup(v BriefSiteGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Site) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Site) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Site) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Site) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Site) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Site) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Site) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Site) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Site) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *Site) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *Site) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *Site) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *Site) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Site) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +504,480 @@ func (o *Site) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *Site) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *Site) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *Site) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *Site) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *Site) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *Site) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *Site) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *Site) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *Site) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *Site) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *Site) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *Site) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *Site) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *Site) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Site) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Site) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Site) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Site) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Site) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Site) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Site) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Site) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Site) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Site) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Site) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Site) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Site) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Site) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Site) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Site) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *Site) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *Site) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +// GetPrefixCount returns the PrefixCount field value +func (o *Site) GetPrefixCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetPrefixCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PrefixCount, true +} + +// SetPrefixCount sets field value +func (o *Site) SetPrefixCount(v int64) { + o.PrefixCount = v +} + +// GetRackCount returns the RackCount field value +func (o *Site) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Site) SetRackCount(v int64) { + o.RackCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value +func (o *Site) GetVirtualmachineCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualmachineCount, true +} + +// SetVirtualmachineCount sets field value +func (o *Site) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = v +} + +// GetVlanCount returns the VlanCount field value +func (o *Site) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *Site) SetVlanCount(v int64) { + o.VlanCount = v +} + func (o Site) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +990,63 @@ func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + toSerialize["device_count"] = o.DeviceCount + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["rack_count"] = o.RackCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +1062,18 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "device_count", + "prefix_count", + "rack_count", + "virtualmachine_count", + "vlan_count", } allProperties := make(map[string]interface{}) @@ -273,10 +1105,33 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties } diff --git a/model_site_group.go b/model_site_group.go index 36320a38d7..d29d14f0db 100644 --- a/model_site_group.go +++ b/model_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SiteGroup{} type SiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ type _SiteGroup SiteGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *SiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *SiteGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *SiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *SiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *SiteGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_site_group_request.go b/model_site_group_request.go index 1cd1ab1c56..cb799b1205 100644 --- a/model_site_group_request.go +++ b/model_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site_request.go b/model_site_request.go index 60b8fd8dc9..18f9eb5ff4 100644 --- a/model_site_request.go +++ b/model_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,28 @@ var _ MappedNullable = &SiteRequest{} // SiteRequest Adds support for custom fields and tags. type SiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +115,242 @@ func (o *SiteRequest) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SiteRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SiteRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *SiteRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetRegion() BriefRegionRequest { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegionRequest + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *SiteRequest) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *SiteRequest) SetRegion(v BriefRegionRequest) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *SiteRequest) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *SiteRequest) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetGroup() BriefSiteGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *SiteRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *SiteRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *SiteRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *SiteRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *SiteRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *SiteRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *SiteRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *SiteRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *SiteRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *SiteRequest) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *SiteRequest) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *SiteRequest) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *SiteRequest) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *SiteRequest) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SiteRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +383,284 @@ func (o *SiteRequest) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *SiteRequest) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *SiteRequest) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *SiteRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *SiteRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *SiteRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *SiteRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *SiteRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *SiteRequest) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *SiteRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *SiteRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *SiteRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *SiteRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *SiteRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *SiteRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SiteRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SiteRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *SiteRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *SiteRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *SiteRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *SiteRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o SiteRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +673,51 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +764,21 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_subscription.go b/model_subscription.go new file mode 100644 index 0000000000..37c4e6a115 --- /dev/null +++ b/model_subscription.go @@ -0,0 +1,374 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the Subscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Subscription{} + +// Subscription Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type Subscription struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + AdditionalProperties map[string]interface{} +} + +type _Subscription Subscription + +// NewSubscription instantiates a new Subscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubscription(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Subscription { + this := Subscription{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + this.User = user + this.Created = created + return &this +} + +// NewSubscriptionWithDefaults instantiates a new Subscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubscriptionWithDefaults() *Subscription { + this := Subscription{} + return &this +} + +// GetId returns the Id field value +func (o *Subscription) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Subscription) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *Subscription) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Subscription) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *Subscription) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Subscription) SetDisplay(v string) { + o.Display = v +} + +// GetObjectType returns the ObjectType field value +func (o *Subscription) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Subscription) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *Subscription) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Subscription) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *Subscription) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Subscription) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *Subscription) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Subscription) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Subscription) SetUser(v BriefUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *Subscription) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Subscription) SetCreated(v time.Time) { + o.Created = v +} + +func (o Subscription) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Subscription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Subscription) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "object", + "user", + "created", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSubscription := _Subscription{} + + err = json.Unmarshal(data, &varSubscription) + + if err != nil { + return err + } + + *o = Subscription(varSubscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscription struct { + value *Subscription + isSet bool +} + +func (v NullableSubscription) Get() *Subscription { + return v.value +} + +func (v *NullableSubscription) Set(val *Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscription(val *Subscription) *NullableSubscription { + return &NullableSubscription{value: val, isSet: true} +} + +func (v NullableSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_subscription_request.go b/model_subscription_request.go new file mode 100644 index 0000000000..ba6de2e107 --- /dev/null +++ b/model_subscription_request.go @@ -0,0 +1,224 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the SubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionRequest{} + +// SubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type SubscriptionRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionRequest SubscriptionRequest + +// NewSubscriptionRequest instantiates a new SubscriptionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest) *SubscriptionRequest { + this := SubscriptionRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubscriptionRequestWithDefaults() *SubscriptionRequest { + this := SubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *SubscriptionRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *SubscriptionRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *SubscriptionRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *SubscriptionRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *SubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = v +} + +func (o SubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSubscriptionRequest := _SubscriptionRequest{} + + err = json.Unmarshal(data, &varSubscriptionRequest) + + if err != nil { + return err + } + + *o = SubscriptionRequest(varSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionRequest struct { + value *SubscriptionRequest + isSet bool +} + +func (v NullableSubscriptionRequest) Get() *SubscriptionRequest { + return v.value +} + +func (v *NullableSubscriptionRequest) Set(val *SubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRequest(val *SubscriptionRequest) *NullableSubscriptionRequest { + return &NullableSubscriptionRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_tag.go b/model_tag.go index 976b2af1a6..1f30de7cc6 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Tag{} type Tag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _Tag Tag // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { +func NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { this := Tag{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *Tag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tag) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tag) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tag) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tag) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tag_request.go b/model_tag_request.go index 3e2e1c595d..e3d3897789 100644 --- a/model_tag_request.go +++ b/model_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant.go b/model_tenant.go index 0c4232d933..b6b4fa0e2f 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tenant type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &Tenant{} // Tenant Adds support for custom fields and tags. type Tenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount int64 `json:"device_count"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount int64 `json:"prefix_count"` + RackCount int64 `json:"rack_count"` + SiteCount int64 `json:"site_count"` + VirtualmachineCount int64 `json:"virtualmachine_count"` + VlanCount int64 `json:"vlan_count"` + VrfCount int64 `json:"vrf_count"` + ClusterCount int64 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,26 @@ type _Tenant Tenant // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTenant(id int32, url string, display string, name string, slug string) *Tenant { +func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, deviceCount int64, ipaddressCount int64, prefixCount int64, rackCount int64, siteCount int64, virtualmachineCount int64, vlanCount int64, vrfCount int64, clusterCount int64) *Tenant { this := Tenant{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.DeviceCount = deviceCount + this.IpaddressCount = ipaddressCount + this.PrefixCount = prefixCount + this.RackCount = rackCount + this.SiteCount = siteCount + this.VirtualmachineCount = virtualmachineCount + this.VlanCount = vlanCount + this.VrfCount = vrfCount + this.ClusterCount = clusterCount return &this } @@ -101,6 +132,30 @@ func (o *Tenant) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tenant) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tenant) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tenant) GetDisplay() string { if o == nil { @@ -173,6 +228,49 @@ func (o *Tenant) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetGroup() BriefTenantGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tenant) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroup and assigns it to the Group field. +func (o *Tenant) SetGroup(v BriefTenantGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tenant) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tenant) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +303,394 @@ func (o *Tenant) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tenant) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tenant) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tenant) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tenant) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tenant) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tenant) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tenant) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tenant) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tenant) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tenant) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tenant) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Tenant) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Tenant) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value +func (o *Tenant) GetDeviceCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetDeviceCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DeviceCount, true +} + +// SetDeviceCount sets field value +func (o *Tenant) SetDeviceCount(v int64) { + o.DeviceCount = v +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *Tenant) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *Tenant) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + +// GetPrefixCount returns the PrefixCount field value +func (o *Tenant) GetPrefixCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetPrefixCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PrefixCount, true +} + +// SetPrefixCount sets field value +func (o *Tenant) SetPrefixCount(v int64) { + o.PrefixCount = v +} + +// GetRackCount returns the RackCount field value +func (o *Tenant) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Tenant) SetRackCount(v int64) { + o.RackCount = v +} + +// GetSiteCount returns the SiteCount field value +func (o *Tenant) GetSiteCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetSiteCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *Tenant) SetSiteCount(v int64) { + o.SiteCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value +func (o *Tenant) GetVirtualmachineCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualmachineCount, true +} + +// SetVirtualmachineCount sets field value +func (o *Tenant) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = v +} + +// GetVlanCount returns the VlanCount field value +func (o *Tenant) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *Tenant) SetVlanCount(v int64) { + o.VlanCount = v +} + +// GetVrfCount returns the VrfCount field value +func (o *Tenant) GetVrfCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VrfCount +} + +// GetVrfCountOk returns a tuple with the VrfCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVrfCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VrfCount, true +} + +// SetVrfCount sets field value +func (o *Tenant) SetVrfCount(v int64) { + o.VrfCount = v +} + +// GetClusterCount returns the ClusterCount field value +func (o *Tenant) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *Tenant) SetClusterCount(v int64) { + o.ClusterCount = v +} + func (o Tenant) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +703,37 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + toSerialize["device_count"] = o.DeviceCount + toSerialize["ipaddress_count"] = o.IpaddressCount + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["rack_count"] = o.RackCount + toSerialize["site_count"] = o.SiteCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + toSerialize["vlan_count"] = o.VlanCount + toSerialize["vrf_count"] = o.VrfCount + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +749,22 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "device_count", + "ipaddress_count", + "prefix_count", + "rack_count", + "site_count", + "virtualmachine_count", + "vlan_count", + "vrf_count", + "cluster_count", } allProperties := make(map[string]interface{}) @@ -272,10 +796,27 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "ipaddress_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "site_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") + delete(additionalProperties, "vrf_count") + delete(additionalProperties, "cluster_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tenant_group.go b/model_tenant_group.go index ef3aab867f..c6d7e4f2bf 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TenantGroup{} type TenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ type _TenantGroup TenantGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *TenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TenantGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TenantGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go index 70e0f8dfcf..e54ab884e2 100644 --- a/model_tenant_group_request.go +++ b/model_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant_request.go b/model_tenant_request.go index 5b7a6cb221..4726ed4228 100644 --- a/model_tenant_request.go +++ b/model_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,49 @@ func (o *TenantRequest) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantRequest) GetGroup() BriefTenantGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TenantRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TenantRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TenantRequest) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TenantRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +174,102 @@ func (o *TenantRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TenantRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TenantRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TenantRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TenantRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TenantRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TenantRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TenantRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TenantRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TenantRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TenantRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +282,21 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +343,11 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_termination.go b/model_termination.go index 8c028ef173..5381a5375f 100644 --- a/model_termination.go +++ b/model_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_termination_1.go b/model_termination_1.go index c68e40d672..7496f17f8f 100644 --- a/model_termination_1.go +++ b/model_termination_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 017655fd02..50fa94e812 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &Token{} // Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Token struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + 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"` @@ -41,10 +42,11 @@ type _Token Token // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewToken(id int32, url string, display string, user User, created time.Time) *Token { +func NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time) *Token { this := Token{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -107,6 +109,30 @@ func (o *Token) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Token) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Token) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Token) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Token) GetDisplay() string { if o == nil { @@ -132,9 +158,9 @@ func (o *Token) SetDisplay(v string) { } // GetUser returns the User field value -func (o *Token) GetUser() User { +func (o *Token) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -143,7 +169,7 @@ func (o *Token) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Token) GetUserOk() (*User, bool) { +func (o *Token) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -151,7 +177,7 @@ func (o *Token) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Token) SetUser(v User) { +func (o *Token) SetUser(v BriefUser) { o.User = v } @@ -373,6 +399,7 @@ func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -406,6 +433,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "user", "created", @@ -440,6 +468,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision.go b/model_token_provision.go index d2058fd4a3..ff372b2d4b 100644 --- a/model_token_provision.go +++ b/model_token_provision.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &TokenProvision{} // TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenProvision struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed time.Time `json:"last_used"` - Key string `json:"key"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed time.Time `json:"last_used"` + Key string `json:"key"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -41,10 +42,11 @@ type _TokenProvision TokenProvision // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string) *TokenProvision { +func NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string) *TokenProvision { this := TokenProvision{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -109,6 +111,30 @@ func (o *TokenProvision) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TokenProvision) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TokenProvision) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TokenProvision) GetDisplay() string { if o == nil { @@ -134,9 +160,9 @@ func (o *TokenProvision) SetDisplay(v string) { } // GetUser returns the User field value -func (o *TokenProvision) GetUser() User { +func (o *TokenProvision) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -145,7 +171,7 @@ func (o *TokenProvision) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenProvision) GetUserOk() (*User, bool) { +func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -153,7 +179,7 @@ func (o *TokenProvision) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *TokenProvision) SetUser(v User) { +func (o *TokenProvision) SetUser(v BriefUser) { o.User = v } @@ -348,6 +374,7 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -377,6 +404,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "user", "created", @@ -413,6 +441,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision_request.go b/model_token_provision_request.go index f880694d45..d1dcb3328e 100644 --- a/model_token_provision_request.go +++ b/model_token_provision_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token_request.go b/model_token_request.go index a472e96504..93a6d9bd8f 100644 --- a/model_token_request.go +++ b/model_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &TokenRequest{} // TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenRequest struct { - User UserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User BriefUserRequest `json:"user"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -37,7 +37,7 @@ type _TokenRequest TokenRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTokenRequest(user UserRequest) *TokenRequest { +func NewTokenRequest(user BriefUserRequest) *TokenRequest { this := TokenRequest{} this.User = user return &this @@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest { } // GetUser returns the User field value -func (o *TokenRequest) GetUser() UserRequest { +func (o *TokenRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *TokenRequest) SetUser(v UserRequest) { +func (o *TokenRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_tunnel.go b/model_tunnel.go index b947b58fc7..c3954ecbcd 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tunnel type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &Tunnel{} // Tunnel Adds support for custom fields and tags. type Tunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + TerminationsCount int64 `json:"terminations_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,18 @@ type _Tunnel Tunnel // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTunnel(id int32, url string, display string, name string) *Tunnel { +func NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64) *Tunnel { this := Tunnel{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Status = status + this.Encapsulation = encapsulation + this.Created = created + this.LastUpdated = lastUpdated + this.TerminationsCount = terminationsCount return &this } @@ -99,6 +119,30 @@ func (o *Tunnel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tunnel) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tunnel) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tunnel) GetDisplay() string { if o == nil { @@ -147,6 +191,226 @@ func (o *Tunnel) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *Tunnel) GetStatus() TunnelStatus { + if o == nil { + var ret TunnelStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Tunnel) SetStatus(v TunnelStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetGroup() BriefTunnelGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tunnel) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroup and assigns it to the Group field. +func (o *Tunnel) SetGroup(v BriefTunnelGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tunnel) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tunnel) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *Tunnel) GetEncapsulation() TunnelEncapsulation { + if o == nil { + var ret TunnelEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfile + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *Tunnel) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfile and assigns it to the IpsecProfile field. +func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *Tunnel) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *Tunnel) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Tunnel) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Tunnel) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Tunnel) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Tunnel) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *Tunnel) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *Tunnel) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *Tunnel) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *Tunnel) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tunnel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +443,178 @@ func (o *Tunnel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tunnel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tunnel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tunnel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tunnel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tunnel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tunnel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tunnel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tunnel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tunnel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tunnel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tunnel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetTerminationsCount returns the TerminationsCount field value +func (o *Tunnel) GetTerminationsCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TerminationsCount +} + +// GetTerminationsCountOk returns a tuple with the TerminationsCount field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TerminationsCount, true +} + +// SetTerminationsCount sets field value +func (o *Tunnel) SetTerminationsCount(v int64) { + o.TerminationsCount = v +} + func (o Tunnel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +627,38 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["terminations_count"] = o.TerminationsCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +674,14 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "status", + "encapsulation", + "created", + "last_updated", + "terminations_count", } allProperties := make(map[string]interface{}) @@ -244,9 +713,22 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "terminations_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go new file mode 100644 index 0000000000..8bd08ed5eb --- /dev/null +++ b/model_tunnel_encapsulation.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelEncapsulation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelEncapsulation{} + +// TunnelEncapsulation struct for TunnelEncapsulation +type TunnelEncapsulation struct { + Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"` + Label *TunnelEncapsulationLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelEncapsulation TunnelEncapsulation + +// NewTunnelEncapsulation instantiates a new TunnelEncapsulation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTunnelEncapsulation() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TunnelEncapsulation) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestEncapsulation and assigns it to the Value field. +func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelEncapsulationLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *TunnelEncapsulation) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelEncapsulationLabel and assigns it to the Label field. +func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel) { + o.Label = &v +} + +func (o TunnelEncapsulation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelEncapsulation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TunnelEncapsulation) UnmarshalJSON(data []byte) (err error) { + varTunnelEncapsulation := _TunnelEncapsulation{} + + err = json.Unmarshal(data, &varTunnelEncapsulation) + + if err != nil { + return err + } + + *o = TunnelEncapsulation(varTunnelEncapsulation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelEncapsulation struct { + value *TunnelEncapsulation + isSet bool +} + +func (v NullableTunnelEncapsulation) Get() *TunnelEncapsulation { + return v.value +} + +func (v *NullableTunnelEncapsulation) Set(val *TunnelEncapsulation) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulation) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulation(val *TunnelEncapsulation) *NullableTunnelEncapsulation { + return &NullableTunnelEncapsulation{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_tunnel_encapsulation_label.go b/model_tunnel_encapsulation_label.go new file mode 100644 index 0000000000..09e344d5c1 --- /dev/null +++ b/model_tunnel_encapsulation_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelEncapsulationLabel the model 'TunnelEncapsulationLabel' +type TunnelEncapsulationLabel string + +// List of Tunnel_encapsulation_label +const ( + TUNNELENCAPSULATIONLABEL_I_PSEC___TRANSPORT TunnelEncapsulationLabel = "IPsec - Transport" + TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel" + TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP" + TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE" +) + +// All allowed values of TunnelEncapsulationLabel enum +var AllowedTunnelEncapsulationLabelEnumValues = []TunnelEncapsulationLabel{ + "IPsec - Transport", + "IPsec - Tunnel", + "IP-in-IP", + "GRE", +} + +func (v *TunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelEncapsulationLabel(value) + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelEncapsulationLabel", value) +} + +// NewTunnelEncapsulationLabelFromValue returns a pointer to a valid TunnelEncapsulationLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelEncapsulationLabelFromValue(v string) (*TunnelEncapsulationLabel, error) { + ev := TunnelEncapsulationLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelEncapsulationLabel: valid values are %v", v, AllowedTunnelEncapsulationLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelEncapsulationLabel) IsValid() bool { + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_encapsulation_label value +func (v TunnelEncapsulationLabel) Ptr() *TunnelEncapsulationLabel { + return &v +} + +type NullableTunnelEncapsulationLabel struct { + value *TunnelEncapsulationLabel + isSet bool +} + +func (v NullableTunnelEncapsulationLabel) Get() *TunnelEncapsulationLabel { + return v.value +} + +func (v *NullableTunnelEncapsulationLabel) Set(val *TunnelEncapsulationLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulationLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulationLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulationLabel(val *TunnelEncapsulationLabel) *NullableTunnelEncapsulationLabel { + return &NullableTunnelEncapsulationLabel{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulationLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_tunnel_group.go b/model_tunnel_group.go index c4ba9d081b..3bce5526e7 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TunnelGroup{} type TunnelGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _TunnelGroup TunnelGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { +func NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { this := TunnelGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *TunnelGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TunnelGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TunnelGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TunnelGroup) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go index f19727186e..03e39ef27f 100644 --- a/model_tunnel_group_request.go +++ b/model_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_request.go b/model_tunnel_request.go index c6e7ce5600..67a83389f0 100644 --- a/model_tunnel_request.go +++ b/model_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &TunnelRequest{} // TunnelRequest Adds support for custom fields and tags. type TunnelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Status PatchedWritableTunnelRequestStatus `json:"status"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +40,11 @@ type _TunnelRequest TunnelRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTunnelRequest(name string) *TunnelRequest { +func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest { this := TunnelRequest{} this.Name = name + this.Status = status + this.Encapsulation = encapsulation return &this } @@ -69,6 +80,226 @@ func (o *TunnelRequest) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { + if o == nil { + var ret PatchedWritableTunnelRequestStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TunnelRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TunnelRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TunnelRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation { + if o == nil { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfileRequest + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *TunnelRequest) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *TunnelRequest) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *TunnelRequest) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *TunnelRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *TunnelRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *TunnelRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *TunnelRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *TunnelRequest) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *TunnelRequest) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *TunnelRequest) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *TunnelRequest) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +332,102 @@ func (o *TunnelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TunnelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TunnelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TunnelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TunnelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TunnelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TunnelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TunnelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TunnelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TunnelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TunnelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +439,32 @@ func (o TunnelRequest) MarshalJSON() ([]byte, error) { func (o TunnelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +479,8 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "status", + "encapsulation", } allProperties := make(map[string]interface{}) @@ -159,7 +511,16 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_status.go b/model_tunnel_status.go new file mode 100644 index 0000000000..7160b5286e --- /dev/null +++ b/model_tunnel_status.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelStatus{} + +// TunnelStatus struct for TunnelStatus +type TunnelStatus struct { + Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"` + Label *TunnelStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelStatus TunnelStatus + +// NewTunnelStatus instantiates a new TunnelStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTunnelStatus() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// NewTunnelStatusWithDefaults instantiates a new TunnelStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTunnelStatusWithDefaults() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestStatus + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TunnelStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestStatus and assigns it to the Value field. +func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelStatus) GetLabel() TunnelStatusLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *TunnelStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelStatusLabel and assigns it to the Label field. +func (o *TunnelStatus) SetLabel(v TunnelStatusLabel) { + o.Label = &v +} + +func (o TunnelStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TunnelStatus) UnmarshalJSON(data []byte) (err error) { + varTunnelStatus := _TunnelStatus{} + + err = json.Unmarshal(data, &varTunnelStatus) + + if err != nil { + return err + } + + *o = TunnelStatus(varTunnelStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelStatus struct { + value *TunnelStatus + isSet bool +} + +func (v NullableTunnelStatus) Get() *TunnelStatus { + return v.value +} + +func (v *NullableTunnelStatus) Set(val *TunnelStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatus(val *TunnelStatus) *NullableTunnelStatus { + return &NullableTunnelStatus{value: val, isSet: true} +} + +func (v NullableTunnelStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_tunnel_status_label.go b/model_tunnel_status_label.go new file mode 100644 index 0000000000..0639152341 --- /dev/null +++ b/model_tunnel_status_label.go @@ -0,0 +1,112 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelStatusLabel the model 'TunnelStatusLabel' +type TunnelStatusLabel string + +// List of Tunnel_status_label +const ( + TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned" + TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active" + TUNNELSTATUSLABEL_DISABLED TunnelStatusLabel = "Disabled" +) + +// All allowed values of TunnelStatusLabel enum +var AllowedTunnelStatusLabelEnumValues = []TunnelStatusLabel{ + "Planned", + "Active", + "Disabled", +} + +func (v *TunnelStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelStatusLabel(value) + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelStatusLabel", value) +} + +// NewTunnelStatusLabelFromValue returns a pointer to a valid TunnelStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelStatusLabelFromValue(v string) (*TunnelStatusLabel, error) { + ev := TunnelStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelStatusLabel: valid values are %v", v, AllowedTunnelStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelStatusLabel) IsValid() bool { + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_status_label value +func (v TunnelStatusLabel) Ptr() *TunnelStatusLabel { + return &v +} + +type NullableTunnelStatusLabel struct { + value *TunnelStatusLabel + isSet bool +} + +func (v NullableTunnelStatusLabel) Get() *TunnelStatusLabel { + return v.value +} + +func (v *NullableTunnelStatusLabel) Set(val *TunnelStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatusLabel(val *TunnelStatusLabel) *NullableTunnelStatusLabel { + return &NullableTunnelStatusLabel{value: val, isSet: true} +} + +func (v NullableTunnelStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go index 014447ce24..2a522902b5 100644 --- a/model_tunnel_termination.go +++ b/model_tunnel_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &TunnelTermination{} type TunnelTermination struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Tunnel Tunnel `json:"tunnel"` + Tunnel BriefTunnel `json:"tunnel"` Role TunnelTerminationRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` Termination interface{} `json:"termination"` - OutsideIp NullableIPAddress `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,10 +44,11 @@ type _TunnelTermination TunnelTermination // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { +func NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { this := TunnelTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Tunnel = tunnel this.Role = role @@ -114,6 +116,30 @@ func (o *TunnelTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TunnelTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TunnelTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TunnelTermination) GetDisplay() string { if o == nil { @@ -139,9 +165,9 @@ func (o *TunnelTermination) SetDisplay(v string) { } // GetTunnel returns the Tunnel field value -func (o *TunnelTermination) GetTunnel() Tunnel { +func (o *TunnelTermination) GetTunnel() BriefTunnel { if o == nil { - var ret Tunnel + var ret BriefTunnel return ret } @@ -150,7 +176,7 @@ func (o *TunnelTermination) GetTunnel() Tunnel { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { +func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { if o == nil { return nil, false } @@ -158,7 +184,7 @@ func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { } // SetTunnel sets field value -func (o *TunnelTermination) SetTunnel(v Tunnel) { +func (o *TunnelTermination) SetTunnel(v BriefTunnel) { o.Tunnel = v } @@ -263,9 +289,9 @@ func (o *TunnelTermination) SetTermination(v interface{}) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTermination) GetOutsideIp() IPAddress { +func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OutsideIp.Get() @@ -274,7 +300,7 @@ func (o *TunnelTermination) GetOutsideIp() IPAddress { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) { +func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -290,8 +316,8 @@ func (o *TunnelTermination) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field. -func (o *TunnelTermination) SetOutsideIp(v IPAddress) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddress and assigns it to the OutsideIp field. +func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) { o.OutsideIp.Set(&v) } @@ -433,6 +459,7 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role @@ -467,6 +494,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "tunnel", "role", @@ -506,6 +534,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "tunnel") delete(additionalProperties, "role") diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go index d38e99b538..34d8170961 100644 --- a/model_tunnel_termination_request.go +++ b/model_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelTerminationRequest{} // TunnelTerminationRequest Adds support for custom fields and tags. type TunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role PatchedWritableTunnelTerminationRequestRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,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 TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { +func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { this := TunnelTerminationRequest{} this.Tunnel = tunnel this.Role = role @@ -54,9 +54,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest { } // GetTunnel returns the Tunnel field value -func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -65,7 +65,7 @@ func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -73,7 +73,7 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { } // SetTunnel sets field value -func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -152,9 +152,9 @@ func (o *TunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -163,7 +163,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -179,8 +179,8 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go index fe1ea1a389..1291d5aadd 100644 --- a/model_tunnel_termination_role.go +++ b/model_tunnel_termination_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go index f59fb7fd85..ece2e70732 100644 --- a/model_tunnel_termination_role_label.go +++ b/model_tunnel_termination_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user.go b/model_user.go index 09bd2a3cd0..50b2c2665f 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the User type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &User{} // User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type User struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []Group `json:"groups,omitempty"` + Permissions []ObjectPermission `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,10 +47,11 @@ type _User User // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUser(id int32, url string, display string, username string) *User { +func NewUser(id int32, url string, displayUrl string, display string, username string) *User { this := User{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -99,6 +113,30 @@ func (o *User) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *User) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *User) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *User) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *User) GetDisplay() string { if o == nil { @@ -147,6 +185,305 @@ func (o *User) SetUsername(v string) { o.Username = v } +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *User) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *User) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *User) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *User) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *User) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *User) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *User) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *User) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *User) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *User) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *User) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *User) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *User) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *User) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *User) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *User) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *User) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *User) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *User) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *User) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *User) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *User) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *User) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *User) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *User) SetGroups(v []Group) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *User) GetPermissions() []ObjectPermission { + if o == nil || IsNil(o.Permissions) { + var ret []ObjectPermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetPermissionsOk() ([]ObjectPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *User) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []ObjectPermission and assigns it to the Permissions field. +func (o *User) SetPermissions(v []ObjectPermission) { + o.Permissions = v +} + func (o User) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,8 +496,36 @@ func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -176,6 +541,7 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "username", } @@ -209,8 +575,18 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_user_request.go b/model_user_request.go index 33ff7942b1..9ed8f68c8b 100644 --- a/model_user_request.go +++ b/model_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the UserRequest type satisfies the MappedNullable interface at compile time @@ -21,7 +22,19 @@ var _ MappedNullable = &UserRequest{} // UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type UserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + Password string `json:"password"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +44,10 @@ type _UserRequest UserRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUserRequest(username string) *UserRequest { +func NewUserRequest(username string, password string) *UserRequest { this := UserRequest{} this.Username = username + this.Password = password return &this } @@ -69,6 +83,329 @@ func (o *UserRequest) SetUsername(v string) { o.Username = v } +// GetPassword returns the Password field value +func (o *UserRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *UserRequest) SetPassword(v string) { + o.Password = v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *UserRequest) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *UserRequest) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *UserRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *UserRequest) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *UserRequest) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *UserRequest) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *UserRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *UserRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *UserRequest) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *UserRequest) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *UserRequest) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *UserRequest) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *UserRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *UserRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *UserRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *UserRequest) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *UserRequest) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *UserRequest) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UserRequest) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserRequest) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *UserRequest) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *UserRequest) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *UserRequest) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *UserRequest) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *UserRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *UserRequest) GetPermissions() []int32 { + if o == nil || IsNil(o.Permissions) { + var ret []int32 + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPermissionsOk() ([]int32, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *UserRequest) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []int32 and assigns it to the Permissions field. +func (o *UserRequest) SetPermissions(v []int32) { + o.Permissions = v +} + func (o UserRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -80,6 +417,34 @@ func (o UserRequest) MarshalJSON() ([]byte, error) { func (o UserRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -94,6 +459,7 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "username", + "password", } allProperties := make(map[string]interface{}) @@ -124,6 +490,16 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index c23f982763..1e7fdc2078 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VirtualChassis type satisfies the MappedNullable interface at compile time @@ -20,13 +21,21 @@ var _ MappedNullable = &VirtualChassis{} // VirtualChassis Adds support for custom fields and tags. type VirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + MemberCount int32 `json:"member_count"` + Members []NestedDevice `json:"members"` AdditionalProperties map[string]interface{} } @@ -36,13 +45,17 @@ type _VirtualChassis VirtualChassis // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32) *VirtualChassis { +func NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated this.MemberCount = memberCount + this.Members = members return &this } @@ -102,6 +115,30 @@ func (o *VirtualChassis) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualChassis) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualChassis) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualChassis) GetDisplay() string { if o == nil { @@ -150,6 +187,38 @@ func (o *VirtualChassis) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassis) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassis) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassis) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassis) GetMaster() NestedDevice { if o == nil || IsNil(o.Master.Get()) { @@ -225,6 +294,154 @@ func (o *VirtualChassis) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassis) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassis) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassis) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassis) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassis) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VirtualChassis) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassis) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassis) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassis) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VirtualChassis) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VirtualChassis) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetMemberCount returns the MemberCount field value func (o *VirtualChassis) GetMemberCount() int32 { if o == nil { @@ -249,6 +466,30 @@ func (o *VirtualChassis) SetMemberCount(v int32) { o.MemberCount = v } +// GetMembers returns the Members field value +func (o *VirtualChassis) GetMembers() []NestedDevice { + if o == nil { + var ret []NestedDevice + return ret + } + + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetMembersOk() ([]NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Members, true +} + +// SetMembers sets field value +func (o *VirtualChassis) SetMembers(v []NestedDevice) { + o.Members = v +} + func (o VirtualChassis) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -261,15 +502,31 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["member_count"] = o.MemberCount + toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -285,9 +542,13 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", "member_count", + "members", } allProperties := make(map[string]interface{}) @@ -319,11 +580,19 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "member_count") + delete(additionalProperties, "members") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go index 12a6c68c63..6081a59f43 100644 --- a/model_virtual_chassis_request.go +++ b/model_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,12 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { Name string `json:"name"` + Domain *string `json:"domain,omitempty"` Master NullableNestedDeviceRequest `json:"master,omitempty"` Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +74,38 @@ func (o *VirtualChassisRequest) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassisRequest) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest { if o == nil || IsNil(o.Master.Get()) { @@ -145,6 +181,102 @@ func (o *VirtualChassisRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassisRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -156,12 +288,24 @@ func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -206,8 +350,12 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index 8e7c0ec50b..af0753f589 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,15 @@ var _ MappedNullable = &VirtualDeviceContext{} type VirtualDeviceContext struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + 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"` @@ -48,10 +49,11 @@ type _VirtualDeviceContext VirtualDeviceContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Device = device @@ -119,6 +121,30 @@ func (o *VirtualDeviceContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualDeviceContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualDeviceContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualDeviceContext) GetDisplay() string { if o == nil { @@ -168,9 +194,9 @@ func (o *VirtualDeviceContext) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContext) GetDevice() Device { +func (o *VirtualDeviceContext) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -179,7 +205,7 @@ func (o *VirtualDeviceContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -187,7 +213,7 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContext) SetDevice(v Device) { +func (o *VirtualDeviceContext) SetDevice(v BriefDevice) { o.Device = v } @@ -235,9 +261,9 @@ func (o *VirtualDeviceContext) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetTenant() Tenant { +func (o *VirtualDeviceContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -246,7 +272,7 @@ func (o *VirtualDeviceContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -262,8 +288,8 @@ func (o *VirtualDeviceContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualDeviceContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualDeviceContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -278,10 +304,10 @@ func (o *VirtualDeviceContext) UnsetTenant() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -291,7 +317,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -299,14 +325,14 @@ func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -315,7 +341,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -331,8 +357,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -347,9 +373,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -358,7 +384,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -374,8 +400,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -629,6 +655,7 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device @@ -676,6 +703,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "device", @@ -715,6 +743,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device") diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go index 64ba644f61..2fc47c5e68 100644 --- a/model_virtual_device_context_request.go +++ b/model_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,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"` @@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { +func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { this := VirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *VirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,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() TenantRequest { +func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,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() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go index 121a4f6ab1..d1d4584912 100644 --- a/model_virtual_device_context_status.go +++ b/model_virtual_device_context_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go index 01cf885efd..b04de0f7e3 100644 --- a/model_virtual_device_context_status_label.go +++ b/model_virtual_device_context_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_disk.go b/model_virtual_disk.go index 581eae9f10..79539c2ca5 100644 --- a/model_virtual_disk.go +++ b/model_virtual_disk.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &VirtualDisk{} type VirtualDisk struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` Name string `json:"name"` Description *string `json:"description,omitempty"` Size int32 `json:"size"` @@ -41,10 +42,11 @@ type _VirtualDisk VirtualDisk // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { +func NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { this := VirtualDisk{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -110,6 +112,30 @@ func (o *VirtualDisk) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualDisk) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualDisk) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualDisk) GetDisplay() string { if o == nil { @@ -135,9 +161,9 @@ func (o *VirtualDisk) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { +func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -146,7 +172,7 @@ func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -154,7 +180,7 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) { +func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -366,6 +392,7 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -396,6 +423,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -433,6 +461,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go index 1403ba9b13..9a819b331c 100644 --- a/model_virtual_disk_request.go +++ b/model_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{} // VirtualDiskRequest Adds support for custom fields and tags. type VirtualDiskRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32) *VirtualDiskRequest { +func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest { this := VirtualDiskRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index b51baaf129..0362a6c12a 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,28 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{} // VirtualMachineWithConfigContext Adds support for custom fields and tags. type VirtualMachineWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Status *VirtualMachineWithConfigContextStatus `json:"status,omitempty"` - Site NullableSite `json:"site,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - Device NullableDevice `json:"device,omitempty"` - Role NullableDeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Status *ModuleStatus `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"` + 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"` @@ -59,10 +61,11 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PrimaryIp = primaryIp @@ -130,6 +133,30 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualMachineWithConfigContext) GetDisplay() string { if o == nil { @@ -179,9 +206,9 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus { +func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus { if o == nil || IsNil(o.Status) { - var ret VirtualMachineWithConfigContextStatus + var ret ModuleStatus return ret } return *o.Status @@ -189,7 +216,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigCo // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) { +func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -205,15 +232,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool { return false } -// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) { +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetSite() Site { +func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -222,7 +249,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -238,8 +265,8 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *VirtualMachineWithConfigContext) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -254,9 +281,9 @@ func (o *VirtualMachineWithConfigContext) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { +func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -265,7 +292,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -281,8 +308,8 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -297,9 +324,9 @@ func (o *VirtualMachineWithConfigContext) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetDevice() Device { +func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -308,7 +335,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -324,8 +351,8 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *VirtualMachineWithConfigContext) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -339,10 +366,42 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContext) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { +func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role.Get() @@ -351,7 +410,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -367,8 +426,8 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field. -func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) { +// SetRole gets a reference to the given NullableBriefDeviceRole and assigns it to the Role field. +func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) { o.Role.Set(&v) } @@ -383,9 +442,9 @@ func (o *VirtualMachineWithConfigContext) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { +func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -394,7 +453,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -410,8 +469,8 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -426,9 +485,9 @@ func (o *VirtualMachineWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { +func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -437,7 +496,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -453,8 +512,8 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -469,10 +528,10 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -482,7 +541,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -490,14 +549,14 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -506,7 +565,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -522,8 +581,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -538,9 +597,9 @@ func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -549,7 +608,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -565,8 +624,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -774,9 +833,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -785,7 +844,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -801,8 +860,8 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1051,6 +1110,7 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { @@ -1065,6 +1125,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -1130,6 +1193,7 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "primary_ip", @@ -1169,12 +1233,14 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "status") delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go index 7795d684aa..5070409e97 100644 --- a/model_virtual_machine_with_config_context_request.go +++ b/model_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} // VirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type VirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -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() DeviceRequest { +func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,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() TenantRequest { +func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,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() PlatformRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,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() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,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() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,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() ConfigTemplateRequest { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_vlan.go b/model_vlan.go index 434660f55d..9975ac100e 100644 --- a/model_vlan.go +++ b/model_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VLAN type satisfies the MappedNullable interface at compile time @@ -20,13 +21,26 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site NullableBriefSite `json:"site,omitempty"` + Group NullableBriefVLANGroup `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount int64 `json:"prefix_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +50,18 @@ type _VLAN VLAN // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVLAN(id int32, url string, display string, vid int32, name string) *VLAN { +func NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, prefixCount int64) *VLAN { this := VLAN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Vid = vid this.Name = name + this.L2vpnTermination = l2vpnTermination + this.Created = created + this.LastUpdated = lastUpdated + this.PrefixCount = prefixCount return &this } @@ -102,6 +121,30 @@ func (o *VLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VLAN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VLAN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VLAN) GetDisplay() string { if o == nil { @@ -126,6 +169,92 @@ func (o *VLAN) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLAN) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VLAN) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLAN) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLAN) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetGroup() BriefVLANGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLAN) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. +func (o *VLAN) SetGroup(v BriefVLANGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLAN) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLAN) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLAN) GetVid() int32 { if o == nil { @@ -174,6 +303,124 @@ func (o *VLAN) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLAN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VLAN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLAN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLAN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLAN) GetStatus() IPRangeStatus { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLAN) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatus and assigns it to the Status field. +func (o *VLAN) SetStatus(v IPRangeStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetRole() BriefRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetRoleOk() (*BriefRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLAN) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *VLAN) SetRole(v BriefRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLAN) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLAN) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +453,204 @@ func (o *VLAN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLAN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLAN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLAN) SetComments(v string) { + o.Comments = &v +} + +// GetL2vpnTermination returns the L2vpnTermination field value +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || o.L2vpnTermination.Get() == nil { + var ret BriefL2VPNTermination + return ret + } + + return *o.L2vpnTermination.Get() +} + +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { + if o == nil { + return nil, false + } + return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() +} + +// SetL2vpnTermination sets field value +func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) { + o.L2vpnTermination.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLAN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLAN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VLAN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLAN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLAN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLAN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VLAN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VLAN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetPrefixCount returns the PrefixCount field value +func (o *VLAN) GetPrefixCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value +// and a boolean to check if the value has been set. +func (o *VLAN) GetPrefixCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PrefixCount, true +} + +// SetPrefixCount sets field value +func (o *VLAN) SetPrefixCount(v int64) { + o.PrefixCount = v +} + func (o VLAN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +663,41 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["prefix_count"] = o.PrefixCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +713,14 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "vid", "name", + "l2vpn_termination", + "created", + "last_updated", + "prefix_count", } allProperties := make(map[string]interface{}) @@ -273,10 +752,23 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "l2vpn_termination") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vlan_group.go b/model_vlan_group.go index 4ec3a49910..ad4e70ab79 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,15 @@ var _ MappedNullable = &VLANGroup{} // VLANGroup Adds support for custom fields and tags. type VLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope interface{} `json:"scope"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -49,10 +46,11 @@ type _VLANGroup VLANGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { +func NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { this := VLANGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -120,6 +118,30 @@ func (o *VLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VLANGroup) GetDisplay() string { if o == nil { @@ -304,70 +326,6 @@ func (o *VLANGroup) SetScope(v interface{}) { o.Scope = v } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroup) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroup) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -576,6 +534,7 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -588,12 +547,6 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if o.Scope != nil { toSerialize["scope"] = o.Scope } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -622,6 +575,7 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -661,14 +615,13 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") delete(additionalProperties, "scope") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go index fb2c9e458a..6971b73e84 100644 --- a/model_vlan_group_request.go +++ b/model_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,10 @@ var _ MappedNullable = &VLANGroupRequest{} // VLANGroupRequest Adds support for custom fields and tags. type VLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + 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"` @@ -189,70 +185,6 @@ func (o *VLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -367,12 +299,6 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -430,8 +356,6 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_request.go b/model_vlan_request.go index af65d4166c..947a6cfaec 100644 --- a/model_vlan_request.go +++ b/model_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,18 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,6 +56,92 @@ func NewVLANRequestWithDefaults() *VLANRequest { return &this } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLANRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VLANRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLANRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLANRequest) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetGroup() BriefVLANGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLANRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLANRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLANRequest) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLANRequest) GetVid() int32 { if o == nil { @@ -96,6 +190,124 @@ func (o *VLANRequest) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLANRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VLANRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLANRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLANRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLANRequest) GetStatus() IPRangeStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLANRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field. +func (o *VLANRequest) SetStatus(v IPRangeStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetRole() BriefRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLANRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *VLANRequest) SetRole(v BriefRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLANRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLANRequest) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +340,102 @@ func (o *VLANRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLANRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLANRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLANRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLANRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLANRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VLANRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLANRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLANRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLANRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VLANRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,11 +446,35 @@ func (o VLANRequest) MarshalJSON() ([]byte, error) { func (o VLANRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,9 +519,17 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_vm_interface.go b/model_vm_interface.go index ebe068fef1..37fcef23e3 100644 --- a/model_vm_interface.go +++ b/model_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,29 @@ var _ MappedNullable = &VMInterface{} // VMInterface Adds support for custom fields and tags. type VMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterface `json:"parent,omitempty"` - Bridge NullableNestedVMInterface `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -52,10 +53,11 @@ type _VMInterface VMInterface // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { +func NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { this := VMInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -123,6 +125,30 @@ func (o *VMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VMInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VMInterface) GetDisplay() string { if o == nil { @@ -148,9 +174,9 @@ func (o *VMInterface) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterface) GetVirtualMachine() VirtualMachine { +func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -159,7 +185,7 @@ func (o *VMInterface) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -167,7 +193,7 @@ func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VMInterface) SetVirtualMachine(v VirtualMachine) { +func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -464,9 +490,9 @@ func (o *VMInterface) SetMode(v InterfaceMode) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetUntaggedVlan() VLAN { +func (o *VMInterface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -475,7 +501,7 @@ func (o *VMInterface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -491,8 +517,8 @@ func (o *VMInterface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *VMInterface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -539,9 +565,9 @@ func (o *VMInterface) SetTaggedVlans(v []VLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetVrf() VRF { +func (o *VMInterface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -550,7 +576,7 @@ func (o *VMInterface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetVrfOk() (*VRF, bool) { +func (o *VMInterface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -566,8 +592,8 @@ func (o *VMInterface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *VMInterface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *VMInterface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -582,10 +608,10 @@ func (o *VMInterface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -595,7 +621,7 @@ func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -603,7 +629,7 @@ func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) { +func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } @@ -783,6 +809,7 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -842,6 +869,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -881,6 +909,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go index 17f56f8698..43993f9bf7 100644 --- a/model_vm_interface_request.go +++ b/model_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type VMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *InterfaceModeValue `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _VMInterfaceRequest VMInterfaceRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest { +func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest { this := VMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetVrf() VRFRequest { +func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *VMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *VMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *VMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_vrf.go b/model_vrf.go index 6f16484c97..6f951762b0 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VRF type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &VRF{} // VRF Adds support for custom fields and tags. type VRF struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` + 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"` + LastUpdated NullableTime `json:"last_updated"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount int64 `json:"prefix_count"` AdditionalProperties map[string]interface{} } @@ -37,12 +50,16 @@ type _VRF VRF // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVRF(id int32, url string, display string, name string, prefixCount int64) *VRF { +func NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64, prefixCount int64) *VRF { this := VRF{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated + this.IpaddressCount = ipaddressCount this.PrefixCount = prefixCount return &this } @@ -103,6 +120,30 @@ func (o *VRF) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VRF) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VRF) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VRF) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VRF) GetDisplay() string { if o == nil { @@ -194,6 +235,81 @@ func (o *VRF) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRF) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VRF) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRF) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRF) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRF) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRF) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRF) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRF) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -226,6 +342,242 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRF) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRF) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRF) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRF) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRF) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *VRF) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRF) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRF) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *VRF) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRF) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRF) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VRF) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRF) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRF) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRF) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VRF) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VRF) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *VRF) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *VRF) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *VRF) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + // GetPrefixCount returns the PrefixCount field value func (o *VRF) GetPrefixCount() int64 { if o == nil { @@ -262,14 +614,39 @@ func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ipaddress_count"] = o.IpaddressCount toSerialize["prefix_count"] = o.PrefixCount for key, value := range o.AdditionalProperties { @@ -286,8 +663,12 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", + "ipaddress_count", "prefix_count", } @@ -320,10 +701,21 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ipaddress_count") delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vrf_request.go b/model_vrf_request.go index 16ae86557b..d6afc35a6b 100644 --- a/model_vrf_request.go +++ b/model_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,8 +22,16 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Prevent duplicate prefixes/IP addresses within this VRF + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,6 +122,81 @@ func (o *VRFRequest) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRFRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRFRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VRFRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRFRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRFRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRFRequest) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRFRequest) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRFRequest) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRFRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -146,6 +229,166 @@ func (o *VRFRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRFRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRFRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRFRequest) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *VRFRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *VRFRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRFRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRFRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VRFRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRFRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRFRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRFRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VRFRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -160,9 +403,30 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -208,7 +472,14 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_webhook.go b/model_webhook.go index 598066292e..326371c877 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Webhook{} type Webhook struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -54,10 +55,11 @@ type _Webhook Webhook // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { +func NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { this := Webhook{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PayloadUrl = payloadUrl @@ -122,6 +124,30 @@ func (o *Webhook) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Webhook) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Webhook) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Webhook) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Webhook) GetDisplay() string { if o == nil { @@ -589,6 +615,7 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -639,6 +666,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "payload_url", @@ -675,6 +703,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_webhook_request.go b/model_webhook_request.go index 09152c9ce7..d8b2207e7d 100644 --- a/model_webhook_request.go +++ b/model_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_channel.go b/model_wireless_channel.go index 0950f88f11..4fd59e0893 100644 --- a/model_wireless_channel.go +++ b/model_wireless_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan.go b/model_wireless_lan.go index 4825664b88..752d00f26e 100644 --- a/model_wireless_lan.go +++ b/model_wireless_lan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,24 @@ var _ MappedNullable = &WirelessLAN{} // WirelessLAN Adds support for custom fields and tags. type WirelessLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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"` + 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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -47,10 +48,11 @@ type _WirelessLAN WirelessLAN // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { +func NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { this := WirelessLAN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Ssid = ssid this.Created = created @@ -114,6 +116,30 @@ func (o *WirelessLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLAN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLAN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLAN) GetDisplay() string { if o == nil { @@ -195,9 +221,9 @@ func (o *WirelessLAN) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetGroup() WirelessLANGroup { +func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroup + var ret BriefWirelessLANGroup return ret } return *o.Group.Get() @@ -206,7 +232,7 @@ func (o *WirelessLAN) GetGroup() WirelessLANGroup { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) { +func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool) { if o == nil { return nil, false } @@ -222,8 +248,8 @@ func (o *WirelessLAN) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field. -func (o *WirelessLAN) SetGroup(v WirelessLANGroup) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroup and assigns it to the Group field. +func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) { o.Group.Set(&v) } @@ -270,9 +296,9 @@ func (o *WirelessLAN) SetStatus(v WirelessLANStatus) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetVlan() VLAN { +func (o *WirelessLAN) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -281,7 +307,7 @@ func (o *WirelessLAN) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetVlanOk() (*VLAN, bool) { +func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -297,8 +323,8 @@ func (o *WirelessLAN) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *WirelessLAN) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *WirelessLAN) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -313,9 +339,9 @@ func (o *WirelessLAN) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetTenant() Tenant { +func (o *WirelessLAN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -324,7 +350,7 @@ func (o *WirelessLAN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -340,8 +366,8 @@ func (o *WirelessLAN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLAN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLAN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -611,6 +637,7 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { @@ -663,6 +690,7 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "ssid", "created", @@ -698,6 +726,7 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") delete(additionalProperties, "description") diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go index 7edf6beb18..09395fd617 100644 --- a/model_wireless_lan_auth_cipher.go +++ b/model_wireless_lan_auth_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go index 212607db6f..2cdb9d1d07 100644 --- a/model_wireless_lan_auth_cipher_label.go +++ b/model_wireless_lan_auth_cipher_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go index e601548bda..b7e1591f9f 100644 --- a/model_wireless_lan_auth_cipher_value.go +++ b/model_wireless_lan_auth_cipher_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go index 5d67cd3175..e9cf5308a5 100644 --- a/model_wireless_lan_auth_type.go +++ b/model_wireless_lan_auth_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go index 3a804f5bc4..4527e03d8a 100644 --- a/model_wireless_lan_auth_type_label.go +++ b/model_wireless_lan_auth_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go index aa1b05122b..e2b5c5c7c6 100644 --- a/model_wireless_lan_auth_type_value.go +++ b/model_wireless_lan_auth_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index ca2ffb94fc..1d5ad82d64 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &WirelessLANGroup{} // WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,16 @@ type _WirelessLANGroup WirelessLANGroup // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this @@ -105,6 +115,30 @@ func (o *WirelessLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLANGroup) GetDisplay() string { if o == nil { @@ -177,6 +211,49 @@ func (o *WirelessLANGroup) SetSlug(v string) { o.Slug = v } +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedWirelessLANGroup + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Parent field. +func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *WirelessLANGroup) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WirelessLANGroup) UnsetParent() { + o.Parent.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +286,122 @@ func (o *WirelessLANGroup) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *WirelessLANGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *WirelessLANGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *WirelessLANGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetWirelesslanCount returns the WirelesslanCount field value func (o *WirelessLANGroup) GetWirelesslanCount() int32 { if o == nil { @@ -269,12 +462,24 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["wirelesslan_count"] = o.WirelesslanCount toSerialize["_depth"] = o.Depth @@ -292,9 +497,12 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "wirelesslan_count", "_depth", } @@ -328,10 +536,16 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "parent") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "wirelesslan_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go index 7063e6d878..cc14428438 100644 --- a/model_wireless_lan_group_request.go +++ b/model_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go index f2ac3edde1..0126c5a471 100644 --- a/model_wireless_lan_request.go +++ b/model_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *WirelessLANStatusValue `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *WirelessLANStatusValue `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *WirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetVlan() VLANRequest { +func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetTenant() TenantRequest { +func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go index 0b14b4e127..9c547609a0 100644 --- a/model_wireless_lan_status.go +++ b/model_wireless_lan_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go index 21057de6fb..78bae5b53d 100644 --- a/model_wireless_lan_status_label.go +++ b/model_wireless_lan_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go index ac9292d675..2490eda4fc 100644 --- a/model_wireless_lan_status_value.go +++ b/model_wireless_lan_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link.go b/model_wireless_link.go index 8626318ea7..7ace7f8378 100644 --- a/model_wireless_link.go +++ b/model_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,26 @@ var _ MappedNullable = &WirelessLink{} // WirelessLink Adds support for custom fields and tags. type WirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InterfaceA Interface `json:"interface_a"` - InterfaceB Interface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *WirelessLinkStatus `json:"status,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + 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 NullableWirelessLinkDistanceUnit `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"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -47,10 +50,11 @@ type _WirelessLink WirelessLink // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink { +func NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime) *WirelessLink { this := WirelessLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -115,6 +119,30 @@ func (o *WirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLink) GetDisplay() string { if o == nil { @@ -140,9 +168,9 @@ func (o *WirelessLink) SetDisplay(v string) { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLink) GetInterfaceA() Interface { +func (o *WirelessLink) GetInterfaceA() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -151,7 +179,7 @@ func (o *WirelessLink) GetInterfaceA() Interface { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -159,14 +187,14 @@ func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { } // SetInterfaceA sets field value -func (o *WirelessLink) SetInterfaceA(v Interface) { +func (o *WirelessLink) SetInterfaceA(v BriefInterface) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLink) GetInterfaceB() Interface { +func (o *WirelessLink) GetInterfaceB() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -175,7 +203,7 @@ func (o *WirelessLink) GetInterfaceB() Interface { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -183,7 +211,7 @@ func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { } // SetInterfaceB sets field value -func (o *WirelessLink) SetInterfaceB(v Interface) { +func (o *WirelessLink) SetInterfaceB(v BriefInterface) { o.InterfaceB = v } @@ -220,9 +248,9 @@ func (o *WirelessLink) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLink) GetStatus() WirelessLinkStatus { +func (o *WirelessLink) GetStatus() CableStatus { if o == nil || IsNil(o.Status) { - var ret WirelessLinkStatus + var ret CableStatus return ret } return *o.Status @@ -230,7 +258,7 @@ func (o *WirelessLink) GetStatus() WirelessLinkStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) { +func (o *WirelessLink) GetStatusOk() (*CableStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -246,15 +274,15 @@ func (o *WirelessLink) HasStatus() bool { return false } -// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field. -func (o *WirelessLink) SetStatus(v WirelessLinkStatus) { +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *WirelessLink) SetStatus(v CableStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetTenant() Tenant { +func (o *WirelessLink) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -263,7 +291,7 @@ func (o *WirelessLink) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -279,8 +307,8 @@ func (o *WirelessLink) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLink) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLink) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -390,6 +418,92 @@ func (o *WirelessLink) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLink) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLink) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLink) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLink) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLink) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLink) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLink) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLink) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -582,6 +696,7 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB @@ -603,6 +718,12 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -632,6 +753,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "interface_a", "interface_b", @@ -668,6 +790,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "interface_a") delete(additionalProperties, "interface_b") @@ -677,6 +800,8 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_distance_unit.go b/model_wireless_link_distance_unit.go new file mode 100644 index 0000000000..6591aa6aec --- /dev/null +++ b/model_wireless_link_distance_unit.go @@ -0,0 +1,190 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the WirelessLinkDistanceUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WirelessLinkDistanceUnit{} + +// WirelessLinkDistanceUnit struct for WirelessLinkDistanceUnit +type WirelessLinkDistanceUnit struct { + Value *PatchedWritableWirelessLinkRequestDistanceUnit `json:"value,omitempty"` + Label *WirelessLinkDistanceUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WirelessLinkDistanceUnit WirelessLinkDistanceUnit + +// NewWirelessLinkDistanceUnit instantiates a new WirelessLinkDistanceUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWirelessLinkDistanceUnit() *WirelessLinkDistanceUnit { + this := WirelessLinkDistanceUnit{} + return &this +} + +// NewWirelessLinkDistanceUnitWithDefaults instantiates a new WirelessLinkDistanceUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWirelessLinkDistanceUnitWithDefaults() *WirelessLinkDistanceUnit { + this := WirelessLinkDistanceUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *WirelessLinkDistanceUnit) GetValue() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + 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 *WirelessLinkDistanceUnit) GetValueOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, 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 *WirelessLinkDistanceUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the Value field. +func (o *WirelessLinkDistanceUnit) SetValue(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *WirelessLinkDistanceUnit) GetLabel() WirelessLinkDistanceUnitLabel { + if o == nil || IsNil(o.Label) { + var ret WirelessLinkDistanceUnitLabel + 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 *WirelessLinkDistanceUnit) GetLabelOk() (*WirelessLinkDistanceUnitLabel, 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 *WirelessLinkDistanceUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given WirelessLinkDistanceUnitLabel and assigns it to the Label field. +func (o *WirelessLinkDistanceUnit) SetLabel(v WirelessLinkDistanceUnitLabel) { + o.Label = &v +} + +func (o WirelessLinkDistanceUnit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WirelessLinkDistanceUnit) 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 *WirelessLinkDistanceUnit) UnmarshalJSON(data []byte) (err error) { + varWirelessLinkDistanceUnit := _WirelessLinkDistanceUnit{} + + err = json.Unmarshal(data, &varWirelessLinkDistanceUnit) + + if err != nil { + return err + } + + *o = WirelessLinkDistanceUnit(varWirelessLinkDistanceUnit) + + 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 NullableWirelessLinkDistanceUnit struct { + value *WirelessLinkDistanceUnit + isSet bool +} + +func (v NullableWirelessLinkDistanceUnit) Get() *WirelessLinkDistanceUnit { + return v.value +} + +func (v *NullableWirelessLinkDistanceUnit) Set(val *WirelessLinkDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkDistanceUnit(val *WirelessLinkDistanceUnit) *NullableWirelessLinkDistanceUnit { + return &NullableWirelessLinkDistanceUnit{value: val, isSet: true} +} + +func (v NullableWirelessLinkDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_wireless_link_distance_unit_label.go b/model_wireless_link_distance_unit_label.go new file mode 100644 index 0000000000..b475c01b00 --- /dev/null +++ b/model_wireless_link_distance_unit_label.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessLinkDistanceUnitLabel the model 'WirelessLinkDistanceUnitLabel' +type WirelessLinkDistanceUnitLabel string + +// List of WirelessLink_distance_unit_label +const ( + WIRELESSLINKDISTANCEUNITLABEL_KILOMETERS WirelessLinkDistanceUnitLabel = "Kilometers" + WIRELESSLINKDISTANCEUNITLABEL_METERS WirelessLinkDistanceUnitLabel = "Meters" + WIRELESSLINKDISTANCEUNITLABEL_MILES WirelessLinkDistanceUnitLabel = "Miles" + WIRELESSLINKDISTANCEUNITLABEL_FEET WirelessLinkDistanceUnitLabel = "Feet" +) + +// All allowed values of WirelessLinkDistanceUnitLabel enum +var AllowedWirelessLinkDistanceUnitLabelEnumValues = []WirelessLinkDistanceUnitLabel{ + "Kilometers", + "Meters", + "Miles", + "Feet", +} + +func (v *WirelessLinkDistanceUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessLinkDistanceUnitLabel(value) + for _, existing := range AllowedWirelessLinkDistanceUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessLinkDistanceUnitLabel", value) +} + +// NewWirelessLinkDistanceUnitLabelFromValue returns a pointer to a valid WirelessLinkDistanceUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessLinkDistanceUnitLabelFromValue(v string) (*WirelessLinkDistanceUnitLabel, error) { + ev := WirelessLinkDistanceUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessLinkDistanceUnitLabel: valid values are %v", v, AllowedWirelessLinkDistanceUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessLinkDistanceUnitLabel) IsValid() bool { + for _, existing := range AllowedWirelessLinkDistanceUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WirelessLink_distance_unit_label value +func (v WirelessLinkDistanceUnitLabel) Ptr() *WirelessLinkDistanceUnitLabel { + return &v +} + +type NullableWirelessLinkDistanceUnitLabel struct { + value *WirelessLinkDistanceUnitLabel + isSet bool +} + +func (v NullableWirelessLinkDistanceUnitLabel) Get() *WirelessLinkDistanceUnitLabel { + return v.value +} + +func (v *NullableWirelessLinkDistanceUnitLabel) Set(val *WirelessLinkDistanceUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkDistanceUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkDistanceUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkDistanceUnitLabel(val *WirelessLinkDistanceUnitLabel) *NullableWirelessLinkDistanceUnitLabel { + return &NullableWirelessLinkDistanceUnitLabel{value: val, isSet: true} +} + +func (v NullableWirelessLinkDistanceUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkDistanceUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go index ac8afc3867..1fbfd1646d 100644 --- a/model_wireless_link_request.go +++ b/model_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WirelessLinkRequest{} // WirelessLinkRequest Adds support for custom fields and tags. type WirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WirelessLinkRequest WirelessLinkRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest { +func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest { this := WirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { } // SetInterfaceA sets field value -func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { } // SetInterfaceB sets field value -func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetTenant() TenantRequest { +func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -307,6 +309,92 @@ func (o *WirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +553,12 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +623,8 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_request_distance_unit.go b/model_wireless_link_request_distance_unit.go new file mode 100644 index 0000000000..3f9a01da03 --- /dev/null +++ b/model_wireless_link_request_distance_unit.go @@ -0,0 +1,116 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessLinkRequestDistanceUnit * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type WirelessLinkRequestDistanceUnit string + +// List of WirelessLinkRequest_distance_unit +const ( + WIRELESSLINKREQUESTDISTANCEUNIT_KM WirelessLinkRequestDistanceUnit = "km" + WIRELESSLINKREQUESTDISTANCEUNIT_M WirelessLinkRequestDistanceUnit = "m" + WIRELESSLINKREQUESTDISTANCEUNIT_MI WirelessLinkRequestDistanceUnit = "mi" + WIRELESSLINKREQUESTDISTANCEUNIT_FT WirelessLinkRequestDistanceUnit = "ft" + WIRELESSLINKREQUESTDISTANCEUNIT_EMPTY WirelessLinkRequestDistanceUnit = "" +) + +// All allowed values of WirelessLinkRequestDistanceUnit enum +var AllowedWirelessLinkRequestDistanceUnitEnumValues = []WirelessLinkRequestDistanceUnit{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *WirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessLinkRequestDistanceUnit(value) + for _, existing := range AllowedWirelessLinkRequestDistanceUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessLinkRequestDistanceUnit", value) +} + +// NewWirelessLinkRequestDistanceUnitFromValue returns a pointer to a valid WirelessLinkRequestDistanceUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessLinkRequestDistanceUnitFromValue(v string) (*WirelessLinkRequestDistanceUnit, error) { + ev := WirelessLinkRequestDistanceUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessLinkRequestDistanceUnit: valid values are %v", v, AllowedWirelessLinkRequestDistanceUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessLinkRequestDistanceUnit) IsValid() bool { + for _, existing := range AllowedWirelessLinkRequestDistanceUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WirelessLinkRequest_distance_unit value +func (v WirelessLinkRequestDistanceUnit) Ptr() *WirelessLinkRequestDistanceUnit { + return &v +} + +type NullableWirelessLinkRequestDistanceUnit struct { + value *WirelessLinkRequestDistanceUnit + isSet bool +} + +func (v NullableWirelessLinkRequestDistanceUnit) Get() *WirelessLinkRequestDistanceUnit { + return v.value +} + +func (v *NullableWirelessLinkRequestDistanceUnit) Set(val *WirelessLinkRequestDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkRequestDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkRequestDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkRequestDistanceUnit(val *WirelessLinkRequestDistanceUnit) *NullableWirelessLinkRequestDistanceUnit { + return &NullableWirelessLinkRequestDistanceUnit{value: val, isSet: true} +} + +func (v NullableWirelessLinkRequestDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_wireless_role.go b/model_wireless_role.go index 8aa2042e34..5fd60fdb33 100644 --- a/model_wireless_role.go +++ b/model_wireless_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_wireless_links_list_distance_unit_parameter.go b/model_wireless_wireless_links_list_distance_unit_parameter.go new file mode 100644 index 0000000000..9181c220d3 --- /dev/null +++ b/model_wireless_wireless_links_list_distance_unit_parameter.go @@ -0,0 +1,114 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessWirelessLinksListDistanceUnitParameter the model 'WirelessWirelessLinksListDistanceUnitParameter' +type WirelessWirelessLinksListDistanceUnitParameter string + +// List of wireless_wireless_links_list_distance_unit_parameter +const ( + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_FT WirelessWirelessLinksListDistanceUnitParameter = "ft" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_KM WirelessWirelessLinksListDistanceUnitParameter = "km" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_M WirelessWirelessLinksListDistanceUnitParameter = "m" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_MI WirelessWirelessLinksListDistanceUnitParameter = "mi" +) + +// All allowed values of WirelessWirelessLinksListDistanceUnitParameter enum +var AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues = []WirelessWirelessLinksListDistanceUnitParameter{ + "ft", + "km", + "m", + "mi", +} + +func (v *WirelessWirelessLinksListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessWirelessLinksListDistanceUnitParameter(value) + for _, existing := range AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessWirelessLinksListDistanceUnitParameter", value) +} + +// NewWirelessWirelessLinksListDistanceUnitParameterFromValue returns a pointer to a valid WirelessWirelessLinksListDistanceUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessWirelessLinksListDistanceUnitParameterFromValue(v string) (*WirelessWirelessLinksListDistanceUnitParameter, error) { + ev := WirelessWirelessLinksListDistanceUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessWirelessLinksListDistanceUnitParameter: valid values are %v", v, AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessWirelessLinksListDistanceUnitParameter) IsValid() bool { + for _, existing := range AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to wireless_wireless_links_list_distance_unit_parameter value +func (v WirelessWirelessLinksListDistanceUnitParameter) Ptr() *WirelessWirelessLinksListDistanceUnitParameter { + return &v +} + +type NullableWirelessWirelessLinksListDistanceUnitParameter struct { + value *WirelessWirelessLinksListDistanceUnitParameter + isSet bool +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) Get() *WirelessWirelessLinksListDistanceUnitParameter { + return v.value +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) Set(val *WirelessWirelessLinksListDistanceUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessWirelessLinksListDistanceUnitParameter(val *WirelessWirelessLinksListDistanceUnitParameter) *NullableWirelessWirelessLinksListDistanceUnitParameter { + return &NullableWirelessWirelessLinksListDistanceUnitParameter{value: val, isSet: true} +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go index b16c5390bd..cd4d087f74 100644 --- a/model_writable_aggregate_request.go +++ b/model_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{} // WritableAggregateRequest Adds support for custom fields and tags. type WritableAggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest { +func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest { this := WritableAggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *WritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *WritableAggregateRequest) GetRir() RIRRequest { +func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *WritableAggregateRequest) SetRir(v RIRRequest) { +func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableAggregateRequest) GetTenant() TenantRequest { +func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *WritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go index 7d440df5e1..43d625ff82 100644 --- a/model_writable_cable_request.go +++ b/model_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `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"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *WritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *WritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *WritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCableRequest) GetTenant() TenantRequest { +func (o *WritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *WritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *WritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLength // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go new file mode 100644 index 0000000000..342c33163f --- /dev/null +++ b/model_writable_circuit_group_assignment_request.go @@ -0,0 +1,269 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableCircuitGroupAssignmentRequest{} + +// WritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type WritableCircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest + +// NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest) *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + this.Group = group + this.Circuit = circuit + return &this +} + +// NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *WritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil { + var ret BriefCircuitRequest + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *WritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WritableCircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o WritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "circuit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWritableCircuitGroupAssignmentRequest := _WritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = WritableCircuitGroupAssignmentRequest(varWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableCircuitGroupAssignmentRequest struct { + value *WritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableWritableCircuitGroupAssignmentRequest) Get() *WritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Set(val *WritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableCircuitGroupAssignmentRequest(val *WritableCircuitGroupAssignmentRequest) *NullableWritableCircuitGroupAssignmentRequest { + return &NullableWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go index 8b3bc60b27..8d5cd04ff7 100644 --- a/model_writable_circuit_request.go +++ b/model_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider ProviderRequest `json:"provider"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type CircuitTypeRequest `json:"type"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +45,7 @@ type _WritableCircuitRequest WritableCircuitRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest { +func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest { this := WritableCircuitRequest{} this.Cid = cid this.Provider = provider @@ -85,9 +86,9 @@ func (o *WritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value -func (o *WritableCircuitRequest) GetProvider() ProviderRequest { +func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil { - var ret ProviderRequest + var ret BriefProviderRequest return ret } @@ -96,7 +97,7 @@ func (o *WritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil { return nil, false } @@ -104,14 +105,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { } // SetProvider sets field value -func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) { +func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -120,7 +121,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -136,8 +137,8 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -152,9 +153,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value -func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } @@ -163,7 +164,7 @@ func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil { return nil, false } @@ -171,14 +172,14 @@ func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { } // SetType sets field value -func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) { +func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -186,7 +187,7 @@ func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -202,15 +203,15 @@ func (o *WritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetTenant() TenantRequest { +func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -219,7 +220,7 @@ func (o *WritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -235,8 +236,8 @@ func (o *WritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -507,6 +508,38 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -550,6 +583,9 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -608,6 +644,7 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index 25402473ef..efd1888745 100644 --- a/model_writable_cluster_request.go +++ b/model_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type ClusterTypeRequest `json:"type"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _WritableClusterRequest WritableClusterRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest { +func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest { this := WritableClusterRequest{} this.Name = name this.Type = type_ @@ -79,9 +79,9 @@ func (o *WritableClusterRequest) SetName(v string) { } // GetType returns the Type field value -func (o *WritableClusterRequest) GetType() ClusterTypeRequest { +func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } @@ -90,7 +90,7 @@ func (o *WritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil { return nil, false } @@ -98,14 +98,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { } // SetType sets field value -func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) { +func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -114,7 +114,7 @@ func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -130,8 +130,8 @@ func (o *WritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -172,15 +172,15 @@ func (o *WritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetTenant() TenantRequest { +func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -189,7 +189,7 @@ func (o *WritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *WritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -221,9 +221,9 @@ func (o *WritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetSite() SiteRequest { +func (o *WritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -232,7 +232,7 @@ func (o *WritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -248,8 +248,8 @@ func (o *WritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go index 60b31d0af0..b71ff3cf4f 100644 --- a/model_writable_console_port_request.go +++ b/model_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableConsolePortRequest(device DeviceRequest, name string) *WritableConsolePortRequest { +func NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest { this := WritableConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest { } // GetDevice returns the Device field value -func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortRequest) GetModule() ModuleRequest { +func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go index afe73d3de3..002f475ec6 100644 --- a/model_writable_console_port_template_request.go +++ b/model_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} // WritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go index 8f1c21baaf..a8696612a4 100644 --- a/model_writable_console_server_port_request.go +++ b/model_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableConsoleServerPortRequest(device DeviceRequest, name string) *WritableConsoleServerPortRequest { +func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest { this := WritableConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor } // GetDevice returns the Device field value -func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) } // SetDevice sets field value -func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go index 74ef741d93..85f79e7ea7 100644 --- a/model_writable_console_server_port_template_request.go +++ b/model_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} // WritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeReq // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeReq // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go index 39fc360da0..8a6345e79f 100644 --- a/model_writable_contact_assignment_request.go +++ b/model_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *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 _WritableContactAssignmentRequest WritableContactAssignmentRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest { +func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest { this := WritableContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool } // SetContact sets field value -func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *WritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *WritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriori // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go index 18c9c5d250..977ad23bd9 100644 --- a/model_writable_contact_group_request.go +++ b/model_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go index 204ccffd13..598c2535b1 100644 --- a/model_writable_custom_field_choice_set_request.go +++ b/model_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go index 5429f4cc5a..99c206350b 100644 --- a/model_writable_custom_field_request.go +++ b/model_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type WritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type WritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type WritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -326,6 +330,38 @@ func (o *WritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *WritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *WritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -519,6 +555,39 @@ func (o *WritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -670,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() CustomFieldChoiceSetRequest { +func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -681,7 +750,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -697,8 +766,8 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -774,6 +843,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -792,6 +864,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -862,12 +937,14 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go index d661bb97cf..e358fcfe57 100644 --- a/model_writable_data_source_request.go +++ b/model_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,10 +25,10 @@ type WritableDataSourceRequest struct { SourceUrl string `json:"source_url"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -191,38 +191,6 @@ func (o *WritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *WritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *WritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *WritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go index 4275e29a1c..7027cda6ec 100644 --- a/model_writable_device_type_request.go +++ b/model_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { +func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { this := WritableDeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,14 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -107,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -123,8 +123,8 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -422,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -432,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -448,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go index ee7fcd1a6b..0f83791c98 100644 --- a/model_writable_device_with_config_context_request.go +++ b/model_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face RackFace1 `json:"face"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face RackFace1 `json:"face"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -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 DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -125,9 +125,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -136,7 +136,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -144,14 +144,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeR } // SetDeviceType sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -160,7 +160,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -168,14 +168,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest } // SetRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -200,8 +200,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -216,9 +216,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -227,7 +227,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -243,8 +243,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -334,9 +334,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -345,7 +345,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -353,14 +353,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool } // SetSite sets field value -func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -369,7 +369,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -385,8 +385,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -401,9 +401,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -412,7 +412,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -428,8 +428,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -661,9 +661,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -672,7 +672,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -688,8 +688,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -704,9 +704,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -715,7 +715,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -731,8 +731,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -747,9 +747,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -758,7 +758,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -774,8 +774,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -790,9 +790,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -801,7 +801,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -817,8 +817,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -833,9 +833,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -844,7 +844,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChas // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -860,8 +860,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1026,9 +1026,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1037,7 +1037,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1053,8 +1053,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go index 266bff6f0b..d35aaea830 100644 --- a/model_writable_event_rule_request.go +++ b/model_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &WritableEventRuleRequest{} type WritableEventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + 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"` @@ -50,10 +42,11 @@ type _WritableEventRuleRequest WritableEventRuleRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest { +func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string) *WritableEventRuleRequest { this := WritableEventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionObjectType = actionObjectType return &this } @@ -114,166 +107,6 @@ func (o *WritableEventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *WritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *WritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableEventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -306,6 +139,30 @@ func (o *WritableEventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetConditions() interface{} { if o == nil { @@ -546,24 +403,10 @@ func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -598,6 +441,7 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_object_type", } @@ -630,12 +474,8 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go index a8fb95366d..cb291dc070 100644 --- a/model_writable_front_port_request.go +++ b/model_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -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 DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { +func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { this := WritableFrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest { } // GetDevice returns the Device field value -func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortRequest) GetModule() ModuleRequest { +func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *WritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *WritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go index 135e41ea93..ddcc416c9d 100644 --- a/model_writable_front_port_template_request.go +++ b/model_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} // WritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `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 RearPortTemplateRequest) *WritableFrontPortTemplateRequest { +func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,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() DeviceTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateReq } // SetRearPort sets field value -func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go index d734a972df..6fd5f476ee 100644 --- a/model_writable_ike_policy_request.go +++ b/model_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go index 1783b8e238..4f4e0d9ed5 100644 --- a/model_writable_ike_proposal_request.go +++ b/model_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 0cefa53d8c..35ee2bee85 100644 --- a/model_writable_interface_request.go +++ b/model_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type WritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { +func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { this := WritableInterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest { } // GetDevice returns the Device field value -func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) { +func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetModule() ModuleRequest { +func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *WritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *WritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *WritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *WritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go index a0d61207ca..65857c07e5 100644 --- a/model_writable_interface_template_request.go +++ b/model_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} // WritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go index 05fae1d609..4129889722 100644 --- a/model_writable_ip_address_request.go +++ b/model_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { Address string `json:"address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -83,9 +83,9 @@ func (o *WritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetVrf() VRFRequest { +func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -94,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetTenant() TenantRequest { +func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go index c93135b4cb..5345772df2 100644 --- a/model_writable_ip_range_request.go +++ b/model_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableIPRangeRequest{} type WritableIPRangeRequest struct { StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -105,9 +105,9 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetVrf() VRFRequest { +func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *WritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *WritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetTenant() TenantRequest { +func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetRole() RoleRequest { +func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *WritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go index d6599e6732..bfc816aa80 100644 --- a/model_writable_ip_sec_policy_request.go +++ b/model_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go index 0f60eeb674..eabd409f55 100644 --- a/model_writable_ip_sec_profile_request.go +++ b/model_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{} // WritableIPSecProfileRequest Adds support for custom fields and tags. type WritableIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest { +func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest { this := WritableIPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) } // SetIkePolicy sets field value -func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, b } // SetIpsecPolicy sets field value -func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go index f04acc1ab2..ab3da503ea 100644 --- a/model_writable_ip_sec_proposal_request.go +++ b/model_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go index ab1c91cc27..47b3a478ce 100644 --- a/model_writable_journal_entry_request.go +++ b/model_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go index 64af85b8da..f55bd69f0c 100644 --- a/model_writable_l2_vpn_request.go +++ b/model_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableL2VPNRequest{} // WritableL2VPNRequest Adds support for custom fields and tags. type WritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type L2VPNTypeValue `json:"type"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type BriefL2VPNTypeValue `json:"type"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest { +func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue) *WritableL2VPNRequest { this := WritableL2VPNRequest{} this.Name = name this.Slug = slug @@ -148,9 +148,9 @@ func (o *WritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value -func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } @@ -159,7 +159,7 @@ func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil { return nil, false } @@ -167,7 +167,7 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { } // SetType sets field value -func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) { +func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = v } @@ -300,9 +300,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableL2VPNRequest) GetTenant() TenantRequest { +func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -311,7 +311,7 @@ func (o *WritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -327,8 +327,8 @@ func (o *WritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_location_request.go b/model_writable_location_request.go index 4ee75bbce5..a622037948 100644 --- a/model_writable_location_request.go +++ b/model_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site SiteRequest `json:"site"` - Parent NullableInt32 `json:"parent"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableInt32 `json:"parent"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,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 SiteRequest, parent NullableInt32) *WritableLocationRequest { +func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32) *WritableLocationRequest { this := WritableLocationRequest{} this.Name = name this.Slug = slug @@ -106,9 +106,9 @@ func (o *WritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value -func (o *WritableLocationRequest) GetSite() SiteRequest { +func (o *WritableLocationRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -117,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -125,7 +125,7 @@ func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableLocationRequest) SetSite(v SiteRequest) { +func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = v } @@ -156,9 +156,9 @@ func (o *WritableLocationRequest) SetParent(v int32) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -166,7 +166,7 @@ func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStat // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -182,15 +182,15 @@ func (o *WritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableLocationRequest) GetTenant() TenantRequest { +func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -199,7 +199,7 @@ func (o *WritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *WritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_module_request.go b/model_writable_module_request.go index 83271a51ea..2302536250 100644 --- a/model_writable_module_request.go +++ b/model_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay int32 `json:"module_bay"` - ModuleType ModuleTypeRequest `json:"module_type"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device BriefDeviceRequest `json:"device"` + ModuleBay int32 `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *WritableModuleRequest { +func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest { this := WritableModuleRequest{} this.Device = device this.ModuleBay = moduleBay @@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest { } // GetDevice returns the Device field value -func (o *WritableModuleRequest) GetDevice() DeviceRequest { +func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,7 +76,7 @@ func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableModuleRequest) SetDevice(v DeviceRequest) { +func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -105,9 +105,9 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value -func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } @@ -116,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,14 +124,14 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { } // SetModuleType sets field value -func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,8 +155,8 @@ func (o *WritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go index a321613feb..9c89e63987 100644 --- a/model_writable_module_type_request.go +++ b/model_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +40,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest { +func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest { this := WritableModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -55,9 +56,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -66,7 +67,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -74,7 +75,7 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -134,6 +135,38 @@ func (o *WritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -178,9 +211,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -188,7 +221,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -204,8 +237,8 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -352,6 +385,9 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -417,6 +453,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go index 3a6fcef64d..004f7fec3e 100644 --- a/model_writable_power_feed_request.go +++ b/model_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type WritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string) *WritablePowerFeedRequest { +func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest { this := WritablePowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) } // SetPowerPanel sets field value -func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetRack() RackRequest { +func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *WritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *WritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go index 024131d9b7..fec01de84a 100644 --- a/model_writable_power_outlet_request.go +++ b/model_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest { +func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest { this := WritablePowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest { } // GetDevice returns the Device field value -func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *WritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -213,9 +213,9 @@ func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequest } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -224,7 +224,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -240,8 +240,8 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go index d74116d275..b2f94c639e 100644 --- a/model_writable_power_outlet_template_request.go +++ b/model_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} // WritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -228,9 +228,9 @@ func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutle } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -239,7 +239,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateReq // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -255,8 +255,8 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go index 1634269d89..446abcb34c 100644 --- a/model_writable_power_port_request.go +++ b/model_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritablePowerPortRequest(device DeviceRequest, name string) *WritablePowerPortRequest { +func NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest { this := WritablePowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest { } // GetDevice returns the Device field value -func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortRequest) GetModule() ModuleRequest { +func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go index 0f35c5336a..073b958dd5 100644 --- a/model_writable_power_port_template_request.go +++ b/model_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} // WritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go index 2b7bd6bba7..11445a0aa9 100644 --- a/model_writable_prefix_request.go +++ b/model_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *WritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetSite() SiteRequest { +func (o *WritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *WritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVrf() VRFRequest { +func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *WritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *WritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetTenant() TenantRequest { +func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *WritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *WritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *WritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVlan() VLANRequest { +func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *WritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *WritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetRole() RoleRequest { +func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *WritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *WritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go index fd0dcb9245..f8f7996e43 100644 --- a/model_writable_rack_request.go +++ b/model_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,24 +22,25 @@ var _ MappedNullable = &WritableRackRequest{} type WritableRackRequest struct { Name string `json:"name"` FacilityId NullableString `json:"facility_id,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -48,11 +49,12 @@ type WritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - 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 *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -62,7 +64,7 @@ type _WritableRackRequest WritableRackRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest { +func NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest { this := WritableRackRequest{} this.Name = name this.Site = site @@ -145,9 +147,9 @@ func (o *WritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value -func (o *WritableRackRequest) GetSite() SiteRequest { +func (o *WritableRackRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -156,7 +158,7 @@ func (o *WritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -164,14 +166,14 @@ func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableRackRequest) SetSite(v SiteRequest) { +func (o *WritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetLocation() LocationRequest { +func (o *WritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -180,7 +182,7 @@ func (o *WritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -212,9 +214,9 @@ func (o *WritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetTenant() TenantRequest { +func (o *WritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -223,7 +225,7 @@ func (o *WritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -239,8 +241,8 @@ func (o *WritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -287,9 +289,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRole() RackRoleRequest { +func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -298,7 +300,7 @@ func (o *WritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +316,8 @@ func (o *WritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *WritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -404,36 +406,79 @@ func (o *WritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *WritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *WritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *WritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *WritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *WritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -619,9 +664,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -629,7 +674,7 @@ func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -645,8 +690,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -843,6 +888,38 @@ func (o *WritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1004,8 +1081,11 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1040,6 +1120,9 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1105,7 +1188,8 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1117,6 +1201,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go new file mode 100644 index 0000000000..0ad5819839 --- /dev/null +++ b/model_writable_rack_type_request.go @@ -0,0 +1,870 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableRackTypeRequest{} + +// WritableRackTypeRequest Adds support for custom fields and tags. +type WritableRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableRackTypeRequest WritableRackTypeRequest + +// NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor) *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.FormFactor = formFactor + return &this +} + +// NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *WritableRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *WritableRackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *WritableRackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *WritableRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *WritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value +func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + + return o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return &o.FormFactor, true +} + +// SetFormFactor sets field value +func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *WritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *WritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *WritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *WritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *WritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.OuterUnit) { + return nil, false + } + return o.OuterUnit, true +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && !IsNil(o.OuterUnit) { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *WritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *WritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *WritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *WritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.WeightUnit) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.WeightUnit +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.WeightUnit) { + return nil, false + } + return o.WeightUnit, true +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && !IsNil(o.WeightUnit) { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { + o.WeightUnit = &v +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *WritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["form_factor"] = o.FormFactor + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if !IsNil(o.OuterUnit) { + toSerialize["outer_unit"] = o.OuterUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if !IsNil(o.WeightUnit) { + toSerialize["weight_unit"] = o.WeightUnit + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + "form_factor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWritableRackTypeRequest := _WritableRackTypeRequest{} + + err = json.Unmarshal(data, &varWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = WritableRackTypeRequest(varWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableRackTypeRequest struct { + value *WritableRackTypeRequest + isSet bool +} + +func (v NullableWritableRackTypeRequest) Get() *WritableRackTypeRequest { + return v.value +} + +func (v *NullableWritableRackTypeRequest) Set(val *WritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableRackTypeRequest(val *WritableRackTypeRequest) *NullableWritableRackTypeRequest { + return &NullableWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go index 0bd5f8acb0..d7db1446a9 100644 --- a/model_writable_rear_port_request.go +++ b/model_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { +func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { this := WritableRearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest { } // GetDevice returns the Device field value -func (o *WritableRearPortRequest) GetDevice() DeviceRequest { +func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortRequest) GetModule() ModuleRequest { +func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go index 68e2467e91..e19a55ebd6 100644 --- a/model_writable_rear_port_template_request.go +++ b/model_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} // WritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -98,9 +98,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -109,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_region_request.go b/model_writable_region_request.go index 10e3c56c26..2cb7a901b5 100644 --- a/model_writable_region_request.go +++ b/model_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_service_request.go b/model_writable_service_request.go index a3150a1280..83a66a2da2 100644 --- a/model_writable_service_request.go +++ b/model_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` Ports []int32 `json:"ports"` @@ -56,9 +56,9 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetDevice() DeviceRequest { +func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -67,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -110,7 +110,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go index c7008f3ed2..75229dffb6 100644 --- a/model_writable_service_template_request.go +++ b/model_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go index b0c4346c1f..ca6538ca9b 100644 --- a/model_writable_site_group_request.go +++ b/model_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_request.go b/model_writable_site_request.go index 2fcc036008..897915d18a 100644 --- a/model_writable_site_request.go +++ b/model_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritableSiteRequest{} // WritableSiteRequest Adds support for custom fields and tags. type WritableSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -116,9 +116,9 @@ func (o *WritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -142,15 +142,15 @@ func (o *WritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetRegion() RegionRequest { +func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -159,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *WritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -202,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetTenant() TenantRequest { +func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go index a8b1c1775f..fe928af5ad 100644 --- a/model_writable_tenant_group_request.go +++ b/model_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go index 057faf1f70..c67ec71822 100644 --- a/model_writable_tunnel_request.go +++ b/model_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableTunnelRequest{} type WritableTunnelRequest struct { Name string `json:"name"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,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"` @@ -112,9 +112,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -179,9 +179,9 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -190,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetTenant() TenantRequest { +func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -249,8 +249,8 @@ func (o *WritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go index ec11b7d2b4..e329fb56d8 100644 --- a/model_writable_tunnel_termination_request.go +++ b/model_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{} // WritableTunnelTerminationRequest Adds support for custom fields and tags. type WritableTunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,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 TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { +func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { this := WritableTunnelTerminationRequest{} this.Tunnel = tunnel this.TerminationType = terminationType @@ -53,9 +53,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio } // GetTunnel returns the Tunnel field value -func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -64,7 +64,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) } // SetTunnel sets field value -func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -159,9 +159,9 @@ func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -170,7 +170,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -186,8 +186,8 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go index 76b1664be6..e5263bcded 100644 --- a/model_writable_virtual_chassis_request.go +++ b/model_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go index 9c16e0e714..09e979b9b5 100644 --- a/model_writable_virtual_device_context_request.go +++ b/model_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,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"` @@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { +func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { this := WritableVirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, boo } // SetDevice sets field value -func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,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() TenantRequest { +func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,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() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go index a24bbacab8..a87525a3f4 100644 --- a/model_writable_virtual_machine_with_config_context_request.go +++ b/model_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} // WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type WritableVirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWrit // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterReq // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -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() DeviceRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceReque // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleReq // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,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() TenantRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantReque // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,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() PlatformRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformR // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,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() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddre // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,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() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddre // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,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() ConfigTemplateRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Con // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go index 047e6f3899..167faab209 100644 --- a/model_writable_vlan_request.go +++ b/model_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableVLANRequest{} // WritableVLANRequest Adds support for custom fields and tags. type WritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid int32 `json:"vid"` Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -57,9 +57,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetSite() SiteRequest { +func (o *WritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -68,7 +68,7 @@ func (o *WritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *WritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -100,9 +100,9 @@ func (o *WritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -111,7 +111,7 @@ func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *WritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetTenant() TenantRequest { +func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *WritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -266,9 +266,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetRole() RoleRequest { +func (o *WritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -277,7 +277,7 @@ func (o *WritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -293,8 +293,8 @@ func (o *WritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go index 3c0acb8009..cc88a8eba7 100644 --- a/model_writable_vm_interface_request.go +++ b/model_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type WritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest { +func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest { this := WritableVMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineReque } // SetVirtualMachine sets field value -func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMo } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go index e64cce0c93..f1bc7bb633 100644 --- a/model_writable_wireless_lan_group_request.go +++ b/model_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go index 098a33b0b1..a0d82d6d1d 100644 --- a/model_writable_wireless_lan_request.go +++ b/model_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableWirelessLANRequest{} type WritableWirelessLANRequest struct { Ssid string `json:"ssid"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go index 84ae70e23c..6e8a0b55e2 100644 --- a/model_writable_wireless_link_request.go +++ b/model_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest { +func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest { this := WritableWirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool } // SetInterfaceA sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool } // SetInterfaceB sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -307,6 +309,81 @@ func (o *WritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +542,12 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +612,8 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/response.go b/response.go index d10be0f114..41c41c650c 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/scripts/generate-code.sh b/scripts/generate-code.sh index 8680a6e38a..28b152ffd7 100755 --- a/scripts/generate-code.sh +++ b/scripts/generate-code.sh @@ -2,13 +2,21 @@ set -euo pipefail +# Source the USER ID +. .env + # Remove generated files -for F in $(cat .openapi-generator/files) ; do +for F in $(cat .openapi-generator/FILES) ; do + rm -f "${F}" +done + +# Remove test files +for F in $(ls test/*.go) ; do rm -f "${F}" done # Generate library -docker run --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.6.0 \ +docker run --user $USER_ID:$USER_ID --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.6.0 \ generate \ --config /local/.openapi-generator/config.yaml \ --input-spec /local/api/openapi.yaml \ diff --git a/test/api_circuits_test.go b/test/api_circuits_test.go index 9380c73ae5..430e019b7c 100644 --- a/test/api_circuits_test.go +++ b/test/api_circuits_test.go @@ -23,6 +23,234 @@ func Test_netbox_CircuitsAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkDestroy", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_core_test.go b/test/api_core_test.go index a69dd75c6f..43688f247f 100644 --- a/test/api_core_test.go +++ b/test/api_core_test.go @@ -203,4 +203,30 @@ func Test_netbox_CoreAPIService(t *testing.T) { }) + t.Run("Test CoreAPIService CoreObjectChangesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreObjectChangesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/test/api_dcim_test.go b/test/api_dcim_test.go index cc9db9429d..03257d39c2 100644 --- a/test/api_dcim_test.go +++ b/test/api_dcim_test.go @@ -3909,6 +3909,120 @@ func Test_netbox_DcimAPIService(t *testing.T) { }) + t.Run("Test DcimAPIService DcimRackTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test DcimAPIService DcimRacksBulkDestroy", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_extras_test.go b/test/api_extras_test.go index b77ce0a320..d8475821c3 100644 --- a/test/api_extras_test.go +++ b/test/api_extras_test.go @@ -1280,11 +1280,199 @@ func Test_netbox_ExtrasAPIService(t *testing.T) { }) - t.Run("Test ExtrasAPIService ExtrasObjectChangesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkDestroy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1292,13 +1480,27 @@ func Test_netbox_ExtrasAPIService(t *testing.T) { }) - t.Run("Test ExtrasAPIService ExtrasObjectChangesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasNotificationsRetrieve", func(t *testing.T) { t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1525,6 +1727,120 @@ func Test_netbox_ExtrasAPIService(t *testing.T) { }) + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ExtrasAPIService ExtrasTagsBulkDestroy", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/utils.go b/utils.go index 31b2f6c2e5..9381f60942 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.